diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 92f5ba5b..8f01e56e 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -2,7 +2,7 @@ // README at: https://github.com/devcontainers/templates/tree/main/src/go { "name": "Go", - "image": "mcr.microsoft.com/devcontainers/go:1-1.22-bullseye", + "image": "mcr.microsoft.com/devcontainers/go:1-1.25-bookworm", // Features to add to the dev container. More info: https://containers.dev/features. // "features": {}, // Use 'forwardPorts' to make a list of ports inside the container available locally. diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index e35d2d3f..66d41c13 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,29 +1,31 @@ lockVersion: 2.0.0 id: 9d90eb9e-33f8-4170-8944-988f4000aad0 management: - docChecksum: d8e27f2118bb2e9b6f10f3c87ad1abab + docChecksum: c3bea2248c868f8f6389c1b10404e264 docVersion: 0.9.0 - speakeasyVersion: 1.761.8 - generationVersion: 2.881.2 - releaseVersion: 0.11.43 - configChecksum: 674210255998da9fa4f159aa8fa14609 + speakeasyVersion: 1.769.2 + generationVersion: 2.892.5 + releaseVersion: 0.12.0 + configChecksum: 8bfe606b275bc5efc3ce7ed037c4056d repoURL: https://github.com/gleanwork/api-client-go.git installationURL: https://github.com/gleanwork/api-client-go persistentEdits: - generation_id: a0a30492-a2a0-4612-a613-8ac7104e7a06 - pristine_commit_hash: 8523f050fdd3b0d7a134733ddf54b1c44478a5cf - pristine_tree_hash: e2c0cbc776de728787eaaa5a69ee78176b0d5f46 + generation_id: 1c213e3f-422b-4d00-8160-ffa709845fee + pristine_commit_hash: cddb20c695e3c065a55293108226cc7a5aea2c99 + pristine_tree_hash: 9f60a3910a0e09de1e8f766a1e27c53a7673fdea features: go: + acceptHeaders: 2.81.2 additionalDependencies: 0.1.0 additionalProperties: 0.1.2 constsAndDefaults: 0.1.14 - core: 3.13.40 + core: 3.13.46 defaultEnabledRetries: 0.2.0 deprecations: 2.81.3 devContainers: 2.90.0 + downloadStreams: 0.1.2 envVarSecurityUsage: 0.3.2 - examples: 2.81.6 + examples: 2.81.7 flattening: 2.81.2 globalSecurity: 2.82.15 globalSecurityCallbacks: 0.1.0 @@ -31,13 +33,14 @@ features: globalServerURLs: 2.83.1 groups: 2.81.3 intellisenseMarkdownSupport: 0.1.0 - mockServer: 0.1.3 + methodServerURLs: 2.82.2 + mockServer: 0.1.4 nameOverrides: 2.81.4 responseFormat: 0.1.2 retries: 2.84.2 sdkHooks: 0.3.0 tests: 0.16.8 - unions: 2.87.6 + unions: 2.87.7 uploadStreams: 0.1.0 trackedFiles: .devcontainer/README.md: @@ -46,8 +49,8 @@ trackedFiles: pristine_git_object: f2f908c9bfbd80e059d24e74cfce9230ead5342a .devcontainer/devcontainer.json: id: b34062a34eb1 - last_write_checksum: sha1:a518b2fc2f92e998593a1dcb935db4ca1eb2e2f1 - pristine_git_object: 92f5ba5b54156225322fb4b09d2acf4abde9abc9 + last_write_checksum: sha1:00c39389eee01217e51057762bde7339d9e56114 + pristine_git_object: 8f01e56e2f8476fb2a7c79ec6326b3b0d5be8123 .devcontainer/setup.sh: id: 5f1dfbfeb8eb last_write_checksum: sha1:dbf95d0b815527f25b02f37a5499d03b85db0c80 @@ -66,8 +69,8 @@ trackedFiles: pristine_git_object: 9c4d301118236a7c81e8b0fffb6e387ed59361c2 agents.go: id: 148cd435d94c - last_write_checksum: sha1:dd6544fb3f46b91fa074b4cbaf5515c23e2bffb7 - pristine_git_object: d27133a59184dbf7dcd79d17791340b03e08cbdd + last_write_checksum: sha1:c5ef6f20a91b0dcdfad42e2a366cc5981993e700 + pristine_git_object: 190fa026af817d70a69f5b4f5d7e796fc566ffd1 announcements.go: id: 5da39fbc3664 last_write_checksum: sha1:40db85bb384db08da04661a1524793d3f827d903 @@ -82,20 +85,32 @@ trackedFiles: pristine_git_object: 8c7ed702c9822229ba38967d4196fa93f7f76211 chat.go: id: 81535ccb3ff5 - last_write_checksum: sha1:d5d84f4328cbab55ee2d8b1995a34fee513846e3 - pristine_git_object: 53fee2e6547f1c70269ea34188aef792e94cce0e + last_write_checksum: sha1:d10a80716fabe3d41a6167dcf6700d9ae1608a97 + pristine_git_object: fe18ecc0e452a47289997e3ffdf48a46ac700eda client.go: id: d633516feaf9 - last_write_checksum: sha1:7d0c34e3c4dbcb2311104ae4efc89f69e67b1a73 - pristine_git_object: 2a68a93becda3b7f9437e24319e6162256165758 + last_write_checksum: sha1:07be873bc97ebcc1209c2e5016f07cfc98b15e62 + pristine_git_object: 207a32f1ccf428a47fbe1e20a34a6f147d324822 + clientagents.go: + id: 79ea0ac21b88 + last_write_checksum: sha1:4dceaed49554d082ac58b66c8f3257fe20e0414b + pristine_git_object: 8e2e226d4deab1e78ad80138e2ab69129da53259 clientauthentication.go: id: 366fdcad5033 last_write_checksum: sha1:0fefd0a6e854e4d685e18cd6db45c5133ef0309e pristine_git_object: b267bc2338414c73c13bed8912671d7976456fce + clientchat.go: + id: 5e9b368de611 + last_write_checksum: sha1:9fddf8796309ad8f625f244d15f290d33cd1a1d2 + pristine_git_object: ac1b01d0db609b2a83eed3e5e8ba41137314c870 clientdocuments.go: id: b58779267e7b last_write_checksum: sha1:9d10a125d8206d78a9798ebc38e804d74c8245e8 pristine_git_object: b2612f507522f9d60677570cdfc4997d4da792f0 + cliententities.go: + id: 4e52ecc35bd4 + last_write_checksum: sha1:6bcd00a48fde31a7482d41d92b251e676f8b21da + pristine_git_object: 5cea6c0705ca15a31fd94c6717e6984bec430bc0 clientgovernance.go: id: 6bbe85e6e618 last_write_checksum: sha1:811a555e406329ce113ce4d0160d731b4a77e299 @@ -104,10 +119,18 @@ trackedFiles: id: e9e3a2bd0f87 last_write_checksum: sha1:f29f9ec3b4092d96789a46cfa54dab2de792d8cc pristine_git_object: 498897bb2ee582f229a204a37463d14544d89133 + clienttools.go: + id: 484c7c53926a + last_write_checksum: sha1:ffa40105493d2e70ead4ce39cb9e14044283390c + pristine_git_object: cd7e53791e2d9581a00e324fdaa921708aea22da collections.go: id: cb16c63710b4 last_write_checksum: sha1:8400a2bb912ae2d2622de111859e7a40942d454d pristine_git_object: e998033b53f22dea6f6466444c9770eb3ce9eedf + custommetadata.go: + id: 21c478194b42 + last_write_checksum: sha1:2479b9771b0c58cae8bbecd0896e58b5a938d9d2 + pristine_git_object: 27e8d61b29618a99b44712dcc78b3c24b4b0f84b data.go: id: aefc573bbe5e last_write_checksum: sha1:7d0daaf39fbe8b3ca8ed89c76f597e325e42c819 @@ -118,12 +141,16 @@ trackedFiles: pristine_git_object: 8096700618ed634a1873171730d1832dad2593e7 datasources.go: id: bd0dfa9acc4f - last_write_checksum: sha1:14ad69bf888f951c19e05933f57cb1fd1a271b7c - pristine_git_object: 8995ca8d1e224bad289fa8d6264e40898d4445f9 + last_write_checksum: sha1:31879f627e2620c08df3ea1957c7dc2c8da0387f + pristine_git_object: 5ce0c63e3e03bf03cc226fb400fcb1e56e02d2c6 docs/models/apierrors/collectionerror.md: id: d236fd3e9765 last_write_checksum: sha1:fdc892b562d48ab5f04634bacdb637e0085f3d83 pristine_git_object: 1906bf10e6b8e9717ee94ab1322271563194951e + docs/models/apierrors/errorinforesponse.md: + id: ec6c4fab05b0 + last_write_checksum: sha1:ad23e7247f65464a1e5a20efea5f0a55ac51586c + pristine_git_object: e0ab10697d1027acdb6c503ea55aa16a8f2274a2 docs/models/apierrors/errorresponse.md: id: 385118d32265 last_write_checksum: sha1:5884eaefb62e1ab6d58d4473a2b6ed3788434eb5 @@ -132,6 +159,18 @@ trackedFiles: id: a48fead5ccc0 last_write_checksum: sha1:4fb36e4a332b66fe314515e8b3a34c507b3c0e35 pristine_git_object: 75868af81c9e04681ab74330ad74ea8f9e9c3b4f + docs/models/components/actionauthtype.md: + id: 07cbf48e969a + last_write_checksum: sha1:6d609d81eaeefe3bb665df590caeb3d1345d05c9 + pristine_git_object: 6d0815372e1c023317e38e765eca451689121af8 + docs/models/components/actionpackauthstatus.md: + id: 32fa185edef9 + last_write_checksum: sha1:9c1b27cacdf53273f3f4797a76d411aba07055ed + pristine_git_object: e6043d36adacd90a87ec43477c277613d56fc1f3 + docs/models/components/actionpackauthstatusresponse.md: + id: 3d737d8dc6a4 + last_write_checksum: sha1:f08995ec185a334e2656979101dbbbac3977ff18 + pristine_git_object: 0f8322bc458032eaa2780a042fb6a9a3b0d83171 docs/models/components/actionsummary.md: id: f9f286d7b5c6 last_write_checksum: sha1:4772a941c6ff48ac882f8af37ba75ba3992f23c8 @@ -162,8 +201,8 @@ trackedFiles: pristine_git_object: ac5053beed5bd700f66257cca8e59149fdbd5d9e docs/models/components/addcollectionitemserrorerrortype.md: id: 2eda16f33336 - last_write_checksum: sha1:d856083747a7be6427495d8f63d1d7499b59958e - pristine_git_object: ce551d15583479e7fa3d8ce772ebdc40d3182330 + last_write_checksum: sha1:a7937ff9aaae9fd5d758f0d1db1efc03dca1ef62 + pristine_git_object: 0247c8a19ff961e8efbf076f8cc5b32d759be3dc docs/models/components/addcollectionitemsrequest.md: id: 624817833fcf last_write_checksum: sha1:16af54c34b83dde952084fda80d8a37db1615942 @@ -218,12 +257,12 @@ trackedFiles: pristine_git_object: 728fda031e5fa35a47bdf893d2e8546ff9605492 docs/models/components/agentsinsightsv2request.md: id: 5e256461f4fa - last_write_checksum: sha1:a59ca5576ecf497753a45e0f2a9f260ccdebe08e - pristine_git_object: e64a7eca9da49b17c84475eb15bfa674b98dfe4e + last_write_checksum: sha1:f783fe252b24399f8a9ce8373279ca9c200cc2a2 + pristine_git_object: d1aab1f0b8d1602735e703adc5bddf02a60e4a38 docs/models/components/agentsinsightsv2response.md: id: b6c9c6495591 - last_write_checksum: sha1:ec9992141548e1d167eca4b80a3e72c036d7bc93 - pristine_git_object: a11910e3344173d05e8481521c3f02b2239514dc + last_write_checksum: sha1:d051c81dc198731ace758030b5fbded518756adc + pristine_git_object: d21013d2f22b4815ca467e7f8d494ec64144e987 docs/models/components/agentstimesavedinsight.md: id: b1aca63e197a last_write_checksum: sha1:f81d3fff5542a05f646f66a5c35d9279f48a0a93 @@ -232,6 +271,10 @@ trackedFiles: id: aef1337187d5 last_write_checksum: sha1:f922b66811b603f84228e4378e9f99c48f317a2e pristine_git_object: dbb821b744929ccb2870296e3f6ad98e1282a6cd + docs/models/components/agentusecaseinsight.md: + id: a6ce0af52ca9 + last_write_checksum: sha1:7e9f95d21b0f38bb489a63fab399f5487e6d9172 + pristine_git_object: a784346a53e31ad43ac8a09ef086d80c14a0abcc docs/models/components/agentusersinsight.md: id: 3a118584c50b last_write_checksum: sha1:f8aad974d33f6359ae275ed593111275207c4f2f @@ -242,8 +285,8 @@ trackedFiles: pristine_git_object: eec9b7fc0a80d0597cbeaee80958bb3fa911397e docs/models/components/announcement.md: id: a4a18f09edf6 - last_write_checksum: sha1:82634016254b8eb378d72f06c20a645604864647 - pristine_git_object: 0237da07b0b17517a5bff0e3d84eac17bf999f88 + last_write_checksum: sha1:6621449f7170b1c1f3c55921eefd98d66f419c01 + pristine_git_object: 95f8a64a3b8cef9ffe89168baa2adf305f4304fb docs/models/components/announcementchannel.md: id: 5c822eae9f41 last_write_checksum: sha1:7399acb69673dadd9341d66a4547d6565a5cf1ae @@ -266,8 +309,8 @@ trackedFiles: pristine_git_object: cff32054e2ffec798fb8d5d0117bf054367dda2c docs/models/components/answer.md: id: 625c7d38dd6f - last_write_checksum: sha1:cf5e25820747cca1c65492b64a761ee12240d64e - pristine_git_object: 5f715b4c5e8e545c12840d08ce97b368f36a69b7 + last_write_checksum: sha1:35d2af258f9791ee90dc703e5618731e0460eb71 + pristine_git_object: b517e7654ebf90cf235cb2d49360f0fdcbfbb22b docs/models/components/answercreationdata.md: id: e0b13052e375 last_write_checksum: sha1:9c88afaf2e552352e19b58b7fa7721a5dc2175c7 @@ -286,8 +329,8 @@ trackedFiles: pristine_git_object: 8874e7204fda3a769e84103f905b10a8146befd9 docs/models/components/answerresult.md: id: d7bea9dd55f6 - last_write_checksum: sha1:d709f5f3ec3492fcc91d45149d1be71f828cbc34 - pristine_git_object: dae9fb1cd1e4298230d5c8d4043ed7109d114636 + last_write_checksum: sha1:77f49eb8817fb1d09e7756d46fbe4d56c9e0c9a8 + pristine_git_object: 72e58ed4bddeb70ee793ece52fd5680b3ade9931 docs/models/components/answersourcetype.md: id: f057a30e351f last_write_checksum: sha1:4c0eac4dd71e54596dc2a10b2992e40a157fed41 @@ -298,8 +341,8 @@ trackedFiles: pristine_git_object: 171eea51a2bd10abc35a691befdf1e2e3fc9778c docs/models/components/assistantinsightsresponse.md: id: fe64623e536e - last_write_checksum: sha1:c1677220e4e8d15831ddb4cd304a8c17c28cbd65 - pristine_git_object: e5f122137435e7690e94cb28f082e62f8604bb37 + last_write_checksum: sha1:5b6637c7ba6320f65fa370b962849adffd8cd934 + pristine_git_object: 6672fa1a9ffd0639c31f08d1e28c39ae05edc5ba docs/models/components/authconfig.md: id: 2335d6853cfd last_write_checksum: sha1:235bae57a2041f764c9c45f4ca6c80ba42b8865f @@ -316,6 +359,14 @@ trackedFiles: id: 11fd94ac06ba last_write_checksum: sha1:def709421c5bc7c1b71fc1c72fd74509508c5f61 pristine_git_object: 7ef0b3d060cb39900386b27f9f41426ee53e0da9 + docs/models/components/authorizeactionpackrequest.md: + id: 7e8805319915 + last_write_checksum: sha1:1c91ba07e52e83f2666c5332c298983cba1c6506 + pristine_git_object: e4ee1e6c9a1f37ebce87cfb1c1ebd5abe936e575 + docs/models/components/authorizeactionpackresponse.md: + id: cf75beca77d8 + last_write_checksum: sha1:869afaa8f56667691db95b7382408628e47d835f + pristine_git_object: 7f0f7a5d0b4686c79af5d43c421eb1a8ad5e2151 docs/models/components/authstatus.md: id: 88b44e84336b last_write_checksum: sha1:ff83ed570c4804703dd36d477ca682d2d9d74f36 @@ -356,6 +407,10 @@ trackedFiles: id: ff2b7bb23f6b last_write_checksum: sha1:fc03db4febe1ddb6b115ae335e46047e1cad954f pristine_git_object: e0f7ef732027f1147329c928de1e4a60bf87be92 + docs/models/components/breakdowntype.md: + id: d337e06af0b5 + last_write_checksum: sha1:63a1b41013511dfc2e9e9cd8161d36ea7df9f6c8 + pristine_git_object: 31893b0f629db53f0f488f6f4c80315c82ebfebc docs/models/components/bulkindexdocumentsrequest.md: id: 57ea12d7199e last_write_checksum: sha1:9c3e2001a490e48ee3452660b77369ee76f01c63 @@ -478,8 +533,8 @@ trackedFiles: pristine_git_object: fb923f896141558b64c97985ae0eeccfb2859e4a docs/models/components/chatsuggestion.md: id: c52f5b771279 - last_write_checksum: sha1:8d7de660100f5bce64e8d779c2f8af881484d9b3 - pristine_git_object: bc4cc178b17a002fc83a66c927b3e7b3bf035838 + last_write_checksum: sha1:a90c76a599263ad291ec73747693603d2f966f36 + pristine_git_object: 1a604a549a3d2def18b06c292221f6c405caf463 docs/models/components/chatzerostatesuggestionoptions.md: id: 3c01a3291509 last_write_checksum: sha1:ff8b2af02fe787e9e121cad351cb94854e584b03 @@ -514,16 +569,16 @@ trackedFiles: pristine_git_object: 8c888ca86dee854ba53f5dcbd45c29fac1fb798c docs/models/components/collection.md: id: 1032a4f7373d - last_write_checksum: sha1:a3c0bd46771c39cd0d8e536545e10da40c266980 - pristine_git_object: c612713388d6a258c461d805c6f209ce95209f58 + last_write_checksum: sha1:97109b8fcc0b7bfe3d963ffa23ff3bc982f5be4d + pristine_git_object: 444c48c04ea64513870327d983062383bebd6b16 docs/models/components/collectionerror.md: id: 4b24d952cbb6 last_write_checksum: sha1:75998153cd6e6f9d2f26733ba93005e9551a8855 pristine_git_object: 92982462780e13d18e2bb6b31df92424714bca52 docs/models/components/collectionerrorerrorcode.md: id: 34a4a2d0abc6 - last_write_checksum: sha1:85d1764d5bac890620cf9c67580e02f6234ecebe - pristine_git_object: bf6763d7471dd50fdc67150b7ede4647542d6c01 + last_write_checksum: sha1:462f4bfd3bf9c498a0ea987920154bf41b2f9e4a + pristine_git_object: b1f25210741ceadc5df414c63fea12d33490334d docs/models/components/collectionitem.md: id: df8bd26d4990 last_write_checksum: sha1:474fe68c6a1937f5b19132e8456b6181d9f18d9f @@ -642,8 +697,8 @@ trackedFiles: pristine_git_object: bdc4d03a63f32cba38f08d3ba0c73198d36ea58c docs/models/components/currentactiveusers.md: id: 94cb04038236 - last_write_checksum: sha1:fbabc298697c37c73b724fdf0fee015c51c6bda3 - pristine_git_object: 61ea0b47bfd4413d48762682665272ff7843d5a5 + last_write_checksum: sha1:3b520a088a20751fff3ed69bd5b5e37b063f681b + pristine_git_object: 8bec3ed7023d27045595ad730cee5d3829cb9962 docs/models/components/customdatasourceconfig.md: id: a395598b2c01 last_write_checksum: sha1:6c2b2c4b61b7535353c7072cffe42e79b2ce30cb @@ -692,6 +747,22 @@ trackedFiles: id: 3d1ca6d0168a last_write_checksum: sha1:45e022d327773dfacd095c6329571f33370357c9 pristine_git_object: 3f2c64237432e6de8542587d979c0abaf6431dfd + docs/models/components/custommetadatapropertydefinition.md: + id: 3540950fb0e2 + last_write_checksum: sha1:93adb1203656f4abeff37d37985d9f57c8f7ab0d + pristine_git_object: 791a54700a70244f25be915fdea7521f7d1e7c08 + docs/models/components/custommetadatapropertydefinitionpropertytype.md: + id: 29d5185ad8e2 + last_write_checksum: sha1:83b0748907ef87e457a47d42ff24ccb93553120e + pristine_git_object: f6cd91936d4700387e4391f988dff662df8ba999 + docs/models/components/custommetadataputrequest.md: + id: 2548d34df81c + last_write_checksum: sha1:e046236c0333c94ce57ac09a1493693a00241ca6 + pristine_git_object: 26b4c176f1efd7c443f11b5591329616ca3f14fc + docs/models/components/custommetadataschema.md: + id: c53bed0c6e40 + last_write_checksum: sha1:4eedbd6be7866daab517b5cc9b2cf03a8f9e485d + pristine_git_object: 15c6f4cd9889f5fa409561a92eb0bce7a223d277 docs/models/components/customproperty.md: id: c8bee897a039 last_write_checksum: sha1:ee8c3be66314bdd038888ed7017588d323ffbf56 @@ -728,6 +799,14 @@ trackedFiles: id: 607cfe536656 last_write_checksum: sha1:c51ff3fe227512316a02921738db9650d5ebbd31 pristine_git_object: d6896ee7cfad9ea9ae3f3ebff26f1d1b40eacef6 + docs/models/components/datasourcecredentialstatus.md: + id: 6c41d87185cf + last_write_checksum: sha1:f7fdc614000253b528ff111d862fca727593bd0e + pristine_git_object: 32064eede838405ce50dd03fbd2b0c22954cfe3a + docs/models/components/datasourcecredentialstatusresponse.md: + id: ddb69211e29d + last_write_checksum: sha1:4aff70058464251b407825fe7021e2c77c834986 + pristine_git_object: f170c73c755ae580be4dbd6d7173f8dc9dc62a49 docs/models/components/datasourcegroupdefinition.md: id: 4c37c93fee51 last_write_checksum: sha1:57f452338adb407527058428ed0a06269e919750 @@ -776,6 +855,14 @@ trackedFiles: id: e7ae9487f799 last_write_checksum: sha1:2f3fd3edd33b07edd30ff2ec6d5a9e764b2d94c8 pristine_git_object: 2a1862ca23fc96f6591ef9fe12eeb93d765c1d8b + docs/models/components/debugdocumentlifecyclerequest.md: + id: e26dd741b23e + last_write_checksum: sha1:33288a6b62672f5488d3bf0f9072e49be775fac9 + pristine_git_object: f6a399f66c2a91342040e1c3d150967e66e9fe3e + docs/models/components/debugdocumentlifecycleresponse.md: + id: 8fa0fd16af97 + last_write_checksum: sha1:916e45b9e649c14117e5740edf9a37d2745a2ae4 + pristine_git_object: b069f6b2d0c3ec2eaa797df8dd952dfbf47a9ecb docs/models/components/debugdocumentrequest.md: id: 23b50e462da0 last_write_checksum: sha1:14fa9edb2ac4ec863831ed933295e01035ffa2f0 @@ -1058,16 +1145,20 @@ trackedFiles: pristine_git_object: 403fcfba97a5757bf844a2ef903d9a9aeff6e04f docs/models/components/editcollectionresponse.md: id: 6562220c4d45 - last_write_checksum: sha1:c2e5e68c6a753e373eb6a4e5e16fb70677e02a74 - pristine_git_object: 44c0b5697e56d5e54f0114e2b93d5e1537cd63a5 + last_write_checksum: sha1:c1ce074e014d3cda03f664a073ae11a24b715adf + pristine_git_object: a22d4e43d1c5d292664e16e11a465e1fa5567013 docs/models/components/editcollectionresponseerrorcode.md: id: 6af950ccd844 - last_write_checksum: sha1:ba0b67b2bae70630b52ba38f972f29a07b332020 - pristine_git_object: fb85a2c11c6c9488ffc930c1916d69a7e00ee909 + last_write_checksum: sha1:7b02a3210759518aca19232eac66e40474374835 + pristine_git_object: e30f043383912928a4be1a746c80cf04aafe815f docs/models/components/editpinrequest.md: id: 322d2db74938 last_write_checksum: sha1:c68d48b4bf79c022f5b0a8e2a5643950563b7f45 pristine_git_object: b946fa47ee57d8b8919c550e619a215ae89aa96c + docs/models/components/editworkflowrequest.md: + id: 259366a2ae8d + last_write_checksum: sha1:fcd2e4ecf5f4f96c7e02b2b6b8e67c75a675b909 + pristine_git_object: 20014a64a12410263837eac11dba9b22d03f134c docs/models/components/employeeinfodefinition.md: id: 2bf00c4d431e last_write_checksum: sha1:23e970ae919648b2e67284beb07470f09dd48241 @@ -1096,10 +1187,6 @@ trackedFiles: id: 776843edf879 last_write_checksum: sha1:421871f48c18e8e88b6c0aee593a20dc41cac532 pristine_git_object: 91a49efe71dbfc3940c1cabc6e1cb233c6720216 - docs/models/components/event.md: - id: 0593e0f6a673 - last_write_checksum: sha1:9f9eabaa73cc5feed247e94b2399ca5252761b27 - pristine_git_object: 97434fa63dee2b30719d018351ea503249ab3c34 docs/models/components/eventclassification.md: id: 5b7c8d39982a last_write_checksum: sha1:6013586ef50978b8e51c2fb3e770078a6a9fd563 @@ -1170,12 +1257,12 @@ trackedFiles: pristine_git_object: 7c4a9d08e3fb6ab73ed0d7f2005b4afa49202442 docs/models/components/feedback.md: id: f567c839a7ff - last_write_checksum: sha1:a36b36d736446bda907ff11f57bde96d82159f71 - pristine_git_object: b1fda3ec41e84e8e6a3e0e97f7a5fb04e4b00722 + last_write_checksum: sha1:1a481cbdde48b89a24bd4566b8e34b5d8aa873c1 + pristine_git_object: a6c05095879d07450f18a964dfff87844a3b140a docs/models/components/feedbackcategory.md: id: f12caabcaa53 - last_write_checksum: sha1:ee6f9912042e08fd9252f8903517ada6b9f770f0 - pristine_git_object: 57fb2754e5ff1d3a06aae0ebb052ca6b6e074317 + last_write_checksum: sha1:9d04cdf30a72ea350c71284d9140e35ed45cbc58 + pristine_git_object: db09f6e589e4e896ac3298cd05115bc8a211d96b docs/models/components/feedbackchannel.md: id: 3a7e62de7ee6 last_write_checksum: sha1:8547b5502219382e3128397aad91754849a031d8 @@ -1184,6 +1271,10 @@ trackedFiles: id: fbc8eb19c595 last_write_checksum: sha1:2c14b597d2e40c334cbe99192118203dbce6d724 pristine_git_object: 12ca3de305bfa1c924209994a5e4ecfca8924a5c + docs/models/components/feedbackevent.md: + id: db9a97830582 + last_write_checksum: sha1:f6716bc80ba432d6e8a8e3a53d1c08816c9bc218 + pristine_git_object: d22a6ef3abe6cab1613d035531e26cbc2cb44b5e docs/models/components/feedentry.md: id: 4d4f9c38d483 last_write_checksum: sha1:865380be8053bbbd73d8fd56fba01882a727a546 @@ -1194,8 +1285,8 @@ trackedFiles: pristine_git_object: c8e4adbb9259788d825acac24b08c9cd9afca960 docs/models/components/feedrequestcategory.md: id: 801f1c3c64d4 - last_write_checksum: sha1:d3a9a695806eab175215410e4added75d5ab7ce7 - pristine_git_object: d9097f79314d3f0d00fcbf4828c18edffd49d879 + last_write_checksum: sha1:7234d1dd7f4189e73da49b411c91eb05f8c90704 + pristine_git_object: 6983b14a9f97b02186be2c797bc165db37d8b6ea docs/models/components/feedrequestoptions.md: id: 76c5e4412304 last_write_checksum: sha1:674915ceaa3b9eec9d9543dc9f0e6a85b394174e @@ -1210,8 +1301,8 @@ trackedFiles: pristine_git_object: 1a407813c5400167e6e0940fa546b008a8a2177d docs/models/components/feedresultcategory.md: id: 94c0249352b4 - last_write_checksum: sha1:5bf3124bd883ae58cfe16659373b0dc298e077f9 - pristine_git_object: f53996351d96c879ff5960930191d2019355549e + last_write_checksum: sha1:ff549de34c97cd9d83b448d8ba2c7a82fc0a35a1 + pristine_git_object: d5f5dcef3a4c494d631c64982d044b1c5e72642f docs/models/components/fieldscope.md: id: 23caffb85bb7 last_write_checksum: sha1:65cdffa9b7bf28a760c906f49dc7417f37b9e56f @@ -1290,8 +1381,8 @@ trackedFiles: pristine_git_object: ab1ef7faebb17ce6f129a907881f09fe000637a3 docs/models/components/getcollectionresponse.md: id: 607bb0427413 - last_write_checksum: sha1:e888859630efc30b11316de04f409af568dda523 - pristine_git_object: 4d4876490030314ec9917b4e674969e7fbf25752 + last_write_checksum: sha1:d8cd99274136248cdf7f0d33595e2fdc0a2b75eb + pristine_git_object: 7059ec0bb4216b9680e6c721ba377b7a2d51d445 docs/models/components/getdatasourceconfigrequest.md: id: b4f15e1448f9 last_write_checksum: sha1:58da52159ace41b3d78b79f69f0cf2dfb4b33408 @@ -1490,32 +1581,32 @@ trackedFiles: pristine_git_object: 6c2fc6ab04a050a3586ef8014d4ee48c343abf92 docs/models/components/insightsassistantrequest.md: id: 027833359c26 - last_write_checksum: sha1:fb0330e2a7d2558a8d5ecaed0d16ff177e3fe06a - pristine_git_object: 688b4dfac1df8faf4c62191c485b38fbb819d29e + last_write_checksum: sha1:1189baf5e3796a969275fb935af90399c284712e + pristine_git_object: f56cc4cf6f412b82319935e748221b82f834da07 docs/models/components/insightschatsummary.md: id: 827b4cc8d9c4 - last_write_checksum: sha1:317f9f1a0e93b14a544f549a4e34a6a80c5d60d4 - pristine_git_object: 56a34c8c6de3c5cd54cf0ad8f7ccb8f123038caf + last_write_checksum: sha1:515774c7bcff199651b1ecd65e78ef398435f39d + pristine_git_object: b0780998c632eeaf0e59d9e2f2ef0ae951362a15 docs/models/components/insightsoverviewrequest.md: id: fa43f0a6b6e1 - last_write_checksum: sha1:3684c29f3852d05b4b2a01b9d9f24086dc90e1a8 - pristine_git_object: 1c56c012d3fec5d103299ec2cfa554ccf8358d7d + last_write_checksum: sha1:f9ffd906abae80d5dfc455489493acd860bef447 + pristine_git_object: a659575f9f64d0b094681b69fbad6c9a9ce9a300 docs/models/components/insightsoverviewresponse.md: id: e490ed19892d - last_write_checksum: sha1:3dc72f0fa89d6c5847fb430ea755bfc6e8f37962 - pristine_git_object: bb4cbf281fa75c1d19eff2c4ef5f84993c8280d4 + last_write_checksum: sha1:7fbcc95ce6f1b7a9d9a81fac2936f0ba58ec49f9 + pristine_git_object: 1e039c841f6b304d5a4bb10839df503e107ea42c docs/models/components/insightsrequest.md: id: cf96ae543699 - last_write_checksum: sha1:f76505c6ea86309e8dc7798b77307ef90c208d49 - pristine_git_object: 40af7932456984133a76b42f2908c2a48400ed62 + last_write_checksum: sha1:7fcfaf5d7656abb9b65e3a7406d0d81d50b3637e + pristine_git_object: d3f06cc258271ca0d427c57d1972f1984abd2dfa docs/models/components/insightsresponse.md: id: 8fad04b60c85 - last_write_checksum: sha1:ab75defe206e7acbc294c59718b7db0b303978a6 - pristine_git_object: 3a6e47230a2382061785f87a5444842d660064a4 + last_write_checksum: sha1:73d58ae052546b8b1caa7eb68e8addf523fae288 + pristine_git_object: 6bdb350ea99fe94c1b17bf64edf8d5bf2db8a23b docs/models/components/insightssearchsummary.md: id: f50ffa40d3ab - last_write_checksum: sha1:6913cbc0f6d43040081761b4031c386efad00fc1 - pristine_git_object: 6d03d3bbc5853d8f00d5511e41c028c3e650682d + last_write_checksum: sha1:90c8cf2c122a4177b46bb1603ecae434bc49f2af + pristine_git_object: b933e732d954913fe86c5859ba237d86b66b9f15 docs/models/components/invalidoperatorvalueerror.md: id: c5b00b97dded last_write_checksum: sha1:789abaf3ac4b4950461dafa0f343561834f4167d @@ -1530,8 +1621,8 @@ trackedFiles: pristine_git_object: 1bea03f64d1d2cc4ba8bf2f9dc1323ce275348aa docs/models/components/justificationtype.md: id: 5a15880767a5 - last_write_checksum: sha1:e945e3956386bd0f34c6c26e9c77c6d43e687df1 - pristine_git_object: d36f2dd823b34e41bbbf0e1a9cd0af7207d70301 + last_write_checksum: sha1:23ab2125d00c51ec3572efc6eb836b3b97037679 + pristine_git_object: 75855017609934001dcb5f801641ee4211cc6c9a docs/models/components/knowledgetype.md: id: cf27a7cefa69 last_write_checksum: sha1:f7294d6350e558a0a626ac41241ccbf0facacf10 @@ -1544,6 +1635,14 @@ trackedFiles: id: aecd1af94358 last_write_checksum: sha1:7f94a034eb6c7da3f86c4beeb7c0e56bd1b2144a pristine_git_object: 4e7312a1238621ad1bf883f940144095dce89067 + docs/models/components/lifecycleevent.md: + id: 3fda1d08b3ee + last_write_checksum: sha1:97e5c91657aa2a2a0b840c0c48ae556fb0c09170 + pristine_git_object: 27d0da8afc300a28c955a6b1fd70f6d979c63002 + docs/models/components/lifecycleeventevent.md: + id: f1f690f33a69 + last_write_checksum: sha1:85af7a70b08ee61648f085d7f8b7bcb68d4db505 + pristine_git_object: 2cc08ebc7474b07490ed856a1060db4d599206a8 docs/models/components/listanswersrequest.md: id: f70ad137fc70 last_write_checksum: sha1:b1d21bf3286e5535a3d653c1ad1fd1f1213a81c0 @@ -1628,6 +1727,38 @@ trackedFiles: id: e8f82b359fff last_write_checksum: sha1:f046bd0166a302cf840e90ac594bbc055c68ebd4 pristine_git_object: 43f1382c13e781c60c0e4a3f93b04d454a0f1364 + docs/models/components/mcpbreakdowninsightsrequest.md: + id: 55b000918669 + last_write_checksum: sha1:616ec9e930cd5577b29d50e84d1ef6aa1111ca25 + pristine_git_object: fdabe0b538d430c2195e998e3a19d394b5c84a01 + docs/models/components/mcpbreakdowninsightsresponse.md: + id: 0904ea06b356 + last_write_checksum: sha1:265076fe66155dcf7adff2a0afbdd0d9e794e805 + pristine_git_object: e358ff49747ce6952d6bfc2bc9f9cb67460a2b95 + docs/models/components/mcphostapplicationbreakdown.md: + id: 1357689d4c2b + last_write_checksum: sha1:5a596aaf3d7489de3ba294e8f789483424bf3d81 + pristine_git_object: 8c5d2859429849ae97270e654918b7f1f88fdab7 + docs/models/components/mcpinsightsrequest.md: + id: 73551694116d + last_write_checksum: sha1:4a08a5692e3e03f6a814617eef27b4e0b3ae2763 + pristine_git_object: 6dce6b6b39a014a63f4be736a3702bba24f1dba2 + docs/models/components/mcpinsightsresponse.md: + id: "038487735795" + last_write_checksum: sha1:3275c90313baa897f28f1daa1fb5f3766d4a54dd + pristine_git_object: 4afb6a8f74c2fa161adf890fbe9c6ba23cb77f15 + docs/models/components/mcpserverbreakdown.md: + id: f306096eb10a + last_write_checksum: sha1:9d6e17e81284f741bc0f1b6005dde1812bce7956 + pristine_git_object: 9677d94427dc96e3116adc03e0501ddf083c4ac7 + docs/models/components/mcptoolbreakdown.md: + id: 8ab6e7bdb23e + last_write_checksum: sha1:327fc87e8bc3e8a863ba9fbf1172f4416db74e12 + pristine_git_object: 300244d416dd28e29ea453572f0b6f1dfa02ba93 + docs/models/components/mcpuserbreakdown.md: + id: 5acddf4e59b7 + last_write_checksum: sha1:5af62c8bf141253784337c379b898814c41978ff + pristine_git_object: 690987421efe38b5d3f78a699389000de9b091d3 docs/models/components/meeting.md: id: 40604b996772 last_write_checksum: sha1:1146372010096c9731bd23e2e470f00607e1f276 @@ -1698,8 +1829,8 @@ trackedFiles: pristine_git_object: da36c9f489520c629cabf0d65453d6466e1a2d49 docs/models/components/peragentinsight.md: id: 758901c7a7a0 - last_write_checksum: sha1:48ef8e518c7249f96fb3d09f1688117841beb1be - pristine_git_object: e2c0065e7a4947de6dc55677ebf4efd10a1a1afd + last_write_checksum: sha1:15fd479b92e966a0dcdf0431de68dfb7dc250a96 + pristine_git_object: 354520f3b9b4bf7e08434a30f568468007621d54 docs/models/components/period.md: id: 15f5d3ae2687 last_write_checksum: sha1:3137d99069bf3910fdcf0fc4d53e6b2a6358016a @@ -1754,8 +1885,8 @@ trackedFiles: pristine_git_object: 44c848ab76a47f1982d369f8b4f55367370a1ae8 docs/models/components/peruserinsight.md: id: 51c427f8c8b2 - last_write_checksum: sha1:f432fe1f22e1a22a9c23f213eafb8e45d3675429 - pristine_git_object: de71852e76d3d52f7cec68bab06325b07f7a25be + last_write_checksum: sha1:764f22ed8fd1e41f057a25ca72a928b55367c4b5 + pristine_git_object: 2ce264def5b7a3500a262a51ac3985788d7de277 docs/models/components/pindocument.md: id: 5d5067aa7de9 last_write_checksum: sha1:f9ab259ec407aad783b7a06a09b1b84e86d0dfa3 @@ -1798,16 +1929,16 @@ trackedFiles: pristine_git_object: a3c7fab18e5fe303bc3fa5a41c31a0f12149f269 docs/models/components/propertydefinition.md: id: 5bf5a56cf9db - last_write_checksum: sha1:8fbb96437519f22f0a42d4b936cfd193b74575b2 - pristine_git_object: be8b6c18d0ea10e06a8079a8865dfd00bfaf34e1 + last_write_checksum: sha1:6970dc28b84440d7b24abb64c90092ac2886566e + pristine_git_object: 171a802c484162c6b44ea54789246040b4034701 + docs/models/components/propertydefinitionpropertytype.md: + id: feff56dc5b61 + last_write_checksum: sha1:e7678be44ffe1cf3a9dbaa2e85e6863bd623e9e1 + pristine_git_object: 68016aa80f32fcb90da236bfd286d8d0394b93b4 docs/models/components/propertygroup.md: id: 1c5f9282d54c last_write_checksum: sha1:99a89d450f440da7429e9dac2157614208990abb pristine_git_object: 8cdb967335365a319d14285312230ba8f59a02c8 - docs/models/components/propertytype.md: - id: 10e5d0221e95 - last_write_checksum: sha1:cf4f0812fa8da7ae5d7bf96103f9198e1c5777fd - pristine_git_object: e18f41f2b048848a2e0d800f04d87292625851bb docs/models/components/provider.md: id: 68dda5cff49f last_write_checksum: sha1:c38fda969a2ed237925e662c5950f9da62c01edd @@ -1928,6 +2059,10 @@ trackedFiles: id: ab26d0e394ad last_write_checksum: sha1:8590c8123a831583c4dd50fca24538e29f26c094 pristine_git_object: a5a2937814c57895b79d3f1e5630ed0e0e0bcc34 + docs/models/components/rotatedatasourcecredentialsrequest.md: + id: ab6f27959256 + last_write_checksum: sha1:4489d26723e55e37101f2b2da6a73f05b2917650 + pristine_git_object: 1ad91df110c2d8c9a61380d98305864feb0bf9aa docs/models/components/rotatetokenresponse.md: id: b4173c857834 last_write_checksum: sha1:ddf076559ab461f20257d864b2e754f91cf769f0 @@ -2096,6 +2231,10 @@ trackedFiles: id: 05014ca9759b last_write_checksum: sha1:518625cf03207767840ccdb930fc5afc520d2c91 pristine_git_object: 05c1a477893c58647f9ed979e1a8eeb62cad9bee + docs/models/components/successresponse.md: + id: 1ae417c0a56f + last_write_checksum: sha1:c3583341bbd3efb9a2799460c78c41b71653f855 + pristine_git_object: ed7a255fc906a53ec894ef98499094edc0a03119 docs/models/components/summarizerequest.md: id: 1a9462b5ad31 last_write_checksum: sha1:fdd8989c0f94889ec1577e8f9cddde12c85b29ad @@ -2214,8 +2353,8 @@ trackedFiles: pristine_git_object: ff0c9ab42bb2060ffa4b4baa6b29d2136f97dd18 docs/models/components/ugctype.md: id: 40fa5e032f80 - last_write_checksum: sha1:666fbcbb4f9fea212067be2d92d8560b9983321b - pristine_git_object: ab33bae4b77fa7db4a2cf2b227ff0337e6bf6d20 + last_write_checksum: sha1:d9465c589f412da573ea39e35fdb51d02544c65f + pristine_git_object: be5ae7ff3b8dba9d8393f317ded1caf324ea24f1 docs/models/components/uiconfig.md: id: 755fbd873311 last_write_checksum: sha1:682048883ac81a43f5ff7becd6906e1146dfa46a @@ -2378,8 +2517,8 @@ trackedFiles: pristine_git_object: 63fe00e65819716b5506a942069c425a50adf0b8 docs/models/components/workflow.md: id: f569d478b233 - last_write_checksum: sha1:3f5162cd331d8694528f35fb6983b0417cdd9657 - pristine_git_object: 4987bf1194832163a582eee064ce46a0077d1ff3 + last_write_checksum: sha1:638a8b2ab4f14ecb2490e4c47af51ca8da591d8f + pristine_git_object: c6b0e34b7e77c6280a9f4e2fde00fe062aafca0d docs/models/components/workflowfeedbackinfo.md: id: fc6ea7558326 last_write_checksum: sha1:f54515e67180906a8b81931baa055bd474796f66 @@ -2436,6 +2575,14 @@ trackedFiles: id: e7ee2c1d9ffc last_write_checksum: sha1:884cc5affa86445be35f690bcd0d29185ae878ab pristine_git_object: 878083b47a9b830e6dcf809bb6c480b038749b1b + docs/models/operations/authorizeactionpackrequest.md: + id: "131637320050" + last_write_checksum: sha1:485761883c8bc9823ec25fc9496087df420cfe2a + pristine_git_object: 793a8bb4df49c456220f9371677a579595c01cc0 + docs/models/operations/authorizeactionpackresponse.md: + id: 27e8e7c29119 + last_write_checksum: sha1:158688ce2520a0d44fb085142914a13ba0428079 + pristine_git_object: 8909797b8f822c95d1b525fd7d105066c8709e76 docs/models/operations/autocompleterequest.md: id: 752ede2ff9a7 last_write_checksum: sha1:7c1876252a95fc254c924a4bcafbc442915f000a @@ -2588,6 +2735,22 @@ trackedFiles: id: e47fa5f58192 last_write_checksum: sha1:e4a6592e1b72c1b81c863bccb04ad9a78fe940a7 pristine_git_object: 2f0484554871443ec13706bfa4d0d57f9be95d23 + docs/models/operations/deleterestapiindexcustommetadataschemagroupnamerequest.md: + id: c40971658c83 + last_write_checksum: sha1:ca50ad759b4fbb61d528e1d69842f28beaaf739b + pristine_git_object: b9f2943a9025b2087232c0395be60627b39d7281 + docs/models/operations/deleterestapiindexcustommetadataschemagroupnameresponse.md: + id: a36fefbd2c7f + last_write_checksum: sha1:7fc37eef327c4880783ad48832f05ffc3e026feb + pristine_git_object: aca67bb04788bf67c3356ad3d225c9a70d537c54 + docs/models/operations/deleterestapiindexdocumentdocidcustommetadatagroupnamerequest.md: + id: 25670510a5e2 + last_write_checksum: sha1:9616dd144e158afb94c6a4ccbbdba664f7185362 + pristine_git_object: 4d55f6a8714d35060702bfd7cbc59c656fcc7f5c + docs/models/operations/deleterestapiindexdocumentdocidcustommetadatagroupnameresponse.md: + id: d66c797b33ce + last_write_checksum: sha1:218ddcaab7bcd08f291728022e77ac29bc7c2d46 + pristine_git_object: 104f0d91908347656c66a047f0602b22bc9a0390 docs/models/operations/deleteshortcutrequest.md: id: 97f33a2eeb5c last_write_checksum: sha1:85b5b82c6166fc6153e3f480b2fdd8e3f9a96e15 @@ -2620,6 +2783,14 @@ trackedFiles: id: b0c1fe492b6a last_write_checksum: sha1:045261f54f9f7e1f602b266cd96b80fd991ac293 pristine_git_object: 3e1b47316a5a384a910a27c7d4b75f826e06095f + docs/models/operations/editagentrequest.md: + id: 78e89c286bca + last_write_checksum: sha1:77c904e0cdd33e28cf36352e7a4ed0a1b7c030cc + pristine_git_object: 5d80e1c0e0bd1903751564550acd9ed5783d197b + docs/models/operations/editagentresponse.md: + id: 488fdda02cb6 + last_write_checksum: sha1:7519aa660fb253b37bef7cdad0ac115609b07510 + pristine_git_object: 6cbfcbab55a2450ab3d8486224125303a579da23 docs/models/operations/editanswerrequest.md: id: 2573f0a10f41 last_write_checksum: sha1:9486f7b147e61284b8a2e70f1c229dbcbaf16570 @@ -2668,6 +2839,14 @@ trackedFiles: id: f23d47e5c5cf last_write_checksum: sha1:30f20000d5d8f3fdf0e96607189d8c0ab2adb3e7 pristine_git_object: 35bc0223fa8ab49c00e2ef758664926fd47bc926 + docs/models/operations/getactionpackauthstatusrequest.md: + id: ce9be241c7bc + last_write_checksum: sha1:3d7468bbc9368467fa69774385dc9f698b4e979c + pristine_git_object: 9cd8ba0cfbd3044508857a00f5d5120a4f21b74d + docs/models/operations/getactionpackauthstatusresponse.md: + id: 4779f0840fce + last_write_checksum: sha1:b4f53cd9a36854da695fc9cccde626e852d00ded + pristine_git_object: a28a749f6b7fdc6854f2b6f56fa27bd882288f17 docs/models/operations/getagentrequest.md: id: a4206a636d2b last_write_checksum: sha1:bfba08d4588d0b3b072c1d6e290890c6a3c5d1d5 @@ -2700,6 +2879,14 @@ trackedFiles: id: 5b1148422621 last_write_checksum: sha1:960909138e946a9d14f70e6cbc5ece573ada0ac7 pristine_git_object: 9fbdc6d2e859d3cc529ce3337d22457af91af34c + docs/models/operations/getchatfilerequest.md: + id: 59913a533ce5 + last_write_checksum: sha1:9f88e633489f049e72ffaa8713655376f9f047fc + pristine_git_object: 043ed1cd846bec9f7b12614ffff53bcfe3b24e40 + docs/models/operations/getchatfileresponse.md: + id: 6bd718a6dc37 + last_write_checksum: sha1:8d09931bdbd51c894801e44e5786e090f1ebdd21 + pristine_git_object: b44240b4e529a862ad43bddf3e06441c11956b05 docs/models/operations/getchatfilesrequest.md: id: 59c507362ca7 last_write_checksum: sha1:c0381700ba9b6f45697a325d3edcf3dfb1f80b00 @@ -2724,6 +2911,14 @@ trackedFiles: id: 62007304603c last_write_checksum: sha1:8304100d10f654167db4ce5263b0a19cfa061b75 pristine_git_object: f7f30aff0730fa1c5c664acf8fc777eff94db63a + docs/models/operations/getdatasourcecredentialstatusrequest.md: + id: 1d1b325005f1 + last_write_checksum: sha1:22dab41031e73264ea09835d905746c924fd4815 + pristine_git_object: ece87dbd88b34b0d3b85f61585ade1748c70df0e + docs/models/operations/getdatasourcecredentialstatusresponse.md: + id: 1f43993ed7a3 + last_write_checksum: sha1:c72b106b6f00384edd04f8ea8f4ccce2ed06f14a + pristine_git_object: 8701f9119d0e8ec2a3f8c3c25170121e2ef2fe03 docs/models/operations/getdatasourceinstanceconfigurationrequest.md: id: 99af2f064d8c last_write_checksum: sha1:a7945e793a87bf78336ca727b46759ce7e0ef7a9 @@ -2764,6 +2959,14 @@ trackedFiles: id: 78c80cb53c45 last_write_checksum: sha1:4ad2d89254a661abc0f85a288224b4ac7e2f86d8 pristine_git_object: 0529f9ac00af0a4e8a0ca0b6ad4509aaeefd14e4 + docs/models/operations/getpersonphotorequest.md: + id: 72bb69e0134c + last_write_checksum: sha1:c72701b3ae98ce90dd83d38f35cf095ac40fee44 + pristine_git_object: 5bcaccb8c87362ae5b9e2d909bc95e5f1f3b2f55 + docs/models/operations/getpersonphotoresponse.md: + id: 366c051d9673 + last_write_checksum: sha1:b76c498601a05b784a7c9455bc737a733b26eb2a + pristine_git_object: 82cb5abe1a87eb73404fa0abce87ec9fd3fa9803 docs/models/operations/getpinrequest.md: id: bfd90dc88246 last_write_checksum: sha1:81446795b4855277aa1da0f7ddd7c86f84c434b0 @@ -2788,6 +2991,14 @@ trackedFiles: id: 06a54e0174b7 last_write_checksum: sha1:6a64f70c9472d8850d37673d63f79c2ca6e6ed1f pristine_git_object: 5c411083939c5f988d542cad93eef6f76f5c2ded + docs/models/operations/getrestapiindexcustommetadataschemagroupnamerequest.md: + id: 98b5f81e87e3 + last_write_checksum: sha1:ab90b646b9d0821fca0908c89cfd4ea75c73140f + pristine_git_object: 256538c4dfa5d0ed08e0bf568efa63f067093b8c + docs/models/operations/getrestapiindexcustommetadataschemagroupnameresponse.md: + id: 97ca0bb31abd + last_write_checksum: sha1:cf9c68531f42ffff4d02e79e8b0ec95f84bbf9b5 + pristine_git_object: 32e7bee977a43e82bf5f9d51c0038e1a526d9ae2 docs/models/operations/getrestapiv1toolslistrequest.md: id: a0f52a6543af last_write_checksum: sha1:a3c61a1e51ac486e104ea2a9f78942c4d54457c4 @@ -2952,6 +3163,14 @@ trackedFiles: id: 0e51ae716fdb last_write_checksum: sha1:47afe60dc63d2e9724874cbf9ab6b22958272ad4 pristine_git_object: 2bd3ac9897cbc97f9204d4c40f44720f83e7285e + docs/models/operations/postapiindexv1debugdatasourcedocumenteventsrequest.md: + id: 13205d748dcd + last_write_checksum: sha1:fb146d061aafb500f8477738cbf4934e1c44a601 + pristine_git_object: db3b97acc908f94b705ecf76042b9eb5e02f2f11 + docs/models/operations/postapiindexv1debugdatasourcedocumenteventsresponse.md: + id: d44d609d554e + last_write_checksum: sha1:d1b62fd50e60cb0bd668e537a0aaefaadfc99d6a + pristine_git_object: c551502500aa1bf45b4b16a8b85fbb99d583b06e docs/models/operations/postapiindexv1debugdatasourcedocumentrequest.md: id: dbefb45abdb1 last_write_checksum: sha1:ede2e1ad676ed2fae61fd160be35fd4d0aa5c1aa @@ -3080,6 +3299,22 @@ trackedFiles: id: c4414169756f last_write_checksum: sha1:887d05b9aa864cbe327f2160146d1729f43d7043 pristine_git_object: 8141f6141f4fb5e7abbb3fc90c79bdc28a059d15 + docs/models/operations/putrestapiindexcustommetadataschemagroupnamerequest.md: + id: 3d7cd86e06cc + last_write_checksum: sha1:5ec7d5ad7aaa0b7cf517e0d90809d631b71f69ad + pristine_git_object: a4f1916b016d3619f3292851480c12639fc51158 + docs/models/operations/putrestapiindexcustommetadataschemagroupnameresponse.md: + id: 9f945e823792 + last_write_checksum: sha1:ac2845e21339af62aa115ab3d93456943cf40ea3 + pristine_git_object: d166f9dbf77bb7b1ecd07ed270298470bb4e3ac5 + docs/models/operations/putrestapiindexdocumentdocidcustommetadatagroupnamerequest.md: + id: 74f2c0c0bfbf + last_write_checksum: sha1:8711428ab76e4a5ab7543d08744c5e6f28c8df6c + pristine_git_object: aa1897349d37a7e5d3ec75a64038a5cb880c1dff + docs/models/operations/putrestapiindexdocumentdocidcustommetadatagroupnameresponse.md: + id: 3a03bd5970de + last_write_checksum: sha1:e8501d2ecacb45fbd89224afd49217dacbdd5ab6 + pristine_git_object: c39efd2405299a4cc8ff69b73480f255b3778c20 docs/models/operations/recommendationsrequest.md: id: be4f2c67f5e4 last_write_checksum: sha1:abe41cfb16d6493c8e658070f5b569f9af9fdb99 @@ -3096,6 +3331,14 @@ trackedFiles: id: d828d08c5322 last_write_checksum: sha1:9dba8add627bcc2ec935ee195e4f9e0c330e0371 pristine_git_object: 90a40d58aa7325686ded7d84dcfa225af37154c0 + docs/models/operations/rotatedatasourcecredentialsrequest.md: + id: 895a01716ffc + last_write_checksum: sha1:e22fa437bebf81283019b31aa1f9facf14775c2a + pristine_git_object: d839b2b0d2afb94c07bac62d494cab17ff6015eb + docs/models/operations/rotatedatasourcecredentialsresponse.md: + id: 92196047c861 + last_write_checksum: sha1:fc159201cd9938842c8f9efaadae74d5776998cd + pristine_git_object: 466825e19f7d64f04413635c54d1909a46cb7f6e docs/models/operations/searchagentsresponse.md: id: dea4aaa5230f last_write_checksum: sha1:4872d92e2f0487ac22c738992937fba0c9afdfcf @@ -3178,12 +3421,12 @@ trackedFiles: pristine_git_object: 2e1aa15c46499c62e6b92190bbf8136f023f4578 docs/sdks/activity/README.md: id: f6e8241fca80 - last_write_checksum: sha1:85ebbde67d0ae5c5d2c9c43c221395f4540d4c14 - pristine_git_object: aa7cf463b1768f440bb27490a2c8d4388c592946 + last_write_checksum: sha1:e0301a6beddec76b334f30dc5a6893ee06d6205f + pristine_git_object: 018ef72bf766f3a72131d0539b29ae19162b8c75 docs/sdks/agents/README.md: id: 5965d8232fd8 - last_write_checksum: sha1:3b32f0d623d36d4f20ab5d8dc3b94c9b93ae52f6 - pristine_git_object: 5e6578d79b856288618cf75e9263db486577f5e4 + last_write_checksum: sha1:fb7b3f61fb0f2e9145a7b1a00a87aa20e3f3bd83 + pristine_git_object: d34e421e21346a68013846a4d03173d11f944a10 docs/sdks/announcements/README.md: id: 3d2e130a217c last_write_checksum: sha1:97d528dc357f375132308cb8343e29e151f0ffa1 @@ -3198,36 +3441,56 @@ trackedFiles: pristine_git_object: d7a687b6a58c3cace5906738980bf7c579f5cb07 docs/sdks/chat/README.md: id: 393193527c2c - last_write_checksum: sha1:67db335d98baa25c75503e30b1c93b1fa6f09c0b - pristine_git_object: 51f25cab8dfd747b7c00b420442ca55db820b415 + last_write_checksum: sha1:b71162669a89d4886ba5f9ea5be0a96fc1b1f96e + pristine_git_object: 3d6d575c8d8dde39e9a743e3ee12ca3ae3588864 + docs/sdks/clientagents/README.md: + id: 8e00e6d6b64e + last_write_checksum: sha1:3b32f0d623d36d4f20ab5d8dc3b94c9b93ae52f6 + pristine_git_object: 5e6578d79b856288618cf75e9263db486577f5e4 docs/sdks/clientauthentication/README.md: id: 463bffe80b61 last_write_checksum: sha1:54cc5c45aad1b47af74a4611e4e2acc74aa9ef0d pristine_git_object: e860dee0bf8651acc82b0a0338ff883806cceadf + docs/sdks/clientchat/README.md: + id: baf998e3d238 + last_write_checksum: sha1:67db335d98baa25c75503e30b1c93b1fa6f09c0b + pristine_git_object: 51f25cab8dfd747b7c00b420442ca55db820b415 docs/sdks/clientdocuments/README.md: id: e0c074acef4e last_write_checksum: sha1:6cfae9ecbe824c2b628d2e25371caab7f90dfa1b pristine_git_object: b02d254eb5ebf81f4161cdb21a56af1b9b23c4ff + docs/sdks/cliententities/README.md: + id: d087d30c9006 + last_write_checksum: sha1:9eaff50ae1c510314370bd96284f4136a0a1a569 + pristine_git_object: 822790f6a7f4de9d387e6c9ae2c4168c5ad0577b docs/sdks/clientshortcuts/README.md: id: d5a9d841b61c last_write_checksum: sha1:b6e115aee29a7646246b79ce4e050654fc41d34c pristine_git_object: d238eba1e4b347cd06d90ad60bed2490c1ae5e7b + docs/sdks/clienttools/README.md: + id: 6c303a9741bd + last_write_checksum: sha1:59f3e9004163473092aa54dfb6f3be117f29fb6b + pristine_git_object: ed260d4135348cb0489889953a10557b09e6fc63 docs/sdks/collections/README.md: id: 7985e64efccf last_write_checksum: sha1:7a84eddb6af3516d20e89f1bb38491df0ad40360 pristine_git_object: a063789fcae4de4e0c48d5b00f9ef55031c2aca2 + docs/sdks/custommetadata/README.md: + id: b95d224c9f1d + last_write_checksum: sha1:0efd5f75e34bb8542f0d5663146366dfc6a55e2c + pristine_git_object: 3a76b3a08af7c244642f809d3687d1c00de034ca docs/sdks/datasource/README.md: id: 4671628477b5 last_write_checksum: sha1:1f7b83521b804c0d97941d703e9f8a048870e494 pristine_git_object: 4d5cb836318cb46c769f684f6edb632d353e373a docs/sdks/datasources/README.md: id: 024d3ed36945 - last_write_checksum: sha1:677dce320ac3e90833bcda10e7bfa8a1cf0d21e2 - pristine_git_object: 44e282630c2c568311264e0901d767d573bf911d + last_write_checksum: sha1:d23b6a52567dedd7b28ab95b7a2aaacc457eccb5 + pristine_git_object: 708aa0fd95be268ced6a164b12e2930c2cb47e1b docs/sdks/entities/README.md: id: a140ac5181b9 - last_write_checksum: sha1:9eaff50ae1c510314370bd96284f4136a0a1a569 - pristine_git_object: 822790f6a7f4de9d387e6c9ae2c4168c5ad0577b + last_write_checksum: sha1:bd8bb46cf180a93acb5a1c3f380dee5d33607642 + pristine_git_object: 9d724d1d8b11f5da1dfdc5095ebfdcc9775facb3 docs/sdks/governance/README.md: id: 87817eb7bf48 last_write_checksum: sha1:2b797fd101b2030dd7fcc72e7a16ced5c38b6638 @@ -3282,8 +3545,12 @@ trackedFiles: pristine_git_object: e43390fe4ce242360709fe27c11bf31686a4fe9a docs/sdks/tools/README.md: id: 044286549bac - last_write_checksum: sha1:59f3e9004163473092aa54dfb6f3be117f29fb6b - pristine_git_object: ed260d4135348cb0489889953a10557b09e6fc63 + last_write_checksum: sha1:704231f256fca52651a6db298153998771ccc1b5 + pristine_git_object: 38d0285161780dff17980e8709e8f343dda8f726 + docs/sdks/troubleshooting/README.md: + id: 0c78de25ee92 + last_write_checksum: sha1:c1e62a4fa447d39e555033e95af2a68c25365eb8 + pristine_git_object: f62ce46b0cd066ec1919d353b0da8916a161642a docs/sdks/verification/README.md: id: 8148670b64d3 last_write_checksum: sha1:644e22c050d13ef496bc2551f2f3944e6f4864de @@ -3298,16 +3565,16 @@ trackedFiles: pristine_git_object: 3d83ed2f48ff36968042694693ec08d892ef94fe entities.go: id: d7e3d6868ee7 - last_write_checksum: sha1:3d4c091cc9f8c32dcfb5f4aa0d99f217c027e04b - pristine_git_object: e86696d295bba4e96abf6e1e06ca5a04942b0f57 + last_write_checksum: sha1:aa6a548bc7042472f946933d52c7f28ad5eb3534 + pristine_git_object: 117e015a2b8fce0cb8a931963503e7ab1c7066d5 glean.go: id: f5ed099b8e85 - last_write_checksum: sha1:63117b946ed35aac7ca6335e88456e8a1e5c627d - pristine_git_object: 08e93eb262f0adcef8883b57dd9beea6d8063118 + last_write_checksum: sha1:d34d07260dc574e55babd88fd70480b9fc6f93eb + pristine_git_object: 0e8208a9238092eab87b288b136f66eb83343d97 go.mod: id: c47645c391ad - last_write_checksum: sha1:86e3d2575dc26780579383eddbc5be5adbd21501 - pristine_git_object: ffa5d2a155603010ca89d4a604a720a879c494b4 + last_write_checksum: sha1:cf65a2c96e303858d4cf70e07d4c44d3f1c1db38 + pristine_git_object: 3a9e7d2e6bc213ab6877a03050d65e2a25693a52 governance.go: id: 7386e0073ab6 last_write_checksum: sha1:0a854cacedf44a2ee6a1a50f39e13779d1fa3b23 @@ -3318,8 +3585,8 @@ trackedFiles: pristine_git_object: 171eb965746bf98c155b4558edc94e0099acd143 indexing.go: id: d4741949bd27 - last_write_checksum: sha1:790d98c285d6222ad1baaf9848e0ddcbcb0e827f - pristine_git_object: 035a8721feaae9a11465c2ba495b17b9e096b7a4 + last_write_checksum: sha1:6ecd1383526dd8efd0d3a066226ea0cff7d8bdbd + pristine_git_object: 99d3231d5c5ba8a35e722a0837e5822e64514a71 indexingauthentication.go: id: d157d6b62bed last_write_checksum: sha1:527ea773610a3d6a489bd2f62a2063ec2e0d69cc @@ -3366,8 +3633,8 @@ trackedFiles: pristine_git_object: a5aaa34580ed193e5fd280bdf1e57737622fbd6a internal/utils/json.go: id: ad03e3c502d8 - last_write_checksum: sha1:37a290c0a3f568c2ac1d5eab0e11315d1d6a1bc1 - pristine_git_object: e84766eb7e1433bf0895747959820ec11e386679 + last_write_checksum: sha1:379ff991d6c13070a7f4c35c71122e2b326bbcd1 + pristine_git_object: 2cfbfc87c6c831f18ceee0e055b02779b421b0a3 internal/utils/pathparams.go: id: 1f3e0c30fd90 last_write_checksum: sha1:62fcaae714014adea2edea0f3ad509e8845b85e4 @@ -3390,12 +3657,12 @@ trackedFiles: pristine_git_object: 7c1a372ae314a9d82ab82c3db610e7ffe67ecfab internal/utils/union.go: id: db86c85746b6 - last_write_checksum: sha1:3a14faf92f66c4dc149f1ac3a6c34b97b0adffd6 - pristine_git_object: a5e3640d16055fa0cfa33b973608e1956cd9244c + last_write_checksum: sha1:235a66107f3106747f23d6c1539122eaeaf06ae8 + pristine_git_object: 02ac87dd5ab2658527393b0baee1d87be96abd5e internal/utils/union_test.go: id: 4b56247171bd - last_write_checksum: sha1:83ac73c1901de4c6db90f65cf5879163f3d47a00 - pristine_git_object: f66814c73ace94d8e71d785fd6161fb405745754 + last_write_checksum: sha1:bd5c7506e1d6238117c1ac4e340314a5a41401b5 + pristine_git_object: 138f7e2a066b10dffd0a9957ecfcab9e00dd26fe internal/utils/utils.go: id: 1133b2a27019 last_write_checksum: sha1:36a3e6fb95d71868d1755dbb3b924a37340c7ea7 @@ -3412,6 +3679,10 @@ trackedFiles: id: 8b14058cf11f last_write_checksum: sha1:163bebdae80cc6e76343663834528deb0a588afc pristine_git_object: 19ba69615e9e17d9666c448a7b3abaea4edc71d2 + models/apierrors/errorinforesponse.go: + id: 9b0b0bfb1f84 + last_write_checksum: sha1:5d8b6f7df6b6c93d3de2c29040af4295145d0e9f + pristine_git_object: d6eecf010f59026d81c373d5a7ff3975d2bfb162 models/apierrors/errorresponse.go: id: 182eb0b81d4c last_write_checksum: sha1:94fe126d147f9ea3bf18b7f1dde74fdacf258673 @@ -3420,6 +3691,18 @@ trackedFiles: id: f132d0ae5f23 last_write_checksum: sha1:99e17fda511ac95fd8a87175e48bdde005f28bd8 pristine_git_object: 0cb29cc11dad811222df83cf13166329eb6a6573 + models/components/actionauthtype.go: + id: 684a5494ec99 + last_write_checksum: sha1:b7cecdbe2ccfd9743544258ef985bfa4c69ea66b + pristine_git_object: 0807b42db7254ac234a60be6456476c40accdeaf + models/components/actionpackauthstatus.go: + id: 3433a9ca665a + last_write_checksum: sha1:ccd1b64a72c80039169ff57588924223645d1943 + pristine_git_object: ecc55b25a8d2a9e672de071dc9e4c0ecdec7697c + models/components/actionpackauthstatusresponse.go: + id: 7b64228b08d4 + last_write_checksum: sha1:3d7fc9bd25575aa13270179abf6a2416884dc4f7 + pristine_git_object: 59ba7c899919974802ab72f5ff6e8100c5048a9c models/components/actionsummary.go: id: 6e681273cd50 last_write_checksum: sha1:a9bf8f8d3beaf8f30dc9742dd8c5881f7a8a9277 @@ -3438,8 +3721,8 @@ trackedFiles: pristine_git_object: 75b3c4a4d2ad6ac7637d723e984ff8b385ea34cb models/components/addcollectionitemserror.go: id: 4e86b1a046b1 - last_write_checksum: sha1:9a511dba30696311e0c9582d5742875131ad9c1d - pristine_git_object: fff0a74d6d5eec3de937fc52f83dca3f8a255d15 + last_write_checksum: sha1:4017ee1e80e1b279be6ff86888a8288f9ec0a1e2 + pristine_git_object: 7ffec3ce652a82a21367ae3b30a938356cf98db7 models/components/addcollectionitemsrequest.go: id: 02556a1c5bea last_write_checksum: sha1:e2bdeeb17fc822a0bb6f78b25e981b0d099803b7 @@ -3482,12 +3765,12 @@ trackedFiles: pristine_git_object: f17e38e2f4d127fe7879aa23b60e27448a2969b2 models/components/agentsinsightsv2request.go: id: 131e6362cccf - last_write_checksum: sha1:12e00bd6e3734c45fcacb2d1ef6077ffaae89f7a - pristine_git_object: 9b1eba5ba4d599d92015d2f013a43d437af323c3 + last_write_checksum: sha1:62f10984478b30f1a9f5d4805ea4842fa5126fce + pristine_git_object: 9ec9b339d1e442726e3789dac4c7472067267555 models/components/agentsinsightsv2response.go: id: 498234153aaf - last_write_checksum: sha1:b646237dd54d7cc3ab0e9dc74d04c55720e9e157 - pristine_git_object: 286249f5800ea38c73ff57ee2c2201ff3d7e0c0a + last_write_checksum: sha1:9b0d05dfa587a63e3ffbe4551187bead6aaae5d1 + pristine_git_object: d63dbdeb9dab4014b45f3151a065c09e16ad90b4 models/components/agentstimesavedinsight.go: id: 540523d18823 last_write_checksum: sha1:7e7b8e5dc9cbe2793613bf7da13114c50bf12dc2 @@ -3496,6 +3779,10 @@ trackedFiles: id: 88e9bf32c0c6 last_write_checksum: sha1:9c0d88e8e768d81102d3bd9ae9fe7479f898dfc5 pristine_git_object: 80d85f7f79e9f331ae96d1147075d0bc4106ba68 + models/components/agentusecaseinsight.go: + id: 49f309177c4d + last_write_checksum: sha1:b7ccc060574ed469c8f5858fc3ac1472ab6b8d8f + pristine_git_object: 60d4e6f18bc82f3d2a6701395240d7fd998466a1 models/components/agentusersinsight.go: id: 3cad6c53abce last_write_checksum: sha1:f6c8ce6ea19b205fd9844e031f599f7a0666e8de @@ -3506,16 +3793,16 @@ trackedFiles: pristine_git_object: 9e035c195ecdd79c5bcbea9f6ed753add5d01e23 models/components/announcement.go: id: f865c8524494 - last_write_checksum: sha1:fd00aede7f3cfb5a4998f3d708b967d8cce464f6 - pristine_git_object: 2141a54bce8521d0a080acef504fca66942fe7ff + last_write_checksum: sha1:c4bb0b76a5d2dd7f9d372e561ea412f368f2782a + pristine_git_object: 1063f3ad2857946fdc6b5185babe296bbc1dd6ed models/components/anonymousevent.go: id: 8fa0e624aa46 last_write_checksum: sha1:681eb33bceb76ced633f89e1bafeb62e13fc5734 pristine_git_object: 7ac01a19e96062cc9d752505aa8ecb167a1676a6 models/components/answer.go: id: 72c74afcb6ec - last_write_checksum: sha1:98a9a31c0a4798c63c3ab6df06a9d82f472f00de - pristine_git_object: e3fdf40127aff8ebcfaf8a26058610deaee6176b + last_write_checksum: sha1:6db212fb325ff250b709f1245eb417e2794e099d + pristine_git_object: 6b507217eb34e0d4ad898410d45fe7ae55692a14 models/components/answercreationdata.go: id: 9a872beac2ee last_write_checksum: sha1:0142c19a068aff9a729ca0518b9cf0b9a3fab204 @@ -3530,20 +3817,28 @@ trackedFiles: pristine_git_object: 21fbe4cf572064dccc1249bdb85794784b5792f9 models/components/answerresult.go: id: 0988fca44066 - last_write_checksum: sha1:01a62bb340d54b7246a8e63d0660cc3886576102 - pristine_git_object: ed1c5e61fb203126591893e89bc27d85d3c4a487 + last_write_checksum: sha1:baad938b5f5c70a11fa12b54d30a26d4c12015e3 + pristine_git_object: 9573fd441cf43361e5f20082c1368c9ea7dbb221 models/components/appresult.go: id: 895786e6312f last_write_checksum: sha1:f354eb72dc501a73ddbf202753507b9a7a69f8bb pristine_git_object: 6de90ccb0174c6acf79e645fc2999ef1dfedf073 models/components/assistantinsightsresponse.go: id: 4db8c2baf79f - last_write_checksum: sha1:d15a0d94059cadada77bac2370e17db5430efd35 - pristine_git_object: 97bf4e431187ce190e0a15097726f0287eff9b00 + last_write_checksum: sha1:41a52ea81861007440c87dadbd9d0d16d329802e + pristine_git_object: e6411d5adaec69be28787b667fb66befee515e8e models/components/authconfig.go: id: 345de3c51342 last_write_checksum: sha1:3c84d57ecfd714ca1cda1c839083e5ed33c6c69d pristine_git_object: 47be47e2a68090e2e866c891a29a088309ab46fa + models/components/authorizeactionpackrequest.go: + id: f6494e4bf973 + last_write_checksum: sha1:e40c8e9c6f933d34daf87358307d887cbb874763 + pristine_git_object: aae862f1fc5321fe51a3e41a5685ce345f5b7cfb + models/components/authorizeactionpackresponse.go: + id: 45636e056a26 + last_write_checksum: sha1:9511a9ec5d1ed14d28c9425aaaf3c38b591cf87a + pristine_git_object: 79e6b067c28c061f658547e3ddf0e196a1feec58 models/components/authstatus.go: id: f5c00a42daa4 last_write_checksum: sha1:5321c3fa41d30c42302c327ee6beeb0c12492a9f @@ -3682,8 +3977,8 @@ trackedFiles: pristine_git_object: 3bc07a001c71b68cadc6a05818325d9d7c0893c2 models/components/chatsuggestion.go: id: e8fcde3c93f9 - last_write_checksum: sha1:ddf8fe8b1c400e73f449566284448b4f14ffe6dd - pristine_git_object: 32a6142d54800e2179fe7c400051bdecb5c827a3 + last_write_checksum: sha1:af002ba74dfbbbeb7543e3847ab5eaa590bb623d + pristine_git_object: be2e3fa0af6962549383ba7bd90d6a944a06ceca models/components/chatzerostatesuggestionoptions.go: id: 71c187430867 last_write_checksum: sha1:15a8248291bda9975775168a5d6254e73dd6e6b5 @@ -3718,12 +4013,12 @@ trackedFiles: pristine_git_object: ae7ddf1964db9c32fb4446e2a6f9fcbcb2bb3ba0 models/components/collection.go: id: 5edd73b30318 - last_write_checksum: sha1:b4c38e3f491dc99523531223f6a49bdc220d0fa3 - pristine_git_object: a26bc36faeb43d11708e4db370f42f4503915b37 + last_write_checksum: sha1:e0fe8e080705840b0d3eb5b11e9d85fb8c3b9802 + pristine_git_object: cadafe3dec2ff9c9f7e47598aaf1cf9101bb6eb5 models/components/collectionerror.go: id: a647650e5249 - last_write_checksum: sha1:07fdb8a6257a6907fc3b13beb4ebfc3296b2edf7 - pristine_git_object: 3aacc5036c9422d29ed64486306b228341e30f3b + last_write_checksum: sha1:8f47b1ea6f02b17cfe844522bc714d45f2d7798e + pristine_git_object: f795ed5f3d76e42ad0531ef4effb944a68dd5498 models/components/collectionitem.go: id: 6f1b180e0e45 last_write_checksum: sha1:36dbd057764e686f5b0194c4f313a60633b593e4 @@ -3822,8 +4117,8 @@ trackedFiles: pristine_git_object: cfac0880bbbc9cb1a70908990c4d458b2c64002d models/components/currentactiveusers.go: id: aa094b46ec70 - last_write_checksum: sha1:cb9b367822d88c64fe306c6da83cdc4a0cdef5a8 - pristine_git_object: 0209f746ad3fd369c56bcf8e26cce2332691ce2f + last_write_checksum: sha1:a5f4ec235cdb4b3a3779fd05bba67c392b0d542b + pristine_git_object: 54052f2b59a8c9dbb47f189c1dbe9869b2347e18 models/components/customdatasourceconfig.go: id: c6df2ec7a40c last_write_checksum: sha1:0e849af91ecc0d8ac3549be4e8821bf6b84bfd00 @@ -3868,6 +4163,18 @@ trackedFiles: id: 2e49689253aa last_write_checksum: sha1:d46ce9601e50dae849955ca89f9a9f984e2dc17e pristine_git_object: bcf09da0e2b574732970bbb985454010453401d1 + models/components/custommetadatapropertydefinition.go: + id: 9b9f5a4ae77c + last_write_checksum: sha1:b8063f17ac15b9f903f6d505bc041d881d9bbf3c + pristine_git_object: ed5a60f419ba5b328a8736d8440b05e9805f8298 + models/components/custommetadataputrequest.go: + id: 0c0c9ba9b209 + last_write_checksum: sha1:0176982db894add9d1c0da7fda2474c9459f5eb4 + pristine_git_object: 5e8bce729f99b6c412f397e7ba5c39c839208103 + models/components/custommetadataschema.go: + id: 29055162fddf + last_write_checksum: sha1:08ace76196b7224e26ad673411075681ba838779 + pristine_git_object: 1b3bdc5d3a44dc4b7dc334559f9770b78883c0d9 models/components/customproperty.go: id: d8cef4ebb08c last_write_checksum: sha1:6df6f0a9ce4223def79837a5dbd862d3023d4773 @@ -3892,6 +4199,14 @@ trackedFiles: id: af4a28b9c90b last_write_checksum: sha1:df7c10223a7c713899f6907bbc2974026455f7d4 pristine_git_object: 948d518ae5ee4aaf02fc03d5a8272e0819d5ef88 + models/components/datasourcecredentialstatus.go: + id: 91d1faf0aed0 + last_write_checksum: sha1:6f34049b3f562d0fe9f294143a630b9e1eef419f + pristine_git_object: caafd3def02b9b2b168b0ad32a9d2b5c86915464 + models/components/datasourcecredentialstatusresponse.go: + id: 4832ff68c92b + last_write_checksum: sha1:7dfbb6c47438342172c633d3802d416fecab32ea + pristine_git_object: 754924288bd8d80f7f837fbf661605ea23bb2800 models/components/datasourcegroupdefinition.go: id: 813b5c2434f2 last_write_checksum: sha1:7c80cdc752c38dcead5d774dd023b0e87225d0f1 @@ -3924,6 +4239,14 @@ trackedFiles: id: 2258923b9a2d last_write_checksum: sha1:f35b893fda6c9c98222754a1f7a41a809147e708 pristine_git_object: a870d63301950a519d9780cb2bc32e22382d1d59 + models/components/debugdocumentlifecyclerequest.go: + id: b95815d241e7 + last_write_checksum: sha1:b0bbf733a778bfe019ceaf2766c39a45f54fd221 + pristine_git_object: 4b4ebd61abfcb20e963a0c47ca6b6766956d3fac + models/components/debugdocumentlifecycleresponse.go: + id: 345594c8b500 + last_write_checksum: sha1:f13816b099135fdc1553553d692261fd50fff7ee + pristine_git_object: 448112cf149f6e80e207d5f8b22360224e2aa314 models/components/debugdocumentrequest.go: id: 269d1dccb38f last_write_checksum: sha1:28e2ce0c5c584f1afb9aaf981ff4a8c4f4f1f79b @@ -4150,12 +4473,16 @@ trackedFiles: pristine_git_object: 6ae74ce0456f52e48f3bb48bdb667a965cc2750a models/components/editcollectionresponse.go: id: b38b66386277 - last_write_checksum: sha1:38c876d4c64953847f2dcf714f3fdea50bb1da79 - pristine_git_object: 1ae01c48a9633bf51b98d1d9ccb8e9e354913b44 + last_write_checksum: sha1:29928f2a7328e72346ba9023cfbacdec4fdcf4a2 + pristine_git_object: e12f07d8e1ebad72f8ade16fcd76d36a2d46e608 models/components/editpinrequest.go: id: ca4932a51cf2 last_write_checksum: sha1:edaf8b79e7bd28c1520e7447aa546b085af9f43f pristine_git_object: 1f05770cf3e3311c6f272ce01583c1ebbaf772e5 + models/components/editworkflowrequest.go: + id: 7f6706a5d819 + last_write_checksum: sha1:55f20506d3a4a10f94c8a752458e8eaa8fc60bd0 + pristine_git_object: 9f5289816969a8b5b03ba5ac70bb2e48f67d4420 models/components/employeeinfodefinition.go: id: 2a3b8789ff29 last_write_checksum: sha1:3d719f49af654857ddb363545950f293af080316 @@ -4242,20 +4569,20 @@ trackedFiles: pristine_git_object: 9af4ad9a98f0e5cf1c74c4fd35a0c0d68d855551 models/components/feedback.go: id: 733062e46e19 - last_write_checksum: sha1:36d76cfa5b5856e7cb73bac4873623a823d8f84d - pristine_git_object: 074944e24b48edb94801dac5305d518b2d1c4785 + last_write_checksum: sha1:963a0766c3c9bd9e650789812739dbb3688dc682 + pristine_git_object: d0ec20fe623681731beb5f8757efa9e503c78801 models/components/feedbackchatexchange.go: id: b832209fa311 last_write_checksum: sha1:21ada1c8cae02c550cdb8e2f308434ad5b3dc433 pristine_git_object: 220dbff76d0d3d12e6bdcb05787a6df030124ca5 models/components/feedentry.go: id: 2826af1aa01a - last_write_checksum: sha1:f8eb4fb13f03d7cc5ba31ed071c2a809bd940702 - pristine_git_object: 4840423f780eb97195257607aa04ef6dee9f13bc + last_write_checksum: sha1:23cb4c832af30841d0d456764325b90c40d12cfa + pristine_git_object: 4b2b445128f6baf494bd18d5ad5cc1d35eaa175f models/components/feedrequest.go: id: 9f0a682fc981 - last_write_checksum: sha1:199744f59afc71f04dd378ae807f64aac78c9ee9 - pristine_git_object: 1026ad6276c310da5d78954fef3da5c71bb751fb + last_write_checksum: sha1:514927456d1c2feb6401bb7f4cc5141060684208 + pristine_git_object: 64a43533a5754b097e2f186b84f0bb8d882b7b9a models/components/feedrequestoptions.go: id: a56c104c989d last_write_checksum: sha1:7f238a9abb079c78202b1a9f65c87b82420f63ec @@ -4266,8 +4593,8 @@ trackedFiles: pristine_git_object: 60cb4b19cbb9bd29e37128e3110b2bf0a8f80d30 models/components/feedresult.go: id: f017ac6e3ac3 - last_write_checksum: sha1:2009180ee9fa7d0466699cb86a02748e54e244a7 - pristine_git_object: 3d75af0460c9303e5e9933ebeaf64ca8aa086658 + last_write_checksum: sha1:d8be9a7357790ab4936801113beb02d2f03b5677 + pristine_git_object: 952d93d3bfb149f745bd1a2790518afa7fd2a68d models/components/followupaction.go: id: aba266d23418 last_write_checksum: sha1:0a17407e6beba30680e5c38151e426a5ce7aab76 @@ -4326,8 +4653,8 @@ trackedFiles: pristine_git_object: 8c4fbd0bdba6538ffc850a3dee353f64158b6aad models/components/getcollectionresponse.go: id: bfca6a29edf9 - last_write_checksum: sha1:87d17726c55e136ea88f8be5beab1908ad4ab39f - pristine_git_object: 6753571a37cb0d4ded48bf534534a0c56a59d53a + last_write_checksum: sha1:b8db5476256b776837555f2e20f4fc01094d30cb + pristine_git_object: c82aea23ea99713d45d860ce1e40c5e09d16f5ec models/components/getdatasourceconfigrequest.go: id: 2a1545472281 last_write_checksum: sha1:bf46e30db1bf590a50e81a4aa671e9fd6bf62ab6 @@ -4486,32 +4813,32 @@ trackedFiles: pristine_git_object: 5ccfc1b963023991de982673c6e1920aba888a21 models/components/insightsassistantrequest.go: id: ea8365169c07 - last_write_checksum: sha1:673c0ae416ab9fc3437553aa2f2b9e97945ac5ef - pristine_git_object: a6aecda9d1d19fd7d500185d5dc444eee5b01151 + last_write_checksum: sha1:0e81ed701e35021f4deac48f94f8b8673bd3b448 + pristine_git_object: 16d8ca460001fce1f16b86af0b88c7dd694d2457 models/components/insightschatsummary.go: id: dce036323abd - last_write_checksum: sha1:fee1f7bfe05cbeab5e59eaf74fd697548e6b3c46 - pristine_git_object: 6d60e08a86f14eeca44cc492097526010bdc4877 + last_write_checksum: sha1:476b11160609bdfffd8c4297850437498291d4c9 + pristine_git_object: b1d91e6e9e84e0189ed978f6be4db0e112a4d5e6 models/components/insightsoverviewrequest.go: id: aa5952e6d0c9 - last_write_checksum: sha1:f78eb7054e4b38f03d6cb53a2a979c652d42c1c6 - pristine_git_object: b2ff4ceeed20d491ef94779a586f62759397c3fa + last_write_checksum: sha1:bddf9c4c6dccb73b98f709bc114403858019b30c + pristine_git_object: 5186f212c30ffca043657c61b69feedea998fa32 models/components/insightsoverviewresponse.go: id: ac8d586dce6f - last_write_checksum: sha1:d6d9db3d992467c8be552dec716e1ccd974cea7e - pristine_git_object: c968c42207bf93291083fb339e3d1d7943911ff5 + last_write_checksum: sha1:ffd5c4cd842c0d54c0b5ed1c5dda00a85845db7b + pristine_git_object: 39b3895f948fc834fd27a53d219f0fdb5cc86d7e models/components/insightsrequest.go: id: 864d5ff0b637 - last_write_checksum: sha1:10c2b3d25ce68b783f5981548a0e21aa0a43a908 - pristine_git_object: 0584ef8a8bae1e43d8dfb151cab6ee4e303ecedb + last_write_checksum: sha1:b4a7963549e0d534c6a1ef5064705a71bbcd235d + pristine_git_object: d3aa52428f5a0a0329df2bb6b0f0b4d05eb73a57 models/components/insightsresponse.go: id: 83ce7672a5ac - last_write_checksum: sha1:ce5a3ab2a80425410db6050a26270c7145a8cd44 - pristine_git_object: fc18fb373e3b1e7cdc452f7dd48b590925c6c5df + last_write_checksum: sha1:9f1fa54bc5aa6b39ed57a5208e4d1178df716ce1 + pristine_git_object: fd355c04eacbbe03827cb692b681cc9f648c1353 models/components/insightssearchsummary.go: id: d4e371c450c0 - last_write_checksum: sha1:109834f1eeb071a7d562645215ab91b4e6926c4d - pristine_git_object: c12be2e0f5b1dcc15e5e09494ec62a11cf82b8b2 + last_write_checksum: sha1:681062a5844995db79f005f4a9673069568b5f4d + pristine_git_object: 769dfedf2db0fd7d77bafeb6a9574102c5945fe6 models/components/invalidoperatorvalueerror.go: id: ff1288da88bc last_write_checksum: sha1:03b4e580debaae34d8b36f03e954ee6858d984ee @@ -4524,6 +4851,10 @@ trackedFiles: id: 08ebe5d98c9d last_write_checksum: sha1:103c28e30b6530771ebb757252f77acaf62ff579 pristine_git_object: 8df74790f487adb0fdd21519c84dcfa755eb3038 + models/components/lifecycleevent.go: + id: 593d4555d563 + last_write_checksum: sha1:c24c1443ac7e1f6f8637f2dcd2abd153b514b98c + pristine_git_object: c330333685867d0ec1f074a11c64a8b394514d5d models/components/listanswersrequest.go: id: 1d06950beb4c last_write_checksum: sha1:d35b3ad1fb0b06df25768421196077d898cfd5b9 @@ -4580,6 +4911,38 @@ trackedFiles: id: 8ed77f93526d last_write_checksum: sha1:db66836ca5b218c47fe4e3a1e6e429aa30f07cb6 pristine_git_object: 72801fc939c3480816995758d9e1a15a2027e2f7 + models/components/mcpbreakdowninsightsrequest.go: + id: 373979462ad7 + last_write_checksum: sha1:5dbc0f47e05d31017c2cfe5c1784e29551d07629 + pristine_git_object: 5de573410c4f6e7732f32951acd519744c01b612 + models/components/mcpbreakdowninsightsresponse.go: + id: 2b0551a3abdf + last_write_checksum: sha1:6a64c47dc9fb81bd8baab553ad00f40b656031ac + pristine_git_object: 527ef1ff96327ae4ccaee8f370836b5a2abce468 + models/components/mcphostapplicationbreakdown.go: + id: 65dc909eb1b0 + last_write_checksum: sha1:018420d0ab3bf8b29ef403b6ff4690c9ae8bdacb + pristine_git_object: 2d9a1e6f4380765facfe08a21332e652c3927e11 + models/components/mcpinsightsrequest.go: + id: b48b8339bc1d + last_write_checksum: sha1:100e79bc1c6022113166c4a0c2cc9ade1d94b229 + pristine_git_object: 3404e14335b4856be8e6bcfdce096acdbc8b3e7c + models/components/mcpinsightsresponse.go: + id: ecc60f7e776f + last_write_checksum: sha1:c70b216ed3b4b1e77c65d55fa6a9a860e6a58ce4 + pristine_git_object: be452ae0be0a54b9ba540b2ad6d3e2006e350c44 + models/components/mcpserverbreakdown.go: + id: 93b535ac2d7d + last_write_checksum: sha1:62d5dd93a08bbe54c7074456776013df54f14ce7 + pristine_git_object: ed028d77c64fbe9a09e81a20643379477174a589 + models/components/mcptoolbreakdown.go: + id: f8a59e846584 + last_write_checksum: sha1:8b0ec6b2e034cba17df9f392d56799ba0f245828 + pristine_git_object: 967092f5eff4537cc3b6861daf71bb95f6adf400 + models/components/mcpuserbreakdown.go: + id: bff9b9613ee4 + last_write_checksum: sha1:eaef41f16379514711c85babf11281e43b1a1ec5 + pristine_git_object: 46007d3009446477b99f71045967384fbe6fd1ed models/components/meeting.go: id: 2cd4590b4f60 last_write_checksum: sha1:1030dafde1a5a19baa206aa6ec8d371462fc4ea3 @@ -4622,8 +4985,8 @@ trackedFiles: pristine_git_object: 014985dd229478cc3132c33ab8148bf44500c40e models/components/peragentinsight.go: id: 40ab8b669b71 - last_write_checksum: sha1:67bc61f3c95c13e7d92f74f0c97a5535b348eb01 - pristine_git_object: 031bec1b92a9042ef512b0e6b70915f9a3bf4b7f + last_write_checksum: sha1:b9d7cec984349d5ab90c89a8d2f7fa920962b297 + pristine_git_object: 06c3e69a0851cea8cf7eca500fd1e297f7dd7845 models/components/period.go: id: 1ce7c2dcec9d last_write_checksum: sha1:c22b1018b929d5e550e52367f1935d86620fe2d7 @@ -4666,8 +5029,8 @@ trackedFiles: pristine_git_object: 1ae7d3b301a7a3c03a606acea6f0b1f3d1e1b7f0 models/components/peruserinsight.go: id: 63ceff3f6784 - last_write_checksum: sha1:be7428a8c0421ee7703d874688463c14273f12d4 - pristine_git_object: 81c45846aafd5e72da330a43f3e58b4a89ae585d + last_write_checksum: sha1:66f577eec867e9b5eb0d500f71d7776dcc56c4ff + pristine_git_object: e2da5f6e7dca99286af710520c040ffd8fb3fef3 models/components/pindocument.go: id: 880630bac348 last_write_checksum: sha1:b06f5ad51008ffc0f8a557e2ca5486ae18bd3e78 @@ -4702,8 +5065,8 @@ trackedFiles: pristine_git_object: 2dc3313d92086b0aa80f0b219e3f74f91984009e models/components/propertydefinition.go: id: 5c7778ed2c17 - last_write_checksum: sha1:5394a6150835805a625a49f7e5e369a0f3d4550c - pristine_git_object: b53e4ed6d86d3b5496f51e6103c1e4e9fb47b0ad + last_write_checksum: sha1:935ae29c7ddd71438ca4aafd3cf23d9a853bba02 + pristine_git_object: d5f761fa2f4564acdf839d4b893d865f3076086f models/components/propertygroup.go: id: 94eb6ee6a7fb last_write_checksum: sha1:6b71c5217ae1925fd36df8985c1eb7fdc291c70d @@ -4784,6 +5147,10 @@ trackedFiles: id: 7637604ce37f last_write_checksum: sha1:d43000dcec0f79d05fea75ed2c6e5b0f05f1b584 pristine_git_object: a50d5ce637df9d899cd940a6d022526760d15f45 + models/components/rotatedatasourcecredentialsrequest.go: + id: 75f100ecbc7a + last_write_checksum: sha1:4243f7593b77c9c5c0b0d59a395c07a5ef2d3187 + pristine_git_object: 07215b981e2e6eb20409f10e7ba3c9d5cb6b9d3c models/components/rotatetokenresponse.go: id: 49f93faf7441 last_write_checksum: sha1:84eca6103b64e6b0b72aea44fce3eeb1143a795b @@ -4932,6 +5299,10 @@ trackedFiles: id: f3f64195d6ce last_write_checksum: sha1:b63ba217d2d4d7c8d9b2192e58871179c68760cf pristine_git_object: 87a8b0d9e754599eb6b7a7ab9fc4cc1310fe7bdd + models/components/successresponse.go: + id: 43b43fb7692b + last_write_checksum: sha1:32becfcc73dde544f3e2de583bf250ca5acfeeea + pristine_git_object: 10e882eaa91711b27922a56f969eff0eeedd9ceb models/components/summarizerequest.go: id: 0dd13fe27e73 last_write_checksum: sha1:bd27edd845cb6950153b3db05ca505699ee4887e @@ -5022,8 +5393,8 @@ trackedFiles: pristine_git_object: 0b72dbe21d5033f1d76ddd60472f10449375c421 models/components/ugctype.go: id: 98a0543d6066 - last_write_checksum: sha1:b5dee4bd7f97646f45a98aeec4870a40d13e5eb8 - pristine_git_object: 10dc1c6f201849d98b32fb81ac7b852554a0f5de + last_write_checksum: sha1:71020b477928e3a71b5c47d41299745ffeee7edc + pristine_git_object: 4332969322c089d6bf6c09883350bebb52797e3b models/components/unauthorizeddatasourceinstance.go: id: 172020c59199 last_write_checksum: sha1:208f3d9f66716905af4149eb8fa81efc975b5212 @@ -5154,8 +5525,8 @@ trackedFiles: pristine_git_object: 0cbacdae56f7ffdbcc52ee097144428b121b8fbc models/components/workflow.go: id: a4551549e107 - last_write_checksum: sha1:d126aff92ee582fa1413b74dc5fa927210b75733 - pristine_git_object: 7be34f8478e1e80fbb2cd09d3afa7ac972b0ae8b + last_write_checksum: sha1:a7acb23dcbc957f06140d49fa595f905cbf05366 + pristine_git_object: 16c922a02f071c828e4278896089d5725c165742 models/components/workflowfeedbackinfo.go: id: b79e4c51cab0 last_write_checksum: sha1:e07ac6f363c804aac890c59603988d5c60ab185b @@ -5188,6 +5559,10 @@ trackedFiles: id: 67fb3358371c last_write_checksum: sha1:0acdb6d990a4ca11a902813d945f23bbf5fc87dd pristine_git_object: 06d44b2f2263a21e8f3970a03f5f215c50ec3f22 + models/operations/authorizeactionpack.go: + id: b891e14cca81 + last_write_checksum: sha1:1b6e92a21b3fbca3bf7fd9ad7194ce169369bdbd + pristine_git_object: 677e741aacc24487ef29fd1ca878ee8cf805ecb8 models/operations/autocomplete.go: id: 830b65e22675 last_write_checksum: sha1:48cdb12cfbbb19a58e9a62b0b2b00a5e6b5ffab4 @@ -5276,6 +5651,14 @@ trackedFiles: id: 164267a67086 last_write_checksum: sha1:5dc25247f4e4cdfaa68ed4e7f0d047f4f4b92552 pristine_git_object: e3d8837a94388d4877121f2329c7b807bf29dbff + models/operations/deleterestapiindexcustommetadataschemagroupname.go: + id: a4c6ff3eafe6 + last_write_checksum: sha1:50f7539a05f4851f76aa2ccbbdf3a46952e32d84 + pristine_git_object: 6159c9892f1d0104da6db75585984af0db41105a + models/operations/deleterestapiindexdocumentdocidcustommetadatagroupname.go: + id: 5fb0c755167e + last_write_checksum: sha1:1f2ca79fab3a7fe5a26da0bb88cbc74dfa3ff2e3 + pristine_git_object: 8075d8b9ee267ac406389aa796dca3832b412313 models/operations/deleteshortcut.go: id: d97f4bd71b73 last_write_checksum: sha1:284927f2499985b5a186a9a0772da2c4aabc72a6 @@ -5292,6 +5675,10 @@ trackedFiles: id: 18a418a35339 last_write_checksum: sha1:5a895e31d1b3d92cdf406b8ade623ca3ec6916ac pristine_git_object: 5b9fe75c6420f32ba9d148aba5eb5bb3baf38b79 + models/operations/editagent.go: + id: de89e2ff765a + last_write_checksum: sha1:68661bdcfa786b3940af946d1d60c4ecc4e5c505 + pristine_git_object: 7305724f427fe033230ef28900929c6c7cfef725 models/operations/editanswer.go: id: ce103751ef41 last_write_checksum: sha1:96feaadb309f59110d2dd82bc8535c58ad23893a @@ -5316,6 +5703,10 @@ trackedFiles: id: 5cbdba7592a3 last_write_checksum: sha1:f3a057da716da7bca03420808f1204ce37167923 pristine_git_object: 8e7ae60df1e0d88135e97981742d625cf439ef6d + models/operations/getactionpackauthstatus.go: + id: 69b192f76e7d + last_write_checksum: sha1:5de6e81750f217ddf2e43f25b598efb6aba31a52 + pristine_git_object: 5597369b85732e77602d89d6c1a0fb800d70429e models/operations/getagent.go: id: 2810c17a0437 last_write_checksum: sha1:0eb63e43fcd34b72f1675b708af117bfd6e5e2cd @@ -5336,6 +5727,10 @@ trackedFiles: id: 2fb4132e8406 last_write_checksum: sha1:842dccac6597b4c53798b39b35ccf3d933330ce4 pristine_git_object: 4e81b417f04db97c64c2f06b3449bd47d8e35cda + models/operations/getchatfile.go: + id: 9ca615df77fb + last_write_checksum: sha1:8bd6a436bc956ec1308b39114eeb6a068e182014 + pristine_git_object: 041910cb48909b3d82b2c3bdc9d2a47d39593e4f models/operations/getchatfiles.go: id: c7b771b63428 last_write_checksum: sha1:97d2d43a4acd3587b040401efcf42c2055acd2fa @@ -5344,6 +5739,10 @@ trackedFiles: id: 12de1188eee1 last_write_checksum: sha1:2c623d2706f2980a60bef758297b41f77d7836c2 pristine_git_object: aea7e1c9b7ef5842c82212bcb2a291d3e5ca2dfc + models/operations/getdatasourcecredentialstatus.go: + id: c93cbb0241a9 + last_write_checksum: sha1:811c4715ae1a30973687814b5ea53f592f1f768b + pristine_git_object: 6d339765ac45024e3be343f62ed469338abbccb9 models/operations/getdatasourceinstanceconfiguration.go: id: 96f81544089b last_write_checksum: sha1:fcedca7c8a8855a7ae5342b5459310655dc04602 @@ -5364,6 +5763,10 @@ trackedFiles: id: 895f37b39fab last_write_checksum: sha1:f1e11c0ab5ac9d562e4a3c18153db8ec1355e017 pristine_git_object: 8bc5a5c4c7c5dd170185d3aab6f2200856af1af0 + models/operations/getpersonphoto.go: + id: 572b620bcc0b + last_write_checksum: sha1:ddff95de320582eb0e9331d1f8841d7ffe908e09 + pristine_git_object: 094b07360cf6e7f0d40a610b7577078c5a67038a models/operations/getpin.go: id: 867578b1f5a2 last_write_checksum: sha1:9dbd4dde8b6a0ba6e60324e529b91f9a3f7aacab @@ -5376,6 +5779,10 @@ trackedFiles: id: 7562ccb5c2f7 last_write_checksum: sha1:397f573d1633c650f3ac7bb7b6503d31dcdc4df3 pristine_git_object: 2a11e2e594282759c687c31a634737e272e7def9 + models/operations/getrestapiindexcustommetadataschemagroupname.go: + id: ea436b93d88a + last_write_checksum: sha1:e8cfb6ba9cddbe7916d1e1cd050986ecfa69d531 + pristine_git_object: 15b0b64673cdcf0a80fb52dcc209f683a518d1f4 models/operations/getrestapiv1toolslist.go: id: a9f6298d4c0e last_write_checksum: sha1:d926cb2076546bb39f501be810241dfd2863ed0b @@ -5430,8 +5837,8 @@ trackedFiles: pristine_git_object: da14f80e7fdd1cc8a333bdf62e31dcb1fef18fdb models/operations/options.go: id: d20dd4db9865 - last_write_checksum: sha1:7fd30fbf83a01aa0de747c94bf68c38d4ed39202 - pristine_git_object: 9b1aeb8e24853953bda6b9cc1bc5bdd9830e8b0a + last_write_checksum: sha1:824fb99da978541e870300c3968f8c3fe6073624 + pristine_git_object: 02b39f8979cdc45634d619c9b384ea79cd356925 models/operations/people.go: id: 70d3eee1138c last_write_checksum: sha1:b5228ca6d273b0b7303f0f89b043c17d38d0f9ec @@ -5484,6 +5891,10 @@ trackedFiles: id: bd4dbe73fd60 last_write_checksum: sha1:00cd05f0649b5bf662d7d62f6a651cf72fae1a74 pristine_git_object: eb29b1a9cbb359057543c4d5d54b98e89acc31d4 + models/operations/postapiindexv1debugdatasourcedocumentevents.go: + id: d3b6cf2d62cd + last_write_checksum: sha1:4f9add4e4bbab5e3a17d8e6ca15dc01452256c58 + pristine_git_object: ed8e474e5d46dae638f51c816a1c5da4b686c10d models/operations/postapiindexv1debugdatasourcedocuments.go: id: 62bca661c6a5 last_write_checksum: sha1:51ded2bdb540df80ea419c0c69c6cb8b7f77ad42 @@ -5592,10 +6003,22 @@ trackedFiles: id: 825492a9ffcc last_write_checksum: sha1:6b7fc2978ba5f6ae8eb7cefcaff9740ecae74de8 pristine_git_object: 62c51bc009ba24dc88f481db0315b5374a04f889 + models/operations/putrestapiindexcustommetadataschemagroupname.go: + id: cb034f9ca586 + last_write_checksum: sha1:1801a462d0b5606c0829b4b3e5dcafe9cc2e1070 + pristine_git_object: 4d89daecd5f0d225b9c3eb698eac7fe07698ed6b + models/operations/putrestapiindexdocumentdocidcustommetadatagroupname.go: + id: f9fb6a2d6ea1 + last_write_checksum: sha1:dd1fc2a3984b4913a82095acc17f2613bd16d233 + pristine_git_object: bfbb576398bc1724aba045b6b9d21012e83d3a57 models/operations/recommendations.go: id: a982747038f6 last_write_checksum: sha1:f3a720f1fab76e2a4ee782a32814f373d86cb39a pristine_git_object: 748a63ac6968481acdddd241a249b576da0d3333 + models/operations/rotatedatasourcecredentials.go: + id: ace1e289230b + last_write_checksum: sha1:46a8839efc22401f90a9edc6d9c919851e9e0faf + pristine_git_object: 64f56b7bffe23935fc487b60773de7c4a7c6036c models/operations/search.go: id: 1449c75da871 last_write_checksum: sha1:48dabe386aa708a7eb19e2801d394ec2bf5ba3f9 @@ -5678,8 +6101,8 @@ trackedFiles: pristine_git_object: 998c77b0bf3f1cc7c06d0a0e89980c4b216b5dce tests/activities_test.go: id: 93b3ec0f226c - last_write_checksum: sha1:b58c70cd55c50eacf3de0e9fde175bf8773cd873 - pristine_git_object: 19dc0bc851a6ac0dfac6c631a2a69af001cbba20 + last_write_checksum: sha1:d8e9f9a0d877a8e7d4277c174581d44633e1b8ec + pristine_git_object: e01e64d74275c548227d1230509ec9bc80bcc4ee tests/agents_test.go: id: 8512a40a0375 last_write_checksum: sha1:bec15931183a94711d06640b18fa8c0b4200766e @@ -5700,6 +6123,10 @@ trackedFiles: id: 19fe2e65480a last_write_checksum: sha1:96a464d04a2d1a9b37300942e7ddd327b86b5c74 pristine_git_object: 294a7750becac3a4f3871f1d5860701efb00fe90 + tests/chat_test.go: + id: 7bb6349174a9 + last_write_checksum: sha1:ce3ce7d9b6a962642dbc5651f9a3580d5305fe0c + pristine_git_object: 45f20a3ac811454483de80d3402b1ba6f9d6ed6f tests/clientactivity_test.go: id: a9737434a9ce last_write_checksum: sha1:02ee2359e784247291c5bec183d5c724f335c0d2 @@ -5732,18 +6159,22 @@ trackedFiles: id: 8a2131ddfdad last_write_checksum: sha1:b60a8ca7895641496ee6a4e204c6dddadea74831 pristine_git_object: 575da0cd8ef17be5896fcc5500806aa57b097274 + tests/custommetadata_test.go: + id: 693a332b30b8 + last_write_checksum: sha1:4254d86acaa008e55cbc2d2fe5d3f54238d0f39a + pristine_git_object: 181ce9ef7ad9c876e09765b91a8d6f04e028466b tests/datasources_test.go: id: e4a127cc61bb - last_write_checksum: sha1:d9dd4a26cb2af300e70d4cb2b0e83d80a8627169 - pristine_git_object: 041194e5a308d2821718dd22e6541f46eb157426 + last_write_checksum: sha1:a3200daf52486b756715dce0e03ea3cd4966eca1 + pristine_git_object: b7b8de91a804fc30db00284503b6a2c047d65366 tests/displayablelists_test.go: id: 03e7406bb338 last_write_checksum: sha1:67325ec907f0d9526d2b3731b02c45a54dccebb5 pristine_git_object: 9468633f03b8b9b65c40d0036c760ac2e7ae295b tests/entities_test.go: id: cb9c6eec23af - last_write_checksum: sha1:c3899e5142cdb7fa2b2574ae2e330eba7f35b776 - pristine_git_object: f309376ea548ec01b9c427a33aee3669295f7d24 + last_write_checksum: sha1:86c252d09af85a22b59edcd3340a843b43d18d13 + pristine_git_object: 50fb6ee234b6f8648578078009d930b137ffa3e7 tests/files.go: id: 359d10a9a396 last_write_checksum: sha1:3a57aaa312f7138b23a5506dd3214bffe80bc1cb @@ -5773,1383 +6204,2961 @@ trackedFiles: last_write_checksum: sha1:48e3131585272d616898306eee7e28c886bb6fe2 pristine_git_object: 0e847b6f42cc2ac96b67b69fa6ade86ae35542d5 tests/mockserver/.gitignore: + id: 7705eb663274 last_write_checksum: sha1:228e1b05712a973948fd771323a2140a3b355ff4 + pristine_git_object: 9544318b09f3a2a6b6ac2a9d7830a08d850fac0e tests/mockserver/Dockerfile: + id: 509a8fa60119 last_write_checksum: sha1:72b74bf83cc79b4436ffe1a33211198ea447f06a + pristine_git_object: efdea18c5a25f2e1aef374286c28bc8df9f31c5d tests/mockserver/Makefile: + id: 87b9a2076cc9 last_write_checksum: sha1:f2619d7634d211c3c01dd68668635b0ebdbfc1ea + pristine_git_object: 2ae6a36c4542ec0511c8959bdaed46fa5c8c8603 tests/mockserver/README.md: + id: 0f381af25776 last_write_checksum: sha1:aa2bb9124570a1c12a3c81d728100c305a59220c + pristine_git_object: c8424fd3262b8c686a698dd14b9c4accd4024f43 tests/mockserver/go.mod: - last_write_checksum: sha1:c2b6f5a81e03003990983f5befd1da3f1a0396b6 + id: 3c047699246d + last_write_checksum: sha1:e60cd88b747c397c0032d108a4e099e8b365721e + pristine_git_object: 8b92440779e9983727f1affaa2135e2da12aba28 tests/mockserver/go.sum: + id: ae54f5148e56 last_write_checksum: sha1:cdeb52f5f4c63d07ba612730867a95b0ddb14b2d + pristine_git_object: 37327eda789a77df465ab478074ffcb1fc3729cf tests/mockserver/internal/handler/assert/contenttype.go: + id: bacbdd6bf4df last_write_checksum: sha1:2d059a68e53e70b269ddf897f8c6017f94434e18 + pristine_git_object: 42afbd06ec813272247c6ed3850eb09c86c4d0ae tests/mockserver/internal/handler/assert/header.go: + id: 21ca515afb79 last_write_checksum: sha1:a0866dfd740d218b5b94741ac92db4cdf5a2acd9 + pristine_git_object: 50f910d96ab053137ef54de0499d859863e7d171 tests/mockserver/internal/handler/assert/parameter.go: + id: efc035843170 last_write_checksum: sha1:0df39c0981a929c99ae767201b628d8c9e31f288 + pristine_git_object: f8a5e45a1de19f1d21d4cda5183c0113b7519e2a tests/mockserver/internal/handler/assert/pointer.go: + id: 068d29151cd4 last_write_checksum: sha1:48714196fb47649be28e8df031761038a9e10ee6 + pristine_git_object: fa03e4c854a3c4669e610805250cff96cb8cc583 tests/mockserver/internal/handler/assert/security.go: + id: 63140ec08b9c last_write_checksum: sha1:3cee6e3d2babea02486fd2df08eb00840f5ddea9 + pristine_git_object: 7d0a714a691ec21201de23089cfea85bf89ca017 tests/mockserver/internal/handler/doc.go: + id: 0b5fbf2792c6 last_write_checksum: sha1:a49b83f9fc775d3cc6f558b0f52b2fc9cf04f863 + pristine_git_object: a4e60c89d0f5fda085e691f8a5670b1ecb4d1dd1 tests/mockserver/internal/handler/generated_handler.go: + id: a30122c36456 last_write_checksum: sha1:32101ddff940c59f43a805af303cf645a2bcca0d + pristine_git_object: 929558ef2e1165f7e09da6d0a64f016c90971655 tests/mockserver/internal/handler/generated_handlers.go: - last_write_checksum: sha1:19821864a3ed96150e35949d5d12e9220cfb6ff6 + id: 61ac4f7cce9e + last_write_checksum: sha1:1efa96a429f9879c5cdb7bd064661b396b568d31 + pristine_git_object: 6400b090e0a8e321f6348ef79d2b14fb83571f7b + tests/mockserver/internal/handler/pathdeleterestapiindexcustommetadataschemagroupname.go: + id: 979e4583765b + last_write_checksum: sha1:b1d4edb259d907c7a88b634bf16f0cf152321693 + pristine_git_object: 1aa2e9f6cdcad19be818e7f01506b118689691c7 + tests/mockserver/internal/handler/pathdeleterestapiindexdocumentdocidcustommetadatagroupname.go: + id: 502db61f4b70 + last_write_checksum: sha1:4ac03fda8cf26645eda1638b75f8c187ae7cf500 + pristine_git_object: ff7097f855b75a46f88c437dfba247c1a1c17e52 + tests/mockserver/internal/handler/pathgetrestapiindexcustommetadataschemagroupname.go: + id: a14a30d0e377 + last_write_checksum: sha1:83a992c70c3b7d010928d89a52f70db1042dd186 + pristine_git_object: 2c4b02fd1ef40990278fb1a2cd2173744cc508bc + tests/mockserver/internal/handler/pathgetrestapiv1actionsactionpackactionpackidauth.go: + id: 8af939b81cf6 + last_write_checksum: sha1:29914fc3785eaf9980aad75324ebece95ad62e10 + pristine_git_object: 97d3b63e28c6523d51222993ac6fa150cbd77000 tests/mockserver/internal/handler/pathgetrestapiv1agentsagentid.go: + id: d72b20162abe last_write_checksum: sha1:5210b43a5c1c7157ff57f7140449d82dc622931f + pristine_git_object: 416153625af26f14e98df5957fabb0f2c73eb900 tests/mockserver/internal/handler/pathgetrestapiv1agentsagentidschemas.go: + id: 82bfcf01432b last_write_checksum: sha1:a70fc628d284a0c11701c7d69a5d22dfdf118706 + pristine_git_object: c10d567f7e22ee3757b5b705e10f768ef5cb3bbd + tests/mockserver/internal/handler/pathgetrestapiv1chatfilesfileid.go: + id: a8a397bcd6b6 + last_write_checksum: sha1:887b475c2bb4766471ef5c168ed08b9333d8cad9 + pristine_git_object: 17e141f6577ca042122915970e39e001fa3b81e9 tests/mockserver/internal/handler/pathgetrestapiv1configuredatasourcesdatasourceidinstancesinstanceid.go: + id: 89346cda44eb last_write_checksum: sha1:be1ef6d303273236aa6b9797453a04bb778cdd62 + pristine_git_object: 9344b896fbe47d98a67ce164d994224352a161df + tests/mockserver/internal/handler/pathgetrestapiv1datasourcedatasourceinstanceidcredentialstatus.go: + id: 9c56c022fa2e + last_write_checksum: sha1:6738c2aab3e1125b511f4eed18ac16c51be2c001 + pristine_git_object: 92d8c1fa857c6776020144e37a705d298ff9859e tests/mockserver/internal/handler/pathgetrestapiv1governancedatafindingsexports.go: + id: b566408e9207 last_write_checksum: sha1:06b13f04c06621c32cd5d4664612a3804ffc49c2 + pristine_git_object: 777d476b2ef6d21b27ebfd13d2103319f5bcb831 tests/mockserver/internal/handler/pathgetrestapiv1governancedatapolicies.go: + id: a870b49b06e8 last_write_checksum: sha1:6089d4b8e771bd03d202691f0be1c3a7ed9fb6e8 + pristine_git_object: bbf888e6be13ab7f94b85fb9c1189ca2fc2854ee tests/mockserver/internal/handler/pathgetrestapiv1governancedatapoliciesid.go: + id: 783f8a29cf35 last_write_checksum: sha1:08b8057f91f2a800304987937336f033580406df + pristine_git_object: 102ff17bf163cfc31891f3d944eaefea89f84009 + tests/mockserver/internal/handler/pathgetrestapiv1peoplepersonidphoto.go: + id: ab4b35f72782 + last_write_checksum: sha1:086d9b020ab7cd0e78ed6d28933e95c09b82e498 + pristine_git_object: 253b4d87e6614dac4673d9387be09f0bd3258062 tests/mockserver/internal/handler/pathgetrestapiv1toolslist.go: + id: 1598fa297cf6 last_write_checksum: sha1:8b0d26cd221009e78396ed0c573e78c0ac719e36 + pristine_git_object: 163466cb44aa1a16439b3bd65ab52f00aeeff427 tests/mockserver/internal/handler/pathpatchrestapiv1configuredatasourcesdatasourceidinstancesinstanceid.go: + id: 24dd79d2c474 last_write_checksum: sha1:14d3e93a3f37b61145188a9e6544398fcfc200e4 + pristine_git_object: 40105d8daeb4ec2dd77c36244a4db0e63b847ee1 tests/mockserver/internal/handler/pathpostapiindexv1adddatasource.go: + id: 549adf61c832 last_write_checksum: sha1:f1c92a8b8e4db16ee9334d7e28f8abec8c52d50e + pristine_git_object: 34e56c051a1de4db54b39cd3ff8f53fa892721b9 tests/mockserver/internal/handler/pathpostapiindexv1betausers.go: + id: d357c89e97da last_write_checksum: sha1:a651d2172a1cc47aea2feb8f9b4af37fa0d6fb67 + pristine_git_object: 3df89e08d36a4a79a3f5af39e494f5167012402f tests/mockserver/internal/handler/pathpostapiindexv1bulkindexdocuments.go: + id: 29888ed04ce3 last_write_checksum: sha1:68ea2acc41ce39cfd8b11aed122ca17d75575736 + pristine_git_object: 8801ff3b4ee68d9d8ecffcc8ea0c760f80c743c4 tests/mockserver/internal/handler/pathpostapiindexv1bulkindexgroups.go: + id: 2928641ed522 last_write_checksum: sha1:ecaf8d8097a13ad901c096ec276d3644085e01f4 + pristine_git_object: 8d3011e37966e045fae5bff361fb3e1b91868b20 tests/mockserver/internal/handler/pathpostapiindexv1bulkindexmemberships.go: + id: 407a33d1a94d last_write_checksum: sha1:9f735c241cf4ba6a0bbad18729573318ac18d414 + pristine_git_object: 5ba85f7408347e41b1abf3f0016b60260484f17d tests/mockserver/internal/handler/pathpostapiindexv1bulkindexusers.go: + id: 7ccba88b3749 last_write_checksum: sha1:c546b06949f735701f4c6c106c39edb947a63d4b + pristine_git_object: 7839fcf32fa3f8fdec15a1316b71ad0043e762aa tests/mockserver/internal/handler/pathpostapiindexv1checkdocumentaccess.go: + id: f5c15e5c9550 last_write_checksum: sha1:083cc0fd184fe85e11732efeaf655a94766e485e + pristine_git_object: 694a298e6520dec7101952083a840cd6433ae820 tests/mockserver/internal/handler/pathpostapiindexv1deletedocument.go: + id: fae713eb6713 last_write_checksum: sha1:f89b4868c7de24296485b340a550c1bccfe2d2b8 + pristine_git_object: 34beba465288c142d7363ab0e91372b410f6a9bc tests/mockserver/internal/handler/pathpostapiindexv1deletegroup.go: + id: bee02d25ba83 last_write_checksum: sha1:9d5ad5647139a434081c0288ff0c577d961a5016 + pristine_git_object: b4ae2858a87d53266a4eec24db61403c0b5678f5 tests/mockserver/internal/handler/pathpostapiindexv1deletemembership.go: + id: 906e9d03cf68 last_write_checksum: sha1:200533ffaaba0dd8ca43b72a78b98473d4e52b47 + pristine_git_object: 99968cf2a4f0428a16886cd8ae25de76c0f9f470 tests/mockserver/internal/handler/pathpostapiindexv1deleteuser.go: + id: cc66dc7cd1c0 last_write_checksum: sha1:4583198cf9e535af6d0c3decd7e87675b34e48a0 + pristine_git_object: c837223790f5b1a796925e9d0c722b105e951327 tests/mockserver/internal/handler/pathpostapiindexv1getdatasourceconfig.go: + id: 74a829f18d1e last_write_checksum: sha1:d7ec1d3a2b07ee43932e477ab1df5670c941a06e + pristine_git_object: c7b4ab25e8ac6a0e502986dedd345fcd8798872f tests/mockserver/internal/handler/pathpostapiindexv1getdocumentcount.go: + id: 1c90ed77e53b last_write_checksum: sha1:f0a6f49cd1d5a9d3a6f3f9e1f7bc2629c62f4d24 + pristine_git_object: dbc8be6a27700c61d94f81db39f3c4c585a48313 tests/mockserver/internal/handler/pathpostapiindexv1getdocumentstatus.go: + id: f04ef794dc36 last_write_checksum: sha1:49b89d80eb4cc689c91f4b36d08788a314d34003 + pristine_git_object: d7afbcdcb696d3645d32eabd90bbf755bf0f857d tests/mockserver/internal/handler/pathpostapiindexv1getusercount.go: + id: 6a5569fa5a39 last_write_checksum: sha1:2dda97b8d3e7eb8fb02166b9a4183af3fe721431 + pristine_git_object: 4fcb5e77d62799c2018aaa8a4307bfcdb60a36ce tests/mockserver/internal/handler/pathpostapiindexv1indexdocument.go: + id: 537d442278e6 last_write_checksum: sha1:d2ab55b61378b69cdd3ae5a619034378ea038b89 + pristine_git_object: e6d4878ce926851b8ff65307416b705e238c3056 tests/mockserver/internal/handler/pathpostapiindexv1indexdocuments.go: + id: 88802c915022 last_write_checksum: sha1:45f34e554558420d01149ba1f56d95c3b05744e1 + pristine_git_object: d51b3b79352601fd095ae96029381ac9302b309d tests/mockserver/internal/handler/pathpostapiindexv1indexgroup.go: + id: 8e574ae53170 last_write_checksum: sha1:5f7421344266fc96b5f30ef499d1fedcc0c1f77b + pristine_git_object: f95be6a83f65c4da9ae68eaa452de7a62d3d3798 tests/mockserver/internal/handler/pathpostapiindexv1indexmembership.go: + id: 1020ff976b95 last_write_checksum: sha1:42fa2cd16d6c616d8fc02e3a176a21fde19a1276 + pristine_git_object: 237c6ab1b29b3b1cd07be944f3dc0225bd66f060 tests/mockserver/internal/handler/pathpostapiindexv1indexuser.go: + id: 929289f76625 last_write_checksum: sha1:9818d8db1eaf622c005e454c0052ea1ca9078499 + pristine_git_object: 995587c332f9a5673d64c5acc91e8d252a4faddb tests/mockserver/internal/handler/pathpostapiindexv1processalldocuments.go: + id: 694303e0877b last_write_checksum: sha1:2731a2099c9b5ad896decddca98532ca04bc373c + pristine_git_object: 11e345683da87e333758efb62b980838b6b1ba4f tests/mockserver/internal/handler/pathpostapiindexv1processallemployeesandteams.go: + id: 575b91627278 last_write_checksum: sha1:2cb1a359ebac44a0638a7fb82eb4a1872a961416 + pristine_git_object: 8bc7960b8f39936032eaddf652121ebe599bd137 tests/mockserver/internal/handler/pathpostapiindexv1processallmemberships.go: + id: 3ffe78dd3270 last_write_checksum: sha1:342df3a7c0a13211e8341964ec70e8d5f8d02d2c + pristine_git_object: dfe7762d3eb3a25cf25207eef13c7125629cb8da tests/mockserver/internal/handler/pathpostapiindexv1rotatetoken.go: + id: 1d31bb22a359 last_write_checksum: sha1:d663a6564269f2894bb75a0b7bb0a98421d25d07 + pristine_git_object: 23d1db7adf0f606fc4aaeed427d3abf4ecc1b19e tests/mockserver/internal/handler/pathpostapiindexv1updatepermissions.go: + id: 3a513f7feb0f last_write_checksum: sha1:30d3d3c8d634fa56d0510224f26e4538ba76dc89 + pristine_git_object: 9bb5d5769dfb3a4e78676950e8a2706f119bfc5c + tests/mockserver/internal/handler/pathpostrestapiv1actionsactionpackactionpackidauth.go: + id: 9aaa5b8c2f43 + last_write_checksum: sha1:6e74488c94c9f19f95861e6b5940457c55078190 + pristine_git_object: 5ae4ea1285a00a2343bb5b79a02b827b62230fe9 tests/mockserver/internal/handler/pathpostrestapiv1activity.go: + id: fc2da8a2438e last_write_checksum: sha1:740b590218da942539e85a585bec78c0777ae934 + pristine_git_object: cf821af601b02d653278f9f079fad38eadb37b78 tests/mockserver/internal/handler/pathpostrestapiv1addcollectionitems.go: + id: 453597f808da last_write_checksum: sha1:bd9aa6512282c2641b398d1166dc17d7dc3576ab + pristine_git_object: 363e98968712d8ac0d1eeb6c924ba685f5d2690e tests/mockserver/internal/handler/pathpostrestapiv1addverificationreminder.go: + id: d6f7902f9883 last_write_checksum: sha1:2a7596e25accc1641c76ae54ab8cfa440d7418ab + pristine_git_object: 238a63f7607f10826012443f447ef4ebc579661d tests/mockserver/internal/handler/pathpostrestapiv1adminsearch.go: + id: 3c3d5555c20b last_write_checksum: sha1:8ef1b12ee725ee32fb6a0a1e0e812594df97e06f + pristine_git_object: 26fdfdd7e2d2fdffa6ecc736b7a70d6eb1aa5327 tests/mockserver/internal/handler/pathpostrestapiv1autocomplete.go: + id: 9830ef01b25b last_write_checksum: sha1:094d64ddc73a91d38e64e3be18690ebb9d4ef3d3 + pristine_git_object: f5022d6d984936d775ac67f58351dd65db04bc02 tests/mockserver/internal/handler/pathpostrestapiv1chat.go: + id: 72aaa913f0bb last_write_checksum: sha1:0e62b904cb8354c1da5300d5f5b5b5a996c31716 + pristine_git_object: 24ba560b8daa0e125d418a139c2e851403be2845 tests/mockserver/internal/handler/pathpostrestapiv1checkdatasourceauth.go: + id: a2799924e03d last_write_checksum: sha1:bfd126dda7eb1a68c0edd1403c89770a4907aec9 + pristine_git_object: 41731f5cf158d0388c5652735c6f2623d545e8ba tests/mockserver/internal/handler/pathpostrestapiv1createannouncement.go: + id: f799135d9b38 last_write_checksum: sha1:0b93fd5d83fbe115c126538e632ea7a1710d8c9b + pristine_git_object: 1efad5a31faf0e65b8f3d2a5ffce23cc5529e7f3 tests/mockserver/internal/handler/pathpostrestapiv1createanswer.go: + id: c48b6ed78315 last_write_checksum: sha1:8965cbf3e4aecb44f4544a62ce9a053a9e477eaa + pristine_git_object: 6e0fd525eeb2efa452f9a2c63731d1279cb02eea tests/mockserver/internal/handler/pathpostrestapiv1createauthtoken.go: + id: c8a479263c3b last_write_checksum: sha1:6ce83ba03066acb436796c018d19715615f548c1 + pristine_git_object: ab9263d43404e8e6f07af222a3e785aca2fbf35f tests/mockserver/internal/handler/pathpostrestapiv1createcollection.go: + id: 3fb93a419933 last_write_checksum: sha1:14b4a1d98dd55ce2b487ae1aaab4a7dece08df25 + pristine_git_object: 371b90231fcd7bd77fd6d9566156605af1712d9a tests/mockserver/internal/handler/pathpostrestapiv1createshortcut.go: + id: 8d9d3abb0c34 last_write_checksum: sha1:2f9468a50936c4cb0fb2101d97c1425cb36ba2d4 + pristine_git_object: 1b2c9b91290d5e41c66194c7eba2ccbf2a6c2296 + tests/mockserver/internal/handler/pathpostrestapiv1datasourcedatasourceinstanceidcredentials.go: + id: e53dab9ae3bf + last_write_checksum: sha1:d037020783a24705c0efd9f83310746517d032d5 + pristine_git_object: af37421f2eaf45b5f98807f2e69a2ff0a0425068 tests/mockserver/internal/handler/pathpostrestapiv1deleteallchats.go: + id: 659965a5beb5 last_write_checksum: sha1:7342efa7a55bf0d83da3680c9504c5b582c738e4 + pristine_git_object: a83262028ac84a63cc872bdae96fc1303f60285c tests/mockserver/internal/handler/pathpostrestapiv1deleteannouncement.go: + id: 24a74b4ebdda last_write_checksum: sha1:6f931416507ed9d9875143f82bc50d3beac8b1da + pristine_git_object: 8a58ed5cea74767acb351f1993239f7036550a6a tests/mockserver/internal/handler/pathpostrestapiv1deleteanswer.go: + id: 14209d0ab8eb last_write_checksum: sha1:690b91bbf6f0618bad729b9111942523912b86a4 + pristine_git_object: 0b853e55c1552291ef7f12f9f0872b84daeefb33 tests/mockserver/internal/handler/pathpostrestapiv1deletechatfiles.go: + id: 2eac25b5e397 last_write_checksum: sha1:5a426cea74ad83810db60ec7042dd306590e0662 + pristine_git_object: 9e26a1a0122e09ce76fe1911c3143515119adfb3 tests/mockserver/internal/handler/pathpostrestapiv1deletechats.go: + id: e43f12506f8e last_write_checksum: sha1:640bd99cdfc344506387c7ab716d5294ef7111bb + pristine_git_object: d1b1369304389a79e475cab6cf1afb3af0b0fb2a tests/mockserver/internal/handler/pathpostrestapiv1deletecollection.go: + id: a8d711f41054 last_write_checksum: sha1:9c5945878376ea9aa9a5131b1b84a3fbb767fbd8 + pristine_git_object: 1089baf05a0161fc1353240b9e267d2bb046f5f7 tests/mockserver/internal/handler/pathpostrestapiv1deletecollectionitem.go: + id: c44ca720f6d9 last_write_checksum: sha1:251679b6e156fcc46098b00632d785b836b4e9ed + pristine_git_object: 592a00dfecab35c044aa40540280d8b7aca7f693 tests/mockserver/internal/handler/pathpostrestapiv1deleteshortcut.go: + id: 215198be2cae last_write_checksum: sha1:7a7a40095e3b2fd22ecc7652e63ce0e298543f96 + pristine_git_object: 0c4dc328740204a54634c0f01fb0f6f5f0b8c0ce tests/mockserver/internal/handler/pathpostrestapiv1editanswer.go: + id: ac78c5f77070 last_write_checksum: sha1:03b8a1e312fb737e5fb8d2d750eb494ee55fc248 + pristine_git_object: 9eb623cbd469d0c1d6b0acae66e2d6f4ba8326a6 tests/mockserver/internal/handler/pathpostrestapiv1editcollection.go: + id: 2f60cb88f757 last_write_checksum: sha1:28ada14348434da1f1402c04dcdb9e3d4335d224 + pristine_git_object: 6b4b061930cc318a5aa7c03aa00403b7251665be tests/mockserver/internal/handler/pathpostrestapiv1editcollectionitem.go: + id: 0a3149ca9f75 last_write_checksum: sha1:bccda39ad0b6d11e247c2723b67cbf40fe3f4d7e + pristine_git_object: 54ec38a45e130fa42e1f149ae35726237f687c05 tests/mockserver/internal/handler/pathpostrestapiv1editpin.go: + id: 785ac52f9271 last_write_checksum: sha1:331563c80356e895a84ab898df7c359da3c70b45 + pristine_git_object: b127949568b5ba821846489ce317747562100576 tests/mockserver/internal/handler/pathpostrestapiv1feed.go: + id: 7e1246bc65e0 last_write_checksum: sha1:c102414f84ee6adb3c314425a2c6d051c4501b2e + pristine_git_object: 950ad3db61530ae01f94aee133c5e9e2d35e4151 tests/mockserver/internal/handler/pathpostrestapiv1feedback.go: + id: 9c6e064091bf last_write_checksum: sha1:2ba56c655e63e01a5c46fbd7beb087077a6deaea + pristine_git_object: 372a01f2bf460eaba695400be33a14f2608eb917 tests/mockserver/internal/handler/pathpostrestapiv1getanswer.go: + id: 6dad542fc9ef last_write_checksum: sha1:80bc08894cebfd78f82d3d80f93fd85a11b55d45 + pristine_git_object: abb763ddc8504b28c0cb6fdf8d25237d46e21bab tests/mockserver/internal/handler/pathpostrestapiv1getchat.go: - last_write_checksum: sha1:b48e2313407814ee4f8ed181b8e5299a84960c44 + id: a0ec7bafa599 + last_write_checksum: sha1:2267292ba8173cf8df70ddbc6ac02ff3439cb879 + pristine_git_object: 8740195860b6c08e036caae19aab8e7374350960 tests/mockserver/internal/handler/pathpostrestapiv1getchatapplication.go: + id: 7d101c69d4bc last_write_checksum: sha1:7b81898137fdb3a89b4dcfa318b9b5b92e8860c0 + pristine_git_object: c7983c60d6269f825a8dbd2577015ecb24064f72 tests/mockserver/internal/handler/pathpostrestapiv1getchatfiles.go: + id: 21d7f14a966a last_write_checksum: sha1:3ce17b01cd64de13a1b737a3326c320ad3603b1a + pristine_git_object: 73feb6db8e282c99b859fb6545e5d463eaab3585 tests/mockserver/internal/handler/pathpostrestapiv1getcollection.go: + id: 952d7b6f017e last_write_checksum: sha1:da0e722fbe604ac4d80e9796901ef5783c793911 + pristine_git_object: 5d34142ea27af523b9182d6cbc16d5a9c837dd30 tests/mockserver/internal/handler/pathpostrestapiv1getdocpermissions.go: + id: 1387c9e44fb5 last_write_checksum: sha1:b2d67531e58089109953dc3ed416bd6b4e7a8373 + pristine_git_object: 3d7e842f17e249c5dd61f1923956c9363920e3ff tests/mockserver/internal/handler/pathpostrestapiv1getdocuments.go: + id: 303c4f3228c9 last_write_checksum: sha1:7225fe43412ee32fe701c5fa9ed76440f693d649 + pristine_git_object: 453834abe2c46ad73d0797646d3f2c506fc2b10f tests/mockserver/internal/handler/pathpostrestapiv1getdocumentsbyfacets.go: + id: 9913813e1577 last_write_checksum: sha1:eeeef0766d261c473bfa892639abdade30da9dfa + pristine_git_object: 4952b77e999cbfe41c254e19ac5db0e407a9c7f0 tests/mockserver/internal/handler/pathpostrestapiv1getpin.go: + id: 729d046e63ac last_write_checksum: sha1:4d9561275f57cf77b9f52b99bc21b1d27712a38c + pristine_git_object: fe2aa28374123d8171c7954a1f739a6e0ab4f2c8 tests/mockserver/internal/handler/pathpostrestapiv1getshortcut.go: + id: ce5afc1f1e34 last_write_checksum: sha1:327c7d7c4e53607f8912156c8997b1713d7590d2 + pristine_git_object: 97cd66fe5f67a990226817321a4b5bfec272e774 tests/mockserver/internal/handler/pathpostrestapiv1insights.go: + id: 97eddeabde4c last_write_checksum: sha1:4648f4b752507c33020b12f301dd5a48aa95e839 + pristine_git_object: 6e9737ca0402981a793c79c1174dfb99a89e517e tests/mockserver/internal/handler/pathpostrestapiv1listanswers.go: + id: 37b954838893 last_write_checksum: sha1:b31b0eb64b63a103d3bf4b682bd865a185698054 + pristine_git_object: ca9c40ec604aa643c9d3bfbb09f205d553bc1e0e tests/mockserver/internal/handler/pathpostrestapiv1listchats.go: + id: 7ae5e49d6dce last_write_checksum: sha1:b6ffb2a9c5fc46d1737657cefc57b8a4804ee92d + pristine_git_object: 572a0c4e92545114d397aaf99426e00bfe632bdb tests/mockserver/internal/handler/pathpostrestapiv1listcollections.go: + id: 02663724888e last_write_checksum: sha1:501f7d4bd03e2c28aa7a7d12a78ff6eec0efcc24 + pristine_git_object: bf011d223ec0d63207e791edd7415143a7a2016b tests/mockserver/internal/handler/pathpostrestapiv1listentities.go: + id: 9052f7de943d last_write_checksum: sha1:950062481cce0b74dd0d936947eba20fd7168ace + pristine_git_object: 1c5901748048d94fdc03dbc0d7111cd883927d80 tests/mockserver/internal/handler/pathpostrestapiv1listpins.go: + id: 77d7cb841d0e last_write_checksum: sha1:647bbd8e35c0b3ec4b2aae304c6eb1fd2a6aa7ea + pristine_git_object: b23d7ae8fe5e0db17568b327a58d1c558f709fb6 tests/mockserver/internal/handler/pathpostrestapiv1listshortcuts.go: + id: 5ea10fed652c last_write_checksum: sha1:23ba4c891bdf622f8520cfcb2982eb8033051c4f + pristine_git_object: 6591d82abf632a39abd6e928ed98ff7858c63d5f tests/mockserver/internal/handler/pathpostrestapiv1listverifications.go: + id: f60e29570dbb last_write_checksum: sha1:572e81aac862f264f9c369e33e439493e3a9a9f1 + pristine_git_object: 243e4b83d639ceaa4b7f6e4741e52fd5d05b68cc tests/mockserver/internal/handler/pathpostrestapiv1messages.go: + id: 9b8c904cf45e last_write_checksum: sha1:9d687b6f21535528f0a4157fa4900a14d8cd84d7 + pristine_git_object: bbd8a470d311307afff9eb485159964e09fc44a2 tests/mockserver/internal/handler/pathpostrestapiv1people.go: + id: 18588f42240a last_write_checksum: sha1:e5404d64a70fa90dee7adde105d617b6f6ffc15b + pristine_git_object: ac833cc810acb5754e38144842d583fce8d64483 tests/mockserver/internal/handler/pathpostrestapiv1pin.go: + id: 827778f37a66 last_write_checksum: sha1:478cbba00e1b9fdce1c7293f77ae45c61fe6afab + pristine_git_object: b137a0a80189806f9e937b0ad89559ad899728b3 tests/mockserver/internal/handler/pathpostrestapiv1recommendations.go: + id: 14a4083134b7 last_write_checksum: sha1:86179e1f769213b4d293746b68dea637e9bf50e2 + pristine_git_object: e9f511ab3dda56dfd8cdb500c7206ca944c4aeca tests/mockserver/internal/handler/pathpostrestapiv1search.go: + id: ee7df329ebee last_write_checksum: sha1:a71a7f68fe9c25edd70364a49d4631f60999af67 + pristine_git_object: f3b2ae98bce24a1391b2191cd38d1294cccdeddc tests/mockserver/internal/handler/pathpostrestapiv1summarize.go: + id: 4ffce09060b0 last_write_checksum: sha1:eafbc420f54c1395f41af4735d74af6105c8d50d + pristine_git_object: 2184efd63a6f3d7f1b570e5ebdbbcffe1330e0a2 tests/mockserver/internal/handler/pathpostrestapiv1toolscall.go: + id: ad6776df2ba3 last_write_checksum: sha1:97d094dbdeba08fc395322c0048c259ecf0035fc + pristine_git_object: 1676df61ea2406ad36a967ea58ff4022922d133c tests/mockserver/internal/handler/pathpostrestapiv1unpin.go: + id: 08da240877b4 last_write_checksum: sha1:4ad6d409b1f7c8e66b8e3ec423016f5bc7e94605 + pristine_git_object: c1a7228b3369bb431ed24857ed794a7ab48339d8 tests/mockserver/internal/handler/pathpostrestapiv1updateannouncement.go: + id: faea247d7d6b last_write_checksum: sha1:3758a38536ab57e88e20157a7d92d9c88575ce66 + pristine_git_object: 883465118636d7e72243c0425829427b6eafebba tests/mockserver/internal/handler/pathpostrestapiv1updateshortcut.go: + id: 4b673857b971 last_write_checksum: sha1:2047aee123cb21e18ea9c6e54209c5dd21be8219 + pristine_git_object: 835c96f1297122c55e789f460bdc072e4c7e3759 tests/mockserver/internal/handler/pathpostrestapiv1verify.go: + id: 39d1104b87dd last_write_checksum: sha1:81e23075ee7fa39fa4c5feaf617483fe4b366b1c + pristine_git_object: ab0824f9439225877f223f1ad2ddbbf29e6dcfcd + tests/mockserver/internal/handler/pathputrestapiindexcustommetadataschemagroupname.go: + id: 308cdf6fc94d + last_write_checksum: sha1:e451ed556d221180f382198554cb9c48ebe6cdc9 + pristine_git_object: b9aa8f5d68454a0d480303e51d36f835bad5c264 + tests/mockserver/internal/handler/pathputrestapiindexdocumentdocidcustommetadatagroupname.go: + id: 1c1bf391d8e3 + last_write_checksum: sha1:149f22f18bc46e075c2b0d8e78c45fcb850d57af + pristine_git_object: acee8819ecca0e48cb7988a724f28207f06fee7b tests/mockserver/internal/handler/values/files.go: + id: b4edaa743a70 last_write_checksum: sha1:e1e9d78c165e2a35d165f120bd8dcd7b42c33a33 + pristine_git_object: 6eca8858dac804123836663005d937372686b708 tests/mockserver/internal/logging/doc.go: + id: aed3c4840e49 last_write_checksum: sha1:63a119620f179826356304b8205756248caa370e + pristine_git_object: 8835f1cc9cf31b2610c56ec385a1b477f80052ba tests/mockserver/internal/logging/formats.go: + id: 40d173aa5b43 last_write_checksum: sha1:e84e84e6e62a4dc3b9ad3a7f2a95eb77374f2fcd + pristine_git_object: d6ab53c8fb08198c51bbb732ee4bfa66af181044 tests/mockserver/internal/logging/http_file.go: + id: 3a9caf78d317 last_write_checksum: sha1:e948142b98821c23bd21c128e007e79a193114a2 + pristine_git_object: d690d9153a532ecb2a6e798f7fd12734c7ecc167 tests/mockserver/internal/logging/http_logger.go: + id: 18e34362bb8f last_write_checksum: sha1:7a2267a61cb1282405ed7f406f9bd95fbf796b5b + pristine_git_object: fdd5d058aaacbe840a9d687f1e385a84d2b5f066 tests/mockserver/internal/logging/levels.go: + id: 38a926bd953a last_write_checksum: sha1:164f3aee47030d3534e4ef2df31192304e9ea97b + pristine_git_object: d2a8e93c3ddc5c06285f791a4d1cfcafa2affbaf tests/mockserver/internal/logging/logger.go: + id: 0a6ab6e2cc12 last_write_checksum: sha1:92027a7d11dd84831bc444aa2d018cbb7195542f + pristine_git_object: bfd6dc786676c296f36c8dedc6cd443b3f317c5b tests/mockserver/internal/logging/oas_operation.go: + id: ac7b824c59a6 last_write_checksum: sha1:af9187f31972ef308fb4bc82de73d6dd71b9fb64 + pristine_git_object: d4f2af7b4d2df6aa2821ead488033f3fbbc38f2c tests/mockserver/internal/logging/oas_operation_call.go: + id: f49866e79383 last_write_checksum: sha1:1ec2244b5fc171dfe7e4e339420b2b17f0df48c9 + pristine_git_object: beb05908cf58a7b8b46d739ee51a5aba54c5bf7c + tests/mockserver/internal/sdk/models/components/actionauthtype.go: + id: 4ff9feaab0f7 + last_write_checksum: sha1:bd904943895ea34005f594e13f12481f96c11286 + pristine_git_object: 4547fc36c08113276fbd2e9834bc6db93efa2052 + tests/mockserver/internal/sdk/models/components/actionpackauthstatus.go: + id: 0635e409814b + last_write_checksum: sha1:3782e2b34ee497143dea41e1cfee8e516f2a80eb + pristine_git_object: fb8e700a43a37a5f1d843ae8adbb19f0b3a050ca + tests/mockserver/internal/sdk/models/components/actionpackauthstatusresponse.go: + id: ad34672435c4 + last_write_checksum: sha1:578df01f6d9f140122c63b6b9b2b01cda1ad6280 + pristine_git_object: b5d719827a698757158580e277482bb8a7a00238 tests/mockserver/internal/sdk/models/components/actionsummary.go: + id: f7930cfbea89 last_write_checksum: sha1:32cfaf32c20b96fe223b11c6150435d39c9be8da + pristine_git_object: b2ab488484bf36734dd6f5be8f788a99661703b2 tests/mockserver/internal/sdk/models/components/activity.go: + id: e9c217cc89fa last_write_checksum: sha1:62ed2988de11a8af0b36342f9e557621d32cb6d4 + pristine_git_object: 495599c840e3398493df081d442af08d180b63fa tests/mockserver/internal/sdk/models/components/activityevent.go: + id: fd3bb2702950 last_write_checksum: sha1:4fd0a03c36baba07da9afae72a0e274bc4aaa667 + pristine_git_object: 59aa0168bff831a106905d72c682c0223c7f0bbf tests/mockserver/internal/sdk/models/components/activityeventparams.go: + id: ec855a8460ee last_write_checksum: sha1:a1b15541d7959aede9843cb777a2fd8b610e70bb + pristine_git_object: eae5f03e3a5104e4b448d8b4b9e4d74b18ffedbc tests/mockserver/internal/sdk/models/components/addcollectionitemserror.go: - last_write_checksum: sha1:d3b9af4f6e64c36285dfade93354289a4b38ecd6 + id: c07d22145d90 + last_write_checksum: sha1:869fdf5cca8dcac2989f9dae882b9e8d7da3c4f3 + pristine_git_object: 43f9319597e845325caaa9346a4a378a27350cc7 tests/mockserver/internal/sdk/models/components/addcollectionitemsrequest.go: + id: 23643ed3a8a3 last_write_checksum: sha1:072fa8f9fcb499a52eaa1eedabe52790b255d7cf + pristine_git_object: 3a1ab6f65dcc6f6d76f9899ac76628888664498c tests/mockserver/internal/sdk/models/components/addcollectionitemsresponse.go: + id: a357e82e1ce0 last_write_checksum: sha1:4c7925c730e3b306c78aaed58d475a893e9aefcb + pristine_git_object: dcb6950379fbd3e9d8c6d9d34430ba79451429af tests/mockserver/internal/sdk/models/components/additionalfielddefinition.go: + id: 129f9e10d0b0 last_write_checksum: sha1:e5275ce8bd7d05723612608eff87821ab738ccec + pristine_git_object: 65166a2a869e41b15da2c28e471da628d815d1a4 tests/mockserver/internal/sdk/models/components/agent.go: + id: 272d30f7db71 last_write_checksum: sha1:a2976ece5b814f553cd7d724369dbdf054b10d70 + pristine_git_object: f7b3b13119f56eb58b399290ea4fa65e83b3e490 tests/mockserver/internal/sdk/models/components/agentconfig.go: + id: fa742da941da last_write_checksum: sha1:cd839d5368cb6f41495a5fc8ef333ab5d4f102cb + pristine_git_object: 679f7f3270226aee52d4ade229b20b723d13c29a tests/mockserver/internal/sdk/models/components/agentexecutionstatus.go: + id: eb0b8cff2bf6 last_write_checksum: sha1:ef904e3fd25fd902d355e88115d0721dfecab4f8 + pristine_git_object: 7a8ba8400503c9144b4ea819c434e2f03eaa2085 tests/mockserver/internal/sdk/models/components/agentrun.go: + id: 7c661247b7d0 last_write_checksum: sha1:a69cc58ceadc947b1e9dd587f9d936ef9aa266eb + pristine_git_object: dcff6d12e0c3def31984e4a134c46ed1d4704c53 tests/mockserver/internal/sdk/models/components/agentruncreate.go: + id: 68e7aadd2c7f last_write_checksum: sha1:b6d18d560f9137f1603b59692f73da586eaed80d + pristine_git_object: e0f2b034406b69f6beecc2328c713102dc9fb013 tests/mockserver/internal/sdk/models/components/agentrunwaitresponse.go: + id: 8e31e5609691 last_write_checksum: sha1:75b0a516ab1c183abeeb9e27abc8a00f265f32ad + pristine_git_object: b5aa1e8ebde878a05eee8afb6a57b4b8d74ba24f tests/mockserver/internal/sdk/models/components/agentschemas.go: + id: 4925ad5cac23 last_write_checksum: sha1:d0cbb79eee354dff93838a2d6525538d440b7ffc + pristine_git_object: 262d88134ce4f17c1bce1fa4a0f4da159142720d tests/mockserver/internal/sdk/models/components/agentsinsightsv2request.go: - last_write_checksum: sha1:5bbebc8109a68e2b22dc0ca044b009a4ff491d1f + id: 18948a1145bd + last_write_checksum: sha1:7759601379c524537409b44daa7a7a3f36c142b6 + pristine_git_object: 83467d6a3b1944a4e49d1fc7af5097d9d7d88b95 tests/mockserver/internal/sdk/models/components/agentsinsightsv2response.go: - last_write_checksum: sha1:37dfa579c66588425502ca91ae07cb9529bebd65 + id: 8313bd7d3a39 + last_write_checksum: sha1:2bf27d5c4fa4ed8db97d93e983abede54affd688 + pristine_git_object: 25139a603d57f983770a80e5d0b7ab62117a63b2 tests/mockserver/internal/sdk/models/components/agentstimesavedinsight.go: + id: eeb8af7ff015 last_write_checksum: sha1:1c07a7a8e8de690de25bddba511878bc5d40a515 + pristine_git_object: 2a8e31d94b9f2f9fe7a6b72dfadcd9cd6223c040 tests/mockserver/internal/sdk/models/components/agentsusagebydepartmentinsight.go: + id: 46e77cf33a2f last_write_checksum: sha1:21c46d3f5363b157c2e4ee70451c7d0b3e8d77df + pristine_git_object: 2433dfc6f017b03604afc1438bf606a1b57099d1 + tests/mockserver/internal/sdk/models/components/agentusecaseinsight.go: + id: 7532f3f4e4be + last_write_checksum: sha1:e7d3ef7ff9b2b85433c788603548074ca5d6233a + pristine_git_object: 3caa18364e54985cab452cf0f731d220e691585c tests/mockserver/internal/sdk/models/components/agentusersinsight.go: + id: 25bd2b7b006e last_write_checksum: sha1:2f737cbf66693fdffffc4d9f30a3f26b09d35eb6 + pristine_git_object: edfaaac094589522ad1ad4094131887b43780c92 tests/mockserver/internal/sdk/models/components/allowlistoptions.go: + id: 5dd666458357 last_write_checksum: sha1:db278a11846646ca8794392f2846087d1fba114f + pristine_git_object: cf238c9e67d94abd0f7de713e0922be55618dc75 tests/mockserver/internal/sdk/models/components/announcement.go: - last_write_checksum: sha1:73643c448e9758eca5d2ef21e89e61f81e922d76 + id: 657490dccd71 + last_write_checksum: sha1:038cda5de3f5d66db97e95c8a838f3c1a14bf265 + pristine_git_object: c2e1c39946b4da085347a33ff3e24f953fe364f3 tests/mockserver/internal/sdk/models/components/anonymousevent.go: + id: cdc4fbaaf2eb last_write_checksum: sha1:0b48a4942a454618f0b0f16047396d8354b1b90e + pristine_git_object: 9486c7b30408660fdff7359ada116c45c62256ae tests/mockserver/internal/sdk/models/components/answer.go: - last_write_checksum: sha1:cb63350f5c0c0e0914fdf22fbf2edbfcd70d4c71 + id: a2bc6a3d2f9f + last_write_checksum: sha1:5bde5e290cf6af6e0f9d82d0ba053f0f2bd35e7e + pristine_git_object: 69609f521939bcdf1d9e81a14324f606d2b32f2f tests/mockserver/internal/sdk/models/components/answercreationdata.go: + id: 442ad470f93f last_write_checksum: sha1:249e06425fd059c0b7d11078f1fabb9a66fe0e8c + pristine_git_object: 529ec6128232479fefd685a271b44801065d1490 tests/mockserver/internal/sdk/models/components/answerlike.go: + id: d9d13b8d402b last_write_checksum: sha1:1859e2a2f2f8960cd83ad3d83fe4e1d0207189d5 + pristine_git_object: b6fe5246846a5ae91cd64c704bba117cd284c9f6 tests/mockserver/internal/sdk/models/components/answerlikes.go: + id: 961c94d04f32 last_write_checksum: sha1:512d5f73f8d017b70e9f799a9aaafabf5e40bf1c + pristine_git_object: 7adddc86acd77e7a08909d504826871e269ea1c2 tests/mockserver/internal/sdk/models/components/answerresult.go: - last_write_checksum: sha1:f865dd4aa0c0e51c8c0676fff89bfbfe76c355db + id: 6a4c238bbef0 + last_write_checksum: sha1:3b909c9aaa8337bfa3d5397d17d8f0e4305d4a2a + pristine_git_object: ffd9c3fc323450e6d5840d6bf6b72d92018b0a35 tests/mockserver/internal/sdk/models/components/appresult.go: + id: f5c8280eeff5 last_write_checksum: sha1:5d7841e6270918e5e1b59873c394d8a0b2eb1bc9 + pristine_git_object: 13c623198b89959d69b58e6ccc7c73a0a022d4d0 tests/mockserver/internal/sdk/models/components/assistantinsightsresponse.go: - last_write_checksum: sha1:1646bc05ef8352596a60c567dd6c437008d79e31 + id: 8ca7fffccbde + last_write_checksum: sha1:cf4bf37d272fba27bfe92b0f3e39f073550a4fb0 + pristine_git_object: 34f0d2d2c20aafadf823810520d67558e3ccb386 tests/mockserver/internal/sdk/models/components/authconfig.go: + id: 450c27df20a3 last_write_checksum: sha1:e9e386e4a0c3ea918f1a2b332f91a129d77ac307 + pristine_git_object: 483958ea708faa6e36081ef83b4c528441313815 + tests/mockserver/internal/sdk/models/components/authorizeactionpackrequest.go: + id: 6aa135032c9b + last_write_checksum: sha1:4c85e9cc50180f07d2857be440bae9f465f5f468 + pristine_git_object: dc682969903da4b847141f46f54443a7b19fb41a + tests/mockserver/internal/sdk/models/components/authorizeactionpackresponse.go: + id: 84cdf6495063 + last_write_checksum: sha1:2a458d0fb35074c83cd5dc41543c300942f5b7e5 + pristine_git_object: de205e6fb6d56ead5c64014571a336b54f0136d5 tests/mockserver/internal/sdk/models/components/authstatus.go: + id: c12f2870beb7 last_write_checksum: sha1:ca2727d0dcddf2ee072f3b26529d2952d7e72a21 + pristine_git_object: ea2c6627ed46ab3635fdfc37459aab9d71c5ff1c tests/mockserver/internal/sdk/models/components/authtoken.go: + id: 5e4c97e8520c last_write_checksum: sha1:5537829634cde892a99188915beb38e460d2f2ad + pristine_git_object: 774930f21f6761e703d10082d6fd42bd5d7c5c32 tests/mockserver/internal/sdk/models/components/autocompleterequest.go: + id: 56aa024b9118 last_write_checksum: sha1:1afcc6580c049f904d96944dcbf6f96dc9ba0b5a + pristine_git_object: dd9b56771c608f8f4e98215078d3df63096c0419 tests/mockserver/internal/sdk/models/components/autocompleteresponse.go: + id: 66cd6764f2df last_write_checksum: sha1:ac7d26f25b2828f520494f4fbe7cd7c2beb9f44a + pristine_git_object: b5b93358134162c354cd17b7f02d3c268ed1ee8d tests/mockserver/internal/sdk/models/components/autocompleteresult.go: + id: b9d35c1302fa last_write_checksum: sha1:8438ff71f398ed3de8208f2f2c8b2d63819c83f2 + pristine_git_object: 01edf62659432bd750f8c109f6773c05adede9b2 tests/mockserver/internal/sdk/models/components/autocompleteresultgroup.go: + id: 37b04686e61d last_write_checksum: sha1:7ef163b02d59c2889529b21e4eaf2c8c03ae08c4 + pristine_git_object: fbf4682f006106d667bb523a85bcc1c987bd00f2 tests/mockserver/internal/sdk/models/components/badge.go: + id: 7210b2a9bdfc last_write_checksum: sha1:b210638bdb4f72e82ad7076cb06c283e389485d4 + pristine_git_object: 5069934040fcdacd6dc7ea018aca5dc3da2962a5 tests/mockserver/internal/sdk/models/components/bulkindexdocumentsrequest.go: + id: 8a98ef1eee61 last_write_checksum: sha1:9e2ba7d86e5be43918c7fa13fa21d0848e43d516 + pristine_git_object: 66aa01e55e2d2670757c2a15a9e829ff49ee593a tests/mockserver/internal/sdk/models/components/bulkindexemployeesrequest.go: + id: 1007fb479f97 last_write_checksum: sha1:9b18ad1444da55e2120fe3a81c3cf72d00af7c7c + pristine_git_object: 84b2d85ae3e90cf898fcc31c4d7e3fdce301a57a tests/mockserver/internal/sdk/models/components/bulkindexgroupsrequest.go: + id: 94d4e7786c14 last_write_checksum: sha1:24099f2918f9f9c049ba036acf49fe3031f61f1a + pristine_git_object: b528cd39010d8b0d6be48af7c28c17b7c606496c tests/mockserver/internal/sdk/models/components/bulkindexmembershipsrequest.go: + id: 8e97edd3a3bf last_write_checksum: sha1:120d02e4046058bdfa31ad1ae1efa6b0e6b77063 + pristine_git_object: 3132cb23717e77246626dc3a66f317b129b59271 tests/mockserver/internal/sdk/models/components/bulkindexshortcutsrequest.go: + id: a72173fcee69 last_write_checksum: sha1:5cfc33803792ab9d3f4f76b7e88fa6c900f6b6ef + pristine_git_object: 6a4ab205116cc62ade0890d39cc7f8cc9fe3e181 tests/mockserver/internal/sdk/models/components/bulkindexteamsrequest.go: + id: 098519f4f669 last_write_checksum: sha1:bb0791cb7986875b32b1c03f66f24d8d39f92a12 + pristine_git_object: 0acb6475b615c19bf20a699464be8683ac6c4a0b tests/mockserver/internal/sdk/models/components/bulkindexusersrequest.go: + id: 6c7aa436364b last_write_checksum: sha1:8bca357333604be0a5c1143ae8c7e045ab0c7757 + pristine_git_object: c94ddd90d3d259926876fd5b85d9d6a7139fd1fb tests/mockserver/internal/sdk/models/components/bulkuploadhistoryevent.go: + id: 047a8bcc6473 last_write_checksum: sha1:bcb154f82745d343ced1b76b1e5dd0c86945f3d4 + pristine_git_object: 9f7711f3552b3b033ca5c7f5d4169c2e68bf73ed tests/mockserver/internal/sdk/models/components/calendarattendee.go: + id: d816e3b2f971 last_write_checksum: sha1:9397890775c4933a7b93831aa77935edb65188a5 + pristine_git_object: 4ecffd3595bc8f8a4f8c6b8afdf6f3c1a40dcf6e tests/mockserver/internal/sdk/models/components/calendarattendees.go: + id: 1e747016ded6 last_write_checksum: sha1:7aada62955593beddf450e320b31d1ce56495862 + pristine_git_object: c237f6fdfc76002db00450dcc1c0f833ab83d8e8 tests/mockserver/internal/sdk/models/components/calendarevent.go: + id: 8266e43a77b2 last_write_checksum: sha1:8b37f864d04425db3f5370c63a2a01c3e9e66e94 + pristine_git_object: 33ac7433919695239120f18f62fb966c05d0e831 tests/mockserver/internal/sdk/models/components/canonicalizingregextype.go: + id: 7df117f09631 last_write_checksum: sha1:2d0c192b2b7d99262441a1ee0cbd670bf7970746 + pristine_git_object: 76692d3833374687b3dda368de9aa7178ff91c11 tests/mockserver/internal/sdk/models/components/channelinviteinfo.go: + id: 8bd7a1767410 last_write_checksum: sha1:6687d3c4cc24f62e6ed37cc8abc1835ff31f3f11 + pristine_git_object: 9e3252d41a35c178e2559eef1789d335d5296805 tests/mockserver/internal/sdk/models/components/chat.go: + id: 267212a046da last_write_checksum: sha1:5f73994939b88d70f6d9a6cd56c6a5c701ed2712 + pristine_git_object: 6d99873d506d21d2ffed0e6f51675d82be9e8e7d tests/mockserver/internal/sdk/models/components/chatfile.go: + id: ad0d00764036 last_write_checksum: sha1:2d220b166f37523e64aa0965e237872532f4ccfe + pristine_git_object: 7ea76ec3fb4a8f4e9052efb80db4c0b452ddac88 tests/mockserver/internal/sdk/models/components/chatfilefailurereason.go: + id: be1b1d0332ca last_write_checksum: sha1:21b914bf1323b19bede96d1e8a4e56494c2f7a4f + pristine_git_object: b77365d9d37845c84bffb31d4b5820ea5cb804f0 tests/mockserver/internal/sdk/models/components/chatfilemetadata.go: + id: f4269e82a2a4 last_write_checksum: sha1:4e608b0813ad32b7a981f73a511952b6459979e0 + pristine_git_object: 55c746ecdb0de1f37ffcf3bd21cefca8472f6cdf tests/mockserver/internal/sdk/models/components/chatfilestatus.go: + id: e34ec1fe6a71 last_write_checksum: sha1:382dc2973696c71b36481555cc1eeed0379b3f2a + pristine_git_object: 95c737865f29c05a823d2782d5a6f0d3560e7565 tests/mockserver/internal/sdk/models/components/chatmessage.go: + id: 8b35dd6dfbfc last_write_checksum: sha1:b813b4301b77532bbbc60fa85f3b44e21d7a740d + pristine_git_object: 3ab0cd3981476b7446d064b432537eb1f996e87b tests/mockserver/internal/sdk/models/components/chatmessagecitation.go: + id: 3986d745a603 last_write_checksum: sha1:f5b371efdd863a1d6d2f83041371ceb7601bc07f + pristine_git_object: ba07ad7ae4afd9e658815a526e41aefbb9f854f0 tests/mockserver/internal/sdk/models/components/chatmessagefragment.go: + id: 8d14e05d6934 last_write_checksum: sha1:1834d9a43544e8cca44d147a1e2f99e120fb09ae + pristine_git_object: 4a0507c9eec0ef8e77fe81e62b063f85250c3704 tests/mockserver/internal/sdk/models/components/chatmetadata.go: + id: 53881e1500d3 last_write_checksum: sha1:2069155b9191362259f87a10f5eb7426b3bad1b8 + pristine_git_object: 9bba09a9f3a7cd53ffdaf5d1a07c5eb2e430373f tests/mockserver/internal/sdk/models/components/chatmetadataresult.go: + id: 0829f3ffdd80 last_write_checksum: sha1:caa7890f13d410e4bde2bcb9f3e3db1f5b0d6c90 + pristine_git_object: 74a433050f298fa6c1151cfc1d7bb324dc9c4e0c tests/mockserver/internal/sdk/models/components/chatrequest.go: + id: 7667ebf5d58e last_write_checksum: sha1:7d090933c080d356c3716f23a13b2b92cdc93ee9 + pristine_git_object: af53448a653ee9067d01dbaa06b0826dd2d4a68e tests/mockserver/internal/sdk/models/components/chatresponse.go: + id: 2d1971ebf0c2 last_write_checksum: sha1:404f52f589a51a5a29671be352af2f5c41f0f844 + pristine_git_object: 2638334db56253d15c97c9df05eca730739b0e94 tests/mockserver/internal/sdk/models/components/chatrestrictionfilters.go: + id: 9f5f5c6569a9 last_write_checksum: sha1:528172b6e5a087f2f516ee7e192a7772bc1ee373 + pristine_git_object: 0be4fc510f4693a6202720bc55de76a176a593a6 tests/mockserver/internal/sdk/models/components/chatresult.go: + id: 5e9dc490a355 last_write_checksum: sha1:cd9517ac3d8399698a36005329f2cb4c8ecda78e + pristine_git_object: ca043f8a6dc214fcee2eb1cec662a41e27cdd0c8 tests/mockserver/internal/sdk/models/components/chatsuggestion.go: - last_write_checksum: sha1:7fdeb40ae9549e1c24317776d28aa65cb311d7ce + id: 33e4338b5b24 + last_write_checksum: sha1:40e54396ba6c59a5a6e92c49fd2c1a62af9d0dab + pristine_git_object: b8269ceb3de0ce38bec7ff3626ae677546e8a646 tests/mockserver/internal/sdk/models/components/chatzerostatesuggestionoptions.go: + id: a6d088eab1c2 last_write_checksum: sha1:da633547681ec1c8ef5df79cc1d2919fb3714d13 + pristine_git_object: 9c7c788a8643ed61315385b444e8f5200b632f3f tests/mockserver/internal/sdk/models/components/checkdatasourceauthresponse.go: + id: 7a4d99d005e1 last_write_checksum: sha1:e99e71069a2dee200904ebf2457ee9853b1777b4 + pristine_git_object: 978854e6f7530f628cb97471e6cde30675401c63 tests/mockserver/internal/sdk/models/components/checkdocumentaccessrequest.go: + id: 532b92facd89 last_write_checksum: sha1:4b403181de5f24bde26d022703e625a832f685c8 + pristine_git_object: 29131d83ee4a8ab4dc52b4fc0b3d936fd5a4b01c tests/mockserver/internal/sdk/models/components/checkdocumentaccessresponse.go: + id: 89f79b5dd2bf last_write_checksum: sha1:6b8aa79da2987f2e8ff4d09c2c2647956ac0f4b2 + pristine_git_object: 26a4aa74414e18df34dc540015a2492a2cded98f tests/mockserver/internal/sdk/models/components/clustergroup.go: + id: 7cf5f354c622 last_write_checksum: sha1:06d2784d37baeed45c6390b1cad197153b506116 + pristine_git_object: 4cde0d620188eb0e497ce77807a3520935472de3 tests/mockserver/internal/sdk/models/components/clustertypeenum.go: + id: 035250b9a0bc last_write_checksum: sha1:254aa5e22c9f858de509b66967c78653593c44a4 + pristine_git_object: 49fd9e3b920e05a879ffc3eb4a732932be3263bf tests/mockserver/internal/sdk/models/components/code.go: + id: c8b96967ba12 last_write_checksum: sha1:755fe66d01ea2646e3678dc99e7ce4bec00c09cc + pristine_git_object: d15f7dee56df18a1abf79a2146d0f87ba8256579 tests/mockserver/internal/sdk/models/components/codeline.go: + id: 6d84b2fc80a8 last_write_checksum: sha1:408c1ae5131cd47cd23e5d000f09b6e5abb37490 + pristine_git_object: a21a60f1d8bbd6b82dc6f023d78c475b163ce7f7 tests/mockserver/internal/sdk/models/components/collection.go: - last_write_checksum: sha1:12056f9bd68eae6ff3f19b5d3c62d03d853e9f7d + id: 1b1300b634cc + last_write_checksum: sha1:160595e0533f3727c86ea12c1dc5a40390d96096 + pristine_git_object: 7455407b4497fb92de164a445e236d0a16718428 tests/mockserver/internal/sdk/models/components/collectionerror.go: - last_write_checksum: sha1:41ffdb13b05cb13821d7c16e10d5cce4d207e533 + id: bf4ad8f69294 + last_write_checksum: sha1:af5d0f2a4ae7be15beee13a00917ea8b5fd616a9 + pristine_git_object: 2524a204688b2b3fa446f154b424e7fbb9390e8c tests/mockserver/internal/sdk/models/components/collectionitem.go: + id: 7ddb4d0b95be last_write_checksum: sha1:ad1782147347847dd4703268d9bcaeb3c2aa201b + pristine_git_object: 311aac3451af2b29814c75f090e680150d6c35ca tests/mockserver/internal/sdk/models/components/collectionitemdescriptor.go: + id: 1677e27783cc last_write_checksum: sha1:071207a5430ae8b60998225695bc4a54ac05c3dd + pristine_git_object: c52451d3b28d60ecca9151929af87f23db5facd0 tests/mockserver/internal/sdk/models/components/collectionpinmetadata.go: + id: 75a7a4577e28 last_write_checksum: sha1:f95a93c2781532a37bdd213ebbe7f302edb38355 + pristine_git_object: fee1304d55cd8ee7cd10130a706ce3faae9ff208 tests/mockserver/internal/sdk/models/components/collectionpinnablecategories.go: + id: 2a222ac31adf last_write_checksum: sha1:4f4fc15297b64b04e8fa6a7c984902054237c6b8 + pristine_git_object: 8679fde6c21c45a5196da755dc0e6dc3444663e2 tests/mockserver/internal/sdk/models/components/collectionpinnabletargets.go: + id: 02d3fcda5993 last_write_checksum: sha1:06199cde57dd43710af6ef3d23473117314ae5d6 + pristine_git_object: fdcec773b29c4a1a83936f6ac197247a2461994b tests/mockserver/internal/sdk/models/components/collectionpinnedmetadata.go: + id: aa32fb7f9c88 last_write_checksum: sha1:d120afe983d971a3c9c2199986b4b6a48298ecd0 + pristine_git_object: d0857718ac21a959b81ff1344dd562d81feac333 tests/mockserver/internal/sdk/models/components/collectionpintarget.go: + id: 56c4e501e812 last_write_checksum: sha1:54e89fe8018191f4b48fc8e248ee6f9d48575464 + pristine_git_object: 64ea09b2076af1a9dcd7eba9dab8f28d4d2d1df9 tests/mockserver/internal/sdk/models/components/commentdefinition.go: + id: 5b28603a7cad last_write_checksum: sha1:1895affb14094181113f6173464f503a3006e16c + pristine_git_object: ecdc8f1174807da65da269647e9e73a69d92ee4b tests/mockserver/internal/sdk/models/components/communicationchannel.go: + id: 3fead5e5913f last_write_checksum: sha1:fcf60c80b7a302d78a21b2c797e08dd885662f37 + pristine_git_object: 63f9dfdbba12767fa4096d2caef156ff621aabf3 tests/mockserver/internal/sdk/models/components/company.go: + id: 759814b2e499 last_write_checksum: sha1:26417a78d66849ecd21f05bf40899c5db373f39b + pristine_git_object: e92400cbaca3e7af5a183eaedb10e999abb110ff tests/mockserver/internal/sdk/models/components/conferencedata.go: + id: df397d5194fa last_write_checksum: sha1:64eabce460dc274803c7fb0b7bb45cc9d58d8463 + pristine_git_object: 04b08de564ea565f50fd0aaad778fb6f5a1e1641 tests/mockserver/internal/sdk/models/components/configurationvalue.go: + id: c907711eef41 last_write_checksum: sha1:ddbf742f0df37badaee68310779ed24a2895bc72 + pristine_git_object: f6fc21610a06a17c2db181cd32c964a2f03e1187 tests/mockserver/internal/sdk/models/components/connectortype.go: + id: aeaa1bfc3438 last_write_checksum: sha1:0e2f6006ffa974b582362f1d259dd55fdb02a00e + pristine_git_object: fcf165bb2e976e13dfa2a64900f180424434b71c tests/mockserver/internal/sdk/models/components/contentdefinition.go: + id: 38de4a2547dc last_write_checksum: sha1:b4cf0765dff149db135c123778042f2822932378 + pristine_git_object: 7be15567dbb075493369acc7d2cacfd37b28edff tests/mockserver/internal/sdk/models/components/contenttype.go: + id: 83191d8bcf2e last_write_checksum: sha1:5fd634f52b3a914081b6b39d49c5709929478756 + pristine_git_object: 6740b4e6a0daddf336ddb71a68b2cd807e7eb01a tests/mockserver/internal/sdk/models/components/countinfo.go: + id: 01d4967bffb2 last_write_checksum: sha1:3dabc59f84a7edffd5bf4b481899abeb78efeeca + pristine_git_object: 6126f60c54c9613e4ef499ac93bd2c650a719363 tests/mockserver/internal/sdk/models/components/createannouncementrequest.go: + id: e5560c1c1599 last_write_checksum: sha1:2859bd34551c6d5e8efd00bf0ea1062690be2ebb + pristine_git_object: 9a67d030bb1e376a691598e6036e5e4c9418d24c tests/mockserver/internal/sdk/models/components/createanswerrequest.go: + id: 2ae6ea7b98cc last_write_checksum: sha1:ab4f51f3c137475087c01287585f4d03eb7c7eba + pristine_git_object: e15c5837ad4f71851a1a9742036b3e50c8804bf3 tests/mockserver/internal/sdk/models/components/createauthtokenresponse.go: + id: 1bb66a64b1c5 last_write_checksum: sha1:50f97365c2a9ab267159c30868eda3212598b5f9 + pristine_git_object: eaf8d51531020f55857430e3b7c4dbd04d493411 tests/mockserver/internal/sdk/models/components/createcollectionrequest.go: + id: 3a15c1e5e019 last_write_checksum: sha1:b92eb02bc04b00980c0f7799ff0835195e1fb00b + pristine_git_object: 0c58401fe1d9f7581bf4d905c38ce43baf1565cb tests/mockserver/internal/sdk/models/components/createdlpreportrequest.go: + id: 79eb26e6c495 last_write_checksum: sha1:64659489dc959f338a10df80fb4966da0381b424 + pristine_git_object: 099d075e513d86ce811554264934669a1e51af92 tests/mockserver/internal/sdk/models/components/createdlpreportresponse.go: + id: 543d819c0148 last_write_checksum: sha1:37877a931cdf5d2b22dc4f914cc8ac9716839d0c + pristine_git_object: 9c9030bd69e578e72387502c2b7716129a30e51a tests/mockserver/internal/sdk/models/components/createshortcutrequest.go: + id: fa906172acbe last_write_checksum: sha1:b81c127e964cd3ce74ec7476fb1878d931b0d6a0 + pristine_git_object: f2502a18105f6e786c77c476c7324e42d4041f24 tests/mockserver/internal/sdk/models/components/createshortcutresponse.go: + id: c5f526844132 last_write_checksum: sha1:aa8fbfc7682edb55f79cd9e241d9795d4c8579ea + pristine_git_object: df363e8a9dfca1f872da7b286ab2cf7505b2c127 tests/mockserver/internal/sdk/models/components/currentactiveusers.go: - last_write_checksum: sha1:17848a68125b3da6593d232146557b0dc6ae144a + id: 220e7dbe04c9 + last_write_checksum: sha1:4c876d24b835be3c5975308c132a4599bc11a71a + pristine_git_object: c1398b9642555e881ef73a4fa8fe66d01ee9e8d1 tests/mockserver/internal/sdk/models/components/customdatasourceconfig.go: + id: 67f505cc5524 last_write_checksum: sha1:5cb7123d955c9782fec8f8c70570d77a0712d08d + pristine_git_object: 070e9e3590a58bb245c0569f512f2298abbbcf3b tests/mockserver/internal/sdk/models/components/customdatavalue.go: + id: 37ac657fead8 last_write_checksum: sha1:e2d63d9372dd1858f8d3524ca247d0f5a0e5db3a + pristine_git_object: a039a04fce7826be26bb8143271951f99d086cbd tests/mockserver/internal/sdk/models/components/customentity.go: + id: 4b03dc0cff05 last_write_checksum: sha1:499a0c73a5c262932eada0fb7c60abf73cac687b + pristine_git_object: d00954498ba73ab0eac0e6eca751a18314d93caa tests/mockserver/internal/sdk/models/components/customentitymetadata.go: + id: ffff7ea871a7 last_write_checksum: sha1:ceb02c640cd307663bc79a01b108d1e33cd3f29d + pristine_git_object: 53b7e48ff3c2a40780ff58ce844b3fc2d90eb2f6 tests/mockserver/internal/sdk/models/components/customer.go: + id: d4aa6b2db080 last_write_checksum: sha1:e48ee4737748b1230ad8fbc0a1b36dc1db76e3b9 + pristine_git_object: ddea90efc53c7a52a0f396f308d19ab9f9c7776e tests/mockserver/internal/sdk/models/components/customermetadata.go: + id: d199f493ee26 last_write_checksum: sha1:27aa354f35ce6797db356e6ba931a34ddedb4781 + pristine_git_object: 3171f8597a5c442ee45f1e336d3d6c4b8b8dba7c tests/mockserver/internal/sdk/models/components/customfielddata.go: + id: 87f84ee03b71 last_write_checksum: sha1:25a88f6fa490d962e517f0a7a50aa8a9a470ea33 + pristine_git_object: af92ce305dd8f77f21877bfa25e20b510a2acd2b tests/mockserver/internal/sdk/models/components/customfieldvalue.go: + id: 07e22f6b469b last_write_checksum: sha1:f3b6f65886342a9aa6971cf45aafd41af422c67a + pristine_git_object: cd2510188a282e92cc23c2f5c778210535bf03d7 tests/mockserver/internal/sdk/models/components/customfieldvaluehyperlink.go: + id: bcf2b4c82672 last_write_checksum: sha1:2fd1a6c172c9a0d1b594f5d52b80d1ceeda4cf0e + pristine_git_object: 4771e963d4385bedce6f2c568c5204e3e9729f90 tests/mockserver/internal/sdk/models/components/customfieldvalueperson.go: + id: 24f564ba1987 last_write_checksum: sha1:9475ac764cdc23a26e5f09fce60819f6700c7bae + pristine_git_object: c912739ad80e333f413aaace2e54f4de73298684 tests/mockserver/internal/sdk/models/components/customfieldvaluestr.go: + id: 72fb56c52b3c last_write_checksum: sha1:53652361319d7950efb17524252d2d0957b89df3 + pristine_git_object: e0b1416d7c363f6e26b66a75ba9fdd3a2daeefbf + tests/mockserver/internal/sdk/models/components/custommetadatapropertydefinition.go: + id: 5e8ce6fa4f47 + last_write_checksum: sha1:f88145b696024611226270dfa7026a131cc0ddf6 + pristine_git_object: e3351e45d1850b96d18ba207c081e4402e19bca7 + tests/mockserver/internal/sdk/models/components/custommetadataputrequest.go: + id: 4b064e1090fe + last_write_checksum: sha1:5b768bcc8098fc7f9f69d4ce4cf2824bdf37aa86 + pristine_git_object: fe2262c3cf4cc95fcb3211bb9651a62afd8177ed + tests/mockserver/internal/sdk/models/components/custommetadataschema.go: + id: a6e98862dea4 + last_write_checksum: sha1:44d00740a66c2203dc68a2ea3db77b0dfd1a6725 + pristine_git_object: 8f4e09bf8da911f878d402f5d818a3a5c3c5f273 tests/mockserver/internal/sdk/models/components/customproperty.go: + id: af162b871d27 last_write_checksum: sha1:09684d83735ed8c795769dd865450587db945d16 + pristine_git_object: 8dc67a970cd3e12982c85b394d6c5f3fe435ed8e tests/mockserver/internal/sdk/models/components/customsensitiveexpression.go: + id: 865e0e546bf2 last_write_checksum: sha1:734702e350fe5a9a0eccf1ebe23fe5ba88de3de5 + pristine_git_object: 4dd1f11ec826133df3c7d2a18583540d3f70b9a0 tests/mockserver/internal/sdk/models/components/customsensitiverule.go: + id: ce1826be09a6 last_write_checksum: sha1:8853db853b0b17cbdc765b9e5c6130237667d0a7 + pristine_git_object: 56e26f158a315cbf0ff505a7c914a8655cc1e1d0 tests/mockserver/internal/sdk/models/components/customsensitiveruletype.go: + id: 9296c83ea02c last_write_checksum: sha1:f30c464c189f3ca3bd09a64e0949add64287ed40 + pristine_git_object: 12b37ae02264735a29b707343536959f84043662 tests/mockserver/internal/sdk/models/components/datasourcebulkmembershipdefinition.go: + id: 8d1de8f26388 last_write_checksum: sha1:7461564626030cdc092d351d101243469e0cf16a + pristine_git_object: e7ccc6fd1f5d1afbe3d367ef657786490a1f204a tests/mockserver/internal/sdk/models/components/datasourceconfigurationresponse.go: + id: 03f72b0a23c9 last_write_checksum: sha1:0e571c4aab6d7ed0f03e2d834369353cdf4b82d3 + pristine_git_object: 0453f9ea105cf6b736d08ab4e539174518b43cc1 + tests/mockserver/internal/sdk/models/components/datasourcecredentialstatus.go: + id: 8a23c92b3ca3 + last_write_checksum: sha1:90d1b895e332bd5c6ff3c7b40ac56cb3a8bba56f + pristine_git_object: 1a8b125a7da3635da348a34669fb82232dcd10a2 + tests/mockserver/internal/sdk/models/components/datasourcecredentialstatusresponse.go: + id: f01ed4088747 + last_write_checksum: sha1:b1a2021160824873379267afaf77f2b1097e9b6f + pristine_git_object: 3195e113cabed1233cc5b0a129b2fffee959c6fd tests/mockserver/internal/sdk/models/components/datasourcegroupdefinition.go: + id: acffcce16c96 last_write_checksum: sha1:7901f25f2a1b52801631df10246ed50357d37837 + pristine_git_object: cb959e6ef61ff760efe16faf967122e1e0b6a0d6 tests/mockserver/internal/sdk/models/components/datasourceinstanceconfiguration.go: + id: f5040e556af3 last_write_checksum: sha1:f4022b1e8bf17fcaeaaf52f4cdcf1763749389c3 + pristine_git_object: 695fba51aa7dbfe6a93c78b7a72eb67c191d8c0e tests/mockserver/internal/sdk/models/components/datasourcemembershipdefinition.go: + id: b1380adbc1ca last_write_checksum: sha1:b2671c4d71318bb6c61f5c7a8b374ef7a5c3f544 + pristine_git_object: 9965fe61a0694d682f775d7a043617aa2589baf1 tests/mockserver/internal/sdk/models/components/datasourceobjecttypedocumentcountentry.go: + id: 18eea71253a5 last_write_checksum: sha1:97d644e8e267d30f40635a3f456b2d991a7f0a8a + pristine_git_object: 19bdf977e7fb5cacceba6735ce41b4c0472257e9 tests/mockserver/internal/sdk/models/components/datasourceprofile.go: + id: 9466e5b7e6a1 last_write_checksum: sha1:b5ec47931823ed13cf1dfc00ca0ace94f6830c9c + pristine_git_object: bbc72cbc1aff922b3ca175fed0636da5de38431b tests/mockserver/internal/sdk/models/components/datasourceuserdefinition.go: + id: cd2548564bad last_write_checksum: sha1:b78b44709c03e35ac0448926c417f7c8c90cf296 + pristine_git_object: d1431db74efa331f93ce3418f183389383647efb tests/mockserver/internal/sdk/models/components/debugdatasourcestatusidentityresponsecomponent.go: + id: 9f9758373d27 last_write_checksum: sha1:f6f3c52b7b1a6be8ee1c0ca86ebd6f97ba4f136a + pristine_git_object: 1eeda8b600613d729201021a64796aec9d5f0a24 tests/mockserver/internal/sdk/models/components/debugdatasourcestatusresponse.go: + id: 970f8d3b95cf last_write_checksum: sha1:0a49cda4545fbe83a365f0d35e47fe3f4aa86247 + pristine_git_object: 2b4c0aa4018697a3f857c54865e6ba06bdd195b1 + tests/mockserver/internal/sdk/models/components/debugdocumentlifecyclerequest.go: + id: 4c80e9a2ff60 + last_write_checksum: sha1:af5b062925d5b00f4e54c32f3634b4ba2ac8cb47 + pristine_git_object: 93255bb0197267ec61bf7f6ed588b916cb47f1a5 + tests/mockserver/internal/sdk/models/components/debugdocumentlifecycleresponse.go: + id: f7f756c77570 + last_write_checksum: sha1:d8c90e229ff15d6e0f26890d80d2cb40473405ba + pristine_git_object: 343802ed97f96c5a9fa42fcfa821ba61e9bb2b22 tests/mockserver/internal/sdk/models/components/debugdocumentrequest.go: + id: 5243523a710f last_write_checksum: sha1:5b299213bc4d94dcdbc7d20bd106eeb11b127f4c + pristine_git_object: 2ccad29a3009ff00fe777702a23f2bcb4dd741db tests/mockserver/internal/sdk/models/components/debugdocumentresponse.go: + id: 9cbbd1e75275 last_write_checksum: sha1:b3ad2fc81ba9ef47cc599d712303cbe5de9621df + pristine_git_object: 12fcd5cdfb498bb75347c15abf40c475df45580a tests/mockserver/internal/sdk/models/components/debugdocumentsrequest.go: + id: 9f03c01931e0 last_write_checksum: sha1:f92ee30ec11e9f29fe19aa01171073d6c5225432 + pristine_git_object: 545ba853cb059a86b232eb086313d9c8723ecabf tests/mockserver/internal/sdk/models/components/debugdocumentsresponse.go: + id: 9b471d742907 last_write_checksum: sha1:37d96de42a3f2af807904681b821314ddf4190d5 + pristine_git_object: b813fdd33ec1ab2b8e7d674242ff4321995a6301 tests/mockserver/internal/sdk/models/components/debugdocumentsresponseitem.go: + id: 3ca87f52b128 last_write_checksum: sha1:4c666925801fd3dd3eade7ff1675dd86196aeb82 + pristine_git_object: 47e26f9436ae958efb835fd6f68e117c14552369 tests/mockserver/internal/sdk/models/components/debuguserrequest.go: + id: 4ff83091dcc0 last_write_checksum: sha1:32c6a165ab1ad3c737e57375269f5bd3d079b30c + pristine_git_object: fe3f914ae8536ee75cf5aa278bb5c5ec59bf05fe tests/mockserver/internal/sdk/models/components/debuguserresponse.go: + id: e9fb6a371a9b last_write_checksum: sha1:148dfbed73ee981236cebddd846a191673c8d5ee + pristine_git_object: 3f6cca7c29ac6af60e41557ea5ae07e232b46011 tests/mockserver/internal/sdk/models/components/deleteannouncementrequest.go: + id: 94d40088dd66 last_write_checksum: sha1:780ce18a53f1e123f357f4fda539b61a3cb61c81 + pristine_git_object: 15d931ea8ce07d1914deda58341e7757be9a662d tests/mockserver/internal/sdk/models/components/deleteanswerrequest.go: + id: c92b38c5cefd last_write_checksum: sha1:d267f3c4d58569da713281590ace9c15eab05908 + pristine_git_object: 0ee5ee6974273a03ca41e2c5fe9fa8b9ebaaac93 tests/mockserver/internal/sdk/models/components/deletechatfilesrequest.go: + id: 05c4630ca547 last_write_checksum: sha1:59d57ebef07b958df322dfeb409555a8c5d6b858 + pristine_git_object: e955ca766573eb94195c825b3651df2820646e52 tests/mockserver/internal/sdk/models/components/deletechatsrequest.go: + id: 66e1afc7de8e last_write_checksum: sha1:ebf1d94f5a7e6a346b76b411cc9090126a83393e + pristine_git_object: 2f0acbf368b1bf40507e4bda5d65593c94527576 tests/mockserver/internal/sdk/models/components/deletecollectionitemrequest.go: + id: 95c2d2b7083d last_write_checksum: sha1:16ddeb870f9e59d4d5c216278f91ea2971972eea + pristine_git_object: 768919fce01a41c1f8c59f421b3fee98acea0969 tests/mockserver/internal/sdk/models/components/deletecollectionitemresponse.go: + id: 7aff6cfc2256 last_write_checksum: sha1:2718796251b9a64d8d5895cb081845779e2a6499 + pristine_git_object: 94f10397eb0eb50c17e543dceacfd4f81a7e8d9c tests/mockserver/internal/sdk/models/components/deletecollectionrequest.go: + id: f76b1b052276 last_write_checksum: sha1:f840c7f00fae799c649f55e4a073f3885ad26901 + pristine_git_object: a3460a0a36e32f31d504be8526c17626b5183bbb tests/mockserver/internal/sdk/models/components/deletedocumentrequest.go: + id: ef0eddb1a111 last_write_checksum: sha1:9fde9bd0cc1f039ef4cab2c8273c8b912f1ea7ad + pristine_git_object: e103c1c4fbff5fbfd025a66060fecdf8c8bb66a1 tests/mockserver/internal/sdk/models/components/deleteemployeerequest.go: + id: cfb52607f421 last_write_checksum: sha1:21b362c6000f63ed78141fe5dc1035dc68ab523d + pristine_git_object: 0e582507ce3fb06ce271d16341b1c37fb1c7ec7c tests/mockserver/internal/sdk/models/components/deletegrouprequest.go: + id: 5f48bf9b3d13 last_write_checksum: sha1:8dffc9e1d3a59e33856045fb9ce650c1a359122f + pristine_git_object: 4c6a7310becb5642c05df582f973232cbbe0aa68 tests/mockserver/internal/sdk/models/components/deletemembershiprequest.go: + id: f3d6f38c28e0 last_write_checksum: sha1:002e68995698fc4147692d600f273595bbe6f841 + pristine_git_object: ed2ab708baf4353a4dd20e09e9480dcd4a3ed559 tests/mockserver/internal/sdk/models/components/deleteshortcutrequest.go: + id: e0573a376193 last_write_checksum: sha1:fe08c76f01ddb8054bd31265f326b82e58900719 + pristine_git_object: 440f2958119871590f4efa655587a4a8ec9e3a25 tests/mockserver/internal/sdk/models/components/deleteteamrequest.go: + id: a6592ec6c53b last_write_checksum: sha1:ea149687e6cee100c4463ef1ec50f89433d86027 + pristine_git_object: 7d877567a2c98532e94985e2d64cf9977e6c34f5 tests/mockserver/internal/sdk/models/components/deleteuserrequest.go: + id: e2d5f97616cb last_write_checksum: sha1:f3b9191bee3cc9e8ccf5aca3058e6426213977a7 + pristine_git_object: 9e4340136b3e13590d96409a5269184a8f53c428 tests/mockserver/internal/sdk/models/components/digest.go: + id: b99e7835ab47 last_write_checksum: sha1:db77f02c205817d89f694b94d89a9073dac79f05 + pristine_git_object: 5cbcb5608dabeee367814be9fa33dab8a4ae6353 tests/mockserver/internal/sdk/models/components/digestsection.go: + id: e5f6a11004bf last_write_checksum: sha1:96eb31c72cfd99fd7523e299e18106f6c94aaa01 + pristine_git_object: e316597e5b965518444082654dd2607cfc825d0c tests/mockserver/internal/sdk/models/components/digestupdate.go: + id: ec8318cb77ed last_write_checksum: sha1:3191c55acf305d1eb99495b4bab2cf041ed9ab18 + pristine_git_object: e024d4cf4184a36421b50c3d56c2def72739bb66 tests/mockserver/internal/sdk/models/components/disambiguation.go: + id: 4bcd8b12a7f9 last_write_checksum: sha1:f7e4592e67d8f64c9ce48bc9b05114e4a7132acf + pristine_git_object: 200e9abb61c1b43627985387fb01a24d9c47613d tests/mockserver/internal/sdk/models/components/displayablelistitemuiconfig.go: + id: 15ca976c04d7 last_write_checksum: sha1:5baf3601041f5f2983878313b65994996440f4e5 + pristine_git_object: a0e605281d1c6bfa56c6ee88f2dfceff7b144e93 tests/mockserver/internal/sdk/models/components/dlpconfig.go: + id: dd310c689385 last_write_checksum: sha1:d7f7202ea98f70853dbe57afbbf046a63a59f8d0 + pristine_git_object: 04c23aebfc11d653007748a5653bfe742e2fe962 tests/mockserver/internal/sdk/models/components/dlpexportfindingsrequest.go: + id: 5edd4787e726 last_write_checksum: sha1:a6fa9927945d74ba513e8299c8102f5f4545c2ab + pristine_git_object: 77fdbe9636ede5978c6c82e5a54e2d0c062a99b0 tests/mockserver/internal/sdk/models/components/dlpfindingfilter.go: + id: a7d6016908e6 last_write_checksum: sha1:3a7776befd51d54ad43802b3e808bed01f7ceb31 + pristine_git_object: f04989270a40d3385eafd74542aef8a5ab2dd3d0 tests/mockserver/internal/sdk/models/components/dlpfrequency.go: + id: 0e58077c7ce5 last_write_checksum: sha1:a43530a5536fc8d7e9e059f9256acb659e57f636 + pristine_git_object: 7c8f72b35ad02260a6a8740db8595cd4cf69edaf tests/mockserver/internal/sdk/models/components/dlpissuefilter.go: + id: 8533f64d6a9f last_write_checksum: sha1:f36da04b86943e0b5b381b30ad96a3169a5be43d + pristine_git_object: 484c2a99fe68b47faaf7677c3d67a4eeb7723910 tests/mockserver/internal/sdk/models/components/dlpissuestatus.go: + id: 2ebd743825ad last_write_checksum: sha1:f1df49753a10f9d160ba746f973a2b37f0c32dc6 + pristine_git_object: 24c291ec230b006ece1d2c28db85b31d68d5f2e6 tests/mockserver/internal/sdk/models/components/dlpperson.go: + id: 9cebf9b832af last_write_checksum: sha1:1785c4783dc2b945ce8e03dc64650e7b69a7ea89 + pristine_git_object: 1bcd022f985b4ab84666d9638ca7357bddc3aa34 tests/mockserver/internal/sdk/models/components/dlppersonmetadata.go: + id: f736630cd4eb last_write_checksum: sha1:f095e27f42403ff319f5a83f6a65e7ae723d54a9 + pristine_git_object: 5baf03bbbb6411c516eccbbe02e432f19d72ba65 tests/mockserver/internal/sdk/models/components/dlpreport.go: + id: 09072c04f05d last_write_checksum: sha1:5d99fcf5ed5cc0d0dd50f166c2a5b80d52c70b12 + pristine_git_object: 8e6ccffcb89a4d48defc5d68d6a8f6f74dcc0a1d tests/mockserver/internal/sdk/models/components/dlpreportstatus.go: + id: 637580c9d3b7 last_write_checksum: sha1:e6d909d5c50c95004c7068caaef92554c2976af9 + pristine_git_object: 6c4ea46f5822a3783a2349fc90b37b0659a0a647 tests/mockserver/internal/sdk/models/components/dlpseverity.go: + id: 6226aa236cbd last_write_checksum: sha1:e04497e3bb7699f8686daee91fd4a37f9a646ceb + pristine_git_object: a0c021992d357a7e1b9573aa6f497cf6ce27a497 tests/mockserver/internal/sdk/models/components/dlpsimpleresult.go: + id: 9c8ef716150c last_write_checksum: sha1:7e58ca80e00935371b714da76574b40b5502660e + pristine_git_object: f75e74547d443e3935bcad1e400597e917c6b226 tests/mockserver/internal/sdk/models/components/document.go: + id: c26c1064cced last_write_checksum: sha1:68f52179e0510e8cdb6430b6acb085daf861c066 + pristine_git_object: e72ffed1aa466689e27a59293a3c7094482d2832 tests/mockserver/internal/sdk/models/components/documentcontent.go: + id: 9717a5e42d61 last_write_checksum: sha1:17906e5b05e5396940805846f250c7c4b91a1bb9 + pristine_git_object: e2a735c94c6155d8c70c8f5cdc5ee02bfe2c1bc5 tests/mockserver/internal/sdk/models/components/documentdefinition.go: + id: 04583e985c05 last_write_checksum: sha1:93c3d873dc6abfe6635cc10f544126aa75ff5a27 + pristine_git_object: 41db731fbfef55fd7064754a57bd6bc881e20e5b tests/mockserver/internal/sdk/models/components/documentinteractions.go: + id: c30c722fc3f1 last_write_checksum: sha1:5e29169410c2971f57b96b24ea4fad8b6437b79e + pristine_git_object: 5b5e215d349d0d0df694f960e610949227d1a38b tests/mockserver/internal/sdk/models/components/documentinteractionsdefinition.go: + id: fb72ffa96d85 last_write_checksum: sha1:b34825743a5a76d8b6a521b6bcbaf37a5ef18d44 + pristine_git_object: f49af72287011fb4cd8b775715db47c8b564c45a tests/mockserver/internal/sdk/models/components/documentmetadata.go: + id: 1b351424b44f last_write_checksum: sha1:9a87a468e565ac6e140a2ea62ba94c64f3f9189e + pristine_git_object: b4e0fd2e5c2a0dd356332522e93ff7c47b18cfef tests/mockserver/internal/sdk/models/components/documentorerrorunion.go: + id: 0e42a8f964b2 last_write_checksum: sha1:77be00f650cba6ffe9e11fcefc1d260a1c8abad9 + pristine_git_object: 55824d3df8134b04451a4b85898a6f3ac4e5c9a6 tests/mockserver/internal/sdk/models/components/documentpermissionsdefinition.go: + id: d6093d2a21d0 last_write_checksum: sha1:a13ae34b46d3968eab57cb6bba41b5423dbef5ff + pristine_git_object: 75459197a5cf5b0a8c1f4b6e8aee1ec00a104327 tests/mockserver/internal/sdk/models/components/documentsection.go: + id: c27979e0fb9a last_write_checksum: sha1:a783c3824736e1d092b4d05621470c1c9b19c115 + pristine_git_object: ef97fcb46524355a764ed6fe1df8c25361505bb2 tests/mockserver/internal/sdk/models/components/documentspecunion.go: + id: 398b265d077e last_write_checksum: sha1:9133128f54aef85e913a9a4dfd2b49d8630b9b3b + pristine_git_object: 87e6ac591c9b1de998437a0ed0f68c29e7c201b6 tests/mockserver/internal/sdk/models/components/documentstatusresponse.go: + id: 6fd1515e4332 last_write_checksum: sha1:a2ff6be811eb7e72cf0b690192d94472f4d6a6ca + pristine_git_object: 72007844b6da5c9ac63e9c313e161120346112e8 tests/mockserver/internal/sdk/models/components/documentvisibility.go: + id: ddacde028f51 last_write_checksum: sha1:e23271efe678e0cedec27c3525d6bfa8239a83d2 + pristine_git_object: 3d7e72b7ce0dfaebe14616a9c4ec5fd130031bef tests/mockserver/internal/sdk/models/components/documentvisibilityoverride.go: + id: b75ca408e895 last_write_checksum: sha1:d0bfe777b8bc55ce52eeb52b3837339b853635d1 + pristine_git_object: 5d424357f8bf8349f48612ebefb3158f501306e5 tests/mockserver/internal/sdk/models/components/documentvisibilityupdateresult.go: + id: 617a9e11c523 last_write_checksum: sha1:07c2a1b865161fa6e8ab0766f1c71096c4de3c31 + pristine_git_object: 5b76ae892935453375a5e85e9169f0ab334e45b7 tests/mockserver/internal/sdk/models/components/editanswerrequest.go: + id: ef593ce11a15 last_write_checksum: sha1:ac6f489fb01360867c1dbd9f23094c9727d4e8b6 + pristine_git_object: c11ee20339dc1ced7050fb7de4400050630f7660 tests/mockserver/internal/sdk/models/components/editcollectionitemrequest.go: + id: 89566231dc02 last_write_checksum: sha1:2e8f54fc9dab1089b7ee8d2187650e7ff143e655 + pristine_git_object: d43b56a759b7d1d4d2cfb99fec4eade71651f60c tests/mockserver/internal/sdk/models/components/editcollectionitemresponse.go: + id: a14bd3096b96 last_write_checksum: sha1:66e4c98106692f44edaaeb3d012613bb3f47edef + pristine_git_object: 2d6a42bf1ee333a7799ce9d436bd45d1816264f6 tests/mockserver/internal/sdk/models/components/editcollectionrequest.go: + id: 52b22058e8b8 last_write_checksum: sha1:f201e2c36501bd5765225de622e8be83bb73296a + pristine_git_object: ed60e37353a7e55eaf3e7bfb124f7221a9f575e3 tests/mockserver/internal/sdk/models/components/editcollectionresponse.go: - last_write_checksum: sha1:5be12d63cd7d11c81ebe23f7bf1a43d41bfc7e38 + id: e293dec7d21e + last_write_checksum: sha1:1b50a116c74acbe6f304f4541d3741669923d707 + pristine_git_object: 63c1ab5a6f4562f4c54d69851e409c3f3955d215 tests/mockserver/internal/sdk/models/components/editpinrequest.go: + id: ea4364f07630 last_write_checksum: sha1:fb86074a6869523e05e6e3ac02f08da3ee21dc5b + pristine_git_object: ab648e15b9b9ee0d2128b090ea0df231034513ba + tests/mockserver/internal/sdk/models/components/editworkflowrequest.go: + id: 881495edddc9 + last_write_checksum: sha1:619a1ec45aaf5de635c7e5b8c5afe3feb50c1940 + pristine_git_object: 4c803a250c6e5a5afaa139ebc5b1b8fd37daadde tests/mockserver/internal/sdk/models/components/employeeinfodefinition.go: + id: fbaa8ee8c119 last_write_checksum: sha1:f1eeb77d277fe939ed396f91341bed042c3e07e5 + pristine_git_object: 7af253a72c82f5a320d0f61ff1615e202f10f335 tests/mockserver/internal/sdk/models/components/employeeteaminfo.go: + id: 2fe19184bfda last_write_checksum: sha1:acbee379004f40aa60888bc81edc9d416d1baffe + pristine_git_object: dd50fe0e6a560db563544364a64dc1325074c092 tests/mockserver/internal/sdk/models/components/entitiessortorder.go: + id: 2eeebdbe620a last_write_checksum: sha1:990a1f3c9b87bc94767226bc60439e53358cebf3 + pristine_git_object: 6888c12957210c824f5c21f88054d5645000dea9 tests/mockserver/internal/sdk/models/components/entityrelationship.go: + id: 4de4ac65359b last_write_checksum: sha1:ee82d5742816958c738513bbbcd1423f90bdfb48 + pristine_git_object: fee77670a8402d718faabd3017b5ecb9fa1715b7 tests/mockserver/internal/sdk/models/components/entitytype.go: + id: 9060f3b7caa7 last_write_checksum: sha1:35d9e50d9e3ae6cc0606336c4111ee2069841b16 + pristine_git_object: 18fae8c8580fd0dd5275dcc236f4785a789eed48 tests/mockserver/internal/sdk/models/components/errormessage.go: + id: 7022277f8964 last_write_checksum: sha1:90a517fa4644b2e21c6e6988f8b0f8b9bb1258ad + pristine_git_object: 053c085ddb70d9c44eb0aa6eaa858cf664ce1929 tests/mockserver/internal/sdk/models/components/eventclassification.go: + id: 8e1096478966 last_write_checksum: sha1:e6ca7a7dc493bd2aff48e5bea5a7c6b05f7b8d72 + pristine_git_object: 99367087743943272c027c05175f8bfb7dfda1f7 tests/mockserver/internal/sdk/models/components/eventclassificationname.go: + id: 7c7fe93fd5c3 last_write_checksum: sha1:d633b455eeec4ce27e9768cd2359bfea86c9ca54 + pristine_git_object: 2971f669bfe49be78d840c3582918fcfd1800ae9 tests/mockserver/internal/sdk/models/components/eventstrategyname.go: + id: 229a30571f27 last_write_checksum: sha1:acecfa3fb469871561d21b30275631ced4a4a11c + pristine_git_object: fbbce772f49968e62aa68d8f08892b07ec562d09 tests/mockserver/internal/sdk/models/components/exportinfo.go: + id: 51e766b5fff0 last_write_checksum: sha1:aa247f4086aa7f07a7342a5478116adea95ad8a2 + pristine_git_object: 74fb0752d264528a1dc73a79aaae50c3aa1e4c1b tests/mockserver/internal/sdk/models/components/externalsharingoptions.go: + id: f29dbf8904d7 last_write_checksum: sha1:129d60a6464700de75963f0f71ce88c5cde095f2 + pristine_git_object: ef958664c532332d25e40edd6ca9268f7b17f9ac tests/mockserver/internal/sdk/models/components/externalshortcut.go: + id: b57c5d5ada81 last_write_checksum: sha1:27091d0f8a0eae838f932ebf44cd0d5eedf9acd2 + pristine_git_object: 24eee6191112929c5d7ef8e50177ca3890643791 tests/mockserver/internal/sdk/models/components/extractedqna.go: + id: 63893d64b799 last_write_checksum: sha1:97534c9bce555c42979be48fa92b7916dc9a35d9 + pristine_git_object: 6de2c2b322e5c71c4c039e2f2132470cbe3f2e84 tests/mockserver/internal/sdk/models/components/facetbucket.go: + id: fd8945826f26 last_write_checksum: sha1:587d68bdbb82adaafb7be60c18e65aa428f49818 + pristine_git_object: bc1861d260dd9f54864be0b29e2643c18809fe5a tests/mockserver/internal/sdk/models/components/facetbucketfilter.go: + id: 4c63af1c98a7 last_write_checksum: sha1:c2455048f1c574f6c33ba86110f78fbae7a11a7f + pristine_git_object: eafb07db80d0741afeb708ec66ab6f15544536f4 tests/mockserver/internal/sdk/models/components/facetfilter.go: + id: 89bf8563aaa3 last_write_checksum: sha1:b387ab4950abe21a246b5d4f36f126147fefa6bb + pristine_git_object: 2d9764bf2f8aaae39ac6728c220e423dfa63cca0 tests/mockserver/internal/sdk/models/components/facetfilterset.go: + id: 4d4dcd36986a last_write_checksum: sha1:6a7c1068dca4aa32c440398c5755f94834859c40 + pristine_git_object: d643343537ab5a63ba4ceeafebac55307c10af24 tests/mockserver/internal/sdk/models/components/facetfiltervalue.go: + id: cdd19bf9c98f last_write_checksum: sha1:d59e535246c7d9b5d43ef7542bfc9c599c9322d8 + pristine_git_object: 6fa0e3a32601787c6ed3abd7ada628f46b76b7d2 tests/mockserver/internal/sdk/models/components/facetresult.go: + id: a68fb0fafcc4 last_write_checksum: sha1:700eafec2b5b7a550913114c69dc43fa1acf6826 + pristine_git_object: a9ad79baf30d1b8133013a89dfe63cab292eb0bc tests/mockserver/internal/sdk/models/components/facetvalue.go: + id: 3439da3de729 last_write_checksum: sha1:80fefa2d8bf74a81c1fa8aadd8065a00784a169d + pristine_git_object: e720e4a745d910bac28dce39071eca3bbc0e4a82 tests/mockserver/internal/sdk/models/components/favoriteinfo.go: + id: 30a0d7c34a6d last_write_checksum: sha1:64a199091535bec155fa46cd3022c50574f8e329 + pristine_git_object: 7e46f018b963eb4d48c9aaa6e436be9e8468e90a tests/mockserver/internal/sdk/models/components/feedback.go: - last_write_checksum: sha1:0ace13f3aea5502c4b169f1ea633d10c7b791d56 + id: 2f1e4a5ed682 + last_write_checksum: sha1:eefb62b24dcb02a447ac81ccabafe6de3fbc6a94 + pristine_git_object: c89a1ce6d7def85a9ed928b5d2071ba568bc84f1 tests/mockserver/internal/sdk/models/components/feedbackchatexchange.go: + id: ea5fdc1794cd last_write_checksum: sha1:59418d4b2dc683c810308022eade51a8894ab3b0 + pristine_git_object: 04cc3a93272ac70933b0485bee31b335e05ab623 tests/mockserver/internal/sdk/models/components/feedentry.go: - last_write_checksum: sha1:a99ce1279f66a52476d400921e69d37abed2c283 + id: d25fd66fcf7a + last_write_checksum: sha1:802c3c827ceab5ea012ccb4cfdfb41c059a57533 + pristine_git_object: 1274083a6813ebf47b3f6bf587e397bf12b904ff tests/mockserver/internal/sdk/models/components/feedrequest.go: - last_write_checksum: sha1:ee94cd67bcfc3881a07dded1fa906f058e5bc82c + id: b06bc4cef0cf + last_write_checksum: sha1:e3e5205728c55eb2beef947db9c45670f2ef73af + pristine_git_object: 7c94e4641e1f167be444e87014e6f9de15b649f2 tests/mockserver/internal/sdk/models/components/feedrequestoptions.go: + id: fd9245fe1bf2 last_write_checksum: sha1:fa30b7fd6ee3e45896d7bbe36e33e7c0cb9000ba + pristine_git_object: 7a1d1f2e7259890e51d6b020d07b2e98f38603e0 tests/mockserver/internal/sdk/models/components/feedresponse.go: + id: cebfff750545 last_write_checksum: sha1:f6f77be921621cf1a133463043fc1871533e2e22 + pristine_git_object: 54f9d1a8997983156c84e69f888c59a80d06c2b1 tests/mockserver/internal/sdk/models/components/feedresult.go: - last_write_checksum: sha1:aca6ac6c9624912587232ca30b5fd4997b865c30 + id: 47411573e67a + last_write_checksum: sha1:dec3c7bf47204e5399fe5b1863ac96134a1a43ec + pristine_git_object: ddd4f095be90f403aac41127aa170c46c75cebd3 tests/mockserver/internal/sdk/models/components/followupaction.go: + id: 38179fec19b1 last_write_checksum: sha1:32a31f7af77a58ce6f3284e8550d01fcf0d3bddd + pristine_git_object: 4a4197d838d2696f9a9bba8bebc9908ce4337c52 tests/mockserver/internal/sdk/models/components/generatedattachment.go: + id: 1971637f36e3 last_write_checksum: sha1:1a1159642e757f0f2e8a6f40489e89c14ae6141c + pristine_git_object: 0e418f080d3e4abd217bdc17c0cc6da71e27a248 tests/mockserver/internal/sdk/models/components/generatedattachmentcontent.go: + id: 509a7fb5ca9c last_write_checksum: sha1:3ad2418dfb7350cb752aa63896e09bc48c937ab1 + pristine_git_object: 5b1366c1688c1522c68d9b64aa87af628def09e6 tests/mockserver/internal/sdk/models/components/generatedqna.go: + id: ed97b38f710c last_write_checksum: sha1:ac6036d26e9b7fd66fc656d8fc4fe3fa913166b9 + pristine_git_object: 4bcd892cff45c28f89e18cd226af12fe07badd1d tests/mockserver/internal/sdk/models/components/getanswererror.go: + id: 7677c4d86aa2 last_write_checksum: sha1:5ef22ec08b1354a87fe81543b108c02f5a8f4f08 + pristine_git_object: 76937f9b4ce2ffd77fb225fddf77e5ae9e16342c tests/mockserver/internal/sdk/models/components/getanswerrequest.go: + id: b548a549496f last_write_checksum: sha1:8348eb0e9bfaba8f2d28637c5ab21bb1367de135 + pristine_git_object: 2f1611b97e5651a8d1ffd669b4db59d756d40325 tests/mockserver/internal/sdk/models/components/getanswerresponse.go: + id: e5966e71a445 last_write_checksum: sha1:3e279bc55976d949c30dbf6fb095f5cc562532aa + pristine_git_object: 0272f33027192b3242d73e907505a32af6a39a09 tests/mockserver/internal/sdk/models/components/getchatapplicationrequest.go: + id: 5428a97a4e4d last_write_checksum: sha1:a9a46fca987ca8a0796a3523d51ef9096793bd57 + pristine_git_object: ed309bf7dcc9bddc982e5779b25423457f5e7dfd tests/mockserver/internal/sdk/models/components/getchatapplicationresponse.go: + id: 584d1aa84068 last_write_checksum: sha1:14be03943ee96d4fa38258e0992dec05e058becf + pristine_git_object: e55f9694f260f5fcd80751ebc807801b8ee77cf6 tests/mockserver/internal/sdk/models/components/getchatfilesrequest.go: + id: b9cfe6efd9a0 last_write_checksum: sha1:cf51f4d67c81a221512b968cd2d8c6d5b2034c89 + pristine_git_object: 01e36cf0e396d5817c067c63d5f57f92e6ac4d91 tests/mockserver/internal/sdk/models/components/getchatfilesresponse.go: + id: 2b19d63b5462 last_write_checksum: sha1:b3186c85a7348b4811a4fa4022285b04bfd72b09 + pristine_git_object: 1148537a6423a3e79803fb7696ff5ad6b3089a82 tests/mockserver/internal/sdk/models/components/getchatrequest.go: + id: ea6a626275ff last_write_checksum: sha1:f89489d8e44dffd154b58b147ef5d6c38b5a1995 + pristine_git_object: 82118136e30cef6f85142afba2d3761300bb837a tests/mockserver/internal/sdk/models/components/getchatresponse.go: + id: 6d5eaf6d4f9f last_write_checksum: sha1:0b1cbc001dbe7ed91d4ea00de86b6940fe7b8cf0 + pristine_git_object: 88ac7a9577cb5b685830b17b728883ee1ba1d31f tests/mockserver/internal/sdk/models/components/getcollectionrequest.go: + id: 95dffbbabe20 last_write_checksum: sha1:f4213443c174441aca4924c764bb5bdf9d500653 + pristine_git_object: 89a1e14b6a8072b21eaedfb6ea909740eada8b32 tests/mockserver/internal/sdk/models/components/getcollectionresponse.go: - last_write_checksum: sha1:0839c84f2a8111d9d66a65c1d736fb2092d48822 + id: 8098a889e514 + last_write_checksum: sha1:a016fa2a8c1668cd2a9e37bd4b461e48cee61bf4 + pristine_git_object: e02580ca73b2dbbb980477c7f39d4c1cd40f74dd tests/mockserver/internal/sdk/models/components/getdatasourceconfigrequest.go: + id: 290fa2e460f7 last_write_checksum: sha1:8c4922eef911b0ac609b55bb3db3b20ad4dae298 + pristine_git_object: 61fa0d59951bd64d534b9c1d9d5efd7189d19b0d tests/mockserver/internal/sdk/models/components/getdlpreportresponse.go: + id: 1b8fed52da90 last_write_checksum: sha1:2295b89c5825b9bb77bd6a922658383856738f6a + pristine_git_object: 275dbf8c17bfe30f4b14f3dd08c5af2c23217aad tests/mockserver/internal/sdk/models/components/getdocpermissionsrequest.go: + id: 1cc53e7f7fc2 last_write_checksum: sha1:0bd25f29756a5492e4325aa9a6bde8d8ee00f125 + pristine_git_object: 05b37eac5639f9c6dffdf78d2a1d4221bd8729cf tests/mockserver/internal/sdk/models/components/getdocpermissionsresponse.go: + id: c640bba5be3e last_write_checksum: sha1:b8c67f3b9256322fbb744c09fdc46b5adece2c49 + pristine_git_object: 8e244e1423ceb5f38e76e451abd2655c3df1a18e tests/mockserver/internal/sdk/models/components/getdocumentcountrequest.go: + id: b49deafc8e5b last_write_checksum: sha1:1e9cef725ed386a02de9affbc9799e58dda94ddf + pristine_git_object: a0961331bf95b374fa301b0b497a4472df8513ac tests/mockserver/internal/sdk/models/components/getdocumentcountresponse.go: + id: e577b13c2ac8 last_write_checksum: sha1:7e63afe85b5865ddfa9a97662eca078ba5f62a25 + pristine_git_object: 1691776fa554378d6585588a5fe24da1a050537a tests/mockserver/internal/sdk/models/components/getdocumentsbyfacetsrequest.go: + id: 976bab028e6c last_write_checksum: sha1:8f36841ddbbbfea62c86ba29b2eb8d07a9e88c43 + pristine_git_object: 62e8ccc0f0ae9bd8ebe36b3c6910808b35d34971 tests/mockserver/internal/sdk/models/components/getdocumentsbyfacetsresponse.go: + id: 84a22fd76dfc last_write_checksum: sha1:14b5f51e476f1a1e61fb2bd26dec5c4b867d772a + pristine_git_object: 74a0f90f4843fcf597484c996d3c8448a647c5f8 tests/mockserver/internal/sdk/models/components/getdocumentsrequest.go: + id: 4baa7e3fe63e last_write_checksum: sha1:5f903088fa4591d857d3db75efec9b9366b79b9b + pristine_git_object: 6a2ecf4f0c462566b96b50e0f998dca94b94a377 tests/mockserver/internal/sdk/models/components/getdocumentsresponse.go: + id: c20fade23f9f last_write_checksum: sha1:e7ff263610b7a3ca1bc0c2830eaa015a9411bad9 + pristine_git_object: f19405631647564e74e1f5fde2f8de8a40745158 tests/mockserver/internal/sdk/models/components/getdocumentstatusrequest.go: + id: b2b6abd734af last_write_checksum: sha1:43fbfe4c484b2f7472a4551b8d5569b1e964473b + pristine_git_object: a16e6e7288d9679578e5deec888aa0c986249364 tests/mockserver/internal/sdk/models/components/getdocumentstatusresponse.go: + id: 9c96dbcb4b1d last_write_checksum: sha1:0c07570aeb2efd8d46349fba324e727a2335cb24 + pristine_git_object: b87bd528ea71c5e622fc7918668cbcdfbf2a9e22 tests/mockserver/internal/sdk/models/components/getdocumentvisibilityoverridesresponse.go: + id: 0403e5dad2ce last_write_checksum: sha1:9fdc2fece17abeefc931fa5addbac327e0e41563 + pristine_git_object: 5bd08e1472ed414258ed660cc95c34079356f545 tests/mockserver/internal/sdk/models/components/getpinrequest.go: + id: f7d5082f4559 last_write_checksum: sha1:2d34974baea66744068b6689e162664d334b73bd + pristine_git_object: f126af9cd8096ddfe866038a6164a06205745ed6 tests/mockserver/internal/sdk/models/components/getpinresponse.go: + id: 741f324fb227 last_write_checksum: sha1:8b89dbc0109895df7c98e39fb265632f229b7c03 + pristine_git_object: e6eb59d7b55b069863bb99fb343773253e7ad7d6 tests/mockserver/internal/sdk/models/components/getshortcutrequestunion.go: + id: 859ee5742266 last_write_checksum: sha1:49d8ffca440b15a9d2d9d71edb76f9600411af00 + pristine_git_object: cb0491ccf1682666779718e8ccf793331db59236 tests/mockserver/internal/sdk/models/components/getshortcutresponse.go: + id: 8714342c1e85 last_write_checksum: sha1:e43ee452f198284652e411a80c4d266f996e932f + pristine_git_object: 4e6db38c5a14355dfe3ba44005fc08511b5f0221 tests/mockserver/internal/sdk/models/components/getusercountrequest.go: + id: ed5ddc2f4a27 last_write_checksum: sha1:6722feed0a31a6b9a2c6066b7e194c24ebd61201 + pristine_git_object: c86badbe178a8349c1e8b413df9a822e9ee63c00 tests/mockserver/internal/sdk/models/components/getusercountresponse.go: + id: ab7de2163097 last_write_checksum: sha1:06f934d64d00650da28d814dd49645772dbe79e3 + pristine_git_object: 49761b93bf5fb960a974d114467524b7834c0bea tests/mockserver/internal/sdk/models/components/gleanassistinsightsresponse.go: + id: 4f4987f9f125 last_write_checksum: sha1:5b8a4fdefd05ed9e53cbee94c32b0a428175ad22 + pristine_git_object: 9bc58150c3098a1d5c6ec5fcd3495306311e264b tests/mockserver/internal/sdk/models/components/gleandataerror.go: + id: 4b6d01166c72 last_write_checksum: sha1:fa6d4a5917a90f72a97628ba20e31dd31b02af0c + pristine_git_object: d549ead5c8637ed5f551cf20c640c509d97e63dd tests/mockserver/internal/sdk/models/components/grantpermission.go: + id: b919de0d2707 last_write_checksum: sha1:83d69c5a502306994095bc1a515d6c52798fa696 + pristine_git_object: fb1c2a041580745f6604e00404812be8a130fd25 tests/mockserver/internal/sdk/models/components/greenlistusersrequest.go: + id: d0652520da9b last_write_checksum: sha1:e6390a90f5ed90fe5b70c4ee6df519625cde2a8e + pristine_git_object: 7cfe20c0a1ad1f73027b9625d6a0e4b09ccb5a53 tests/mockserver/internal/sdk/models/components/group.go: + id: 94bdd0eb6533 last_write_checksum: sha1:a888f767f31073e6b49d412485bcb8c839b2b4a4 + pristine_git_object: ecd7ddb6777546fb2061ed8d7fe99372430d28e3 tests/mockserver/internal/sdk/models/components/grouptype.go: + id: 5537ed02d061 last_write_checksum: sha1:0346c3bd888fdcfa6bdf470f76f7778f32b240dd + pristine_git_object: 3f25f70bef8fa2da5226a5ab4ab60295240ab984 tests/mockserver/internal/sdk/models/components/hotword.go: + id: 541b48d27f83 last_write_checksum: sha1:7aaa2279ba4032458f14d65c2dbd3def0078920d + pristine_git_object: ed23ff8d1bfebc257158abd13a0e9f67636b45a8 tests/mockserver/internal/sdk/models/components/hotwordproximity.go: + id: 2802b5309b57 last_write_checksum: sha1:806ab1ff7c35c34ccdd286a05c2a573621526d51 + pristine_git_object: 611b62d7686476b4c54deaa83ed8006519f0ebf6 tests/mockserver/internal/sdk/models/components/httpmetadata.go: + id: f8e74e13e446 last_write_checksum: sha1:9e4b58e3bb54db4360421109c2e169741499be16 + pristine_git_object: e18bdc060aad616636f0b92e38b08a03a5cc1e4b tests/mockserver/internal/sdk/models/components/iconconfig.go: + id: 56fe47f5306f last_write_checksum: sha1:61063c36128117a731eddf86d9f30666c22e7891 + pristine_git_object: 537d53a4d6235b3f67a08a6b3c08f88a6782f8ec tests/mockserver/internal/sdk/models/components/indexdocumentrequest.go: + id: 3f357e41b670 last_write_checksum: sha1:51488e52d8f6cae4ccb957ffa67b009f1620ce58 + pristine_git_object: 86a60a706a79d339af37973d48033b8e7880ad96 tests/mockserver/internal/sdk/models/components/indexdocumentsrequest.go: + id: 9e5124ea734d last_write_checksum: sha1:67980a2ec0301faf4d4e53068bfd9b67ef4315ca + pristine_git_object: 759eb8b774b53468bfc600c2ecb156f90d68784f tests/mockserver/internal/sdk/models/components/indexemployeerequest.go: + id: 2801b9d91a2d last_write_checksum: sha1:09df0bebfc24a18f9985aaf803053b3c8a008ebe + pristine_git_object: 8d08b0b794c55919f607780cb128368ffe06a871 tests/mockserver/internal/sdk/models/components/indexgrouprequest.go: + id: 21ae28131157 last_write_checksum: sha1:70b134584a76f8c28353dd0d0ed7841fbc92f96e + pristine_git_object: acd400f6a2b5ed468d837a8999cb3e3efb8a2ebd tests/mockserver/internal/sdk/models/components/indexingshortcut.go: + id: 48d24d656fd8 last_write_checksum: sha1:ed57a6397d9a42ea652edfb3077262f0b1d7ea6f + pristine_git_object: b7b7ca1585f6e58b7957a8e90145b74177c601ff tests/mockserver/internal/sdk/models/components/indexmembershiprequest.go: + id: acacd39e17e6 last_write_checksum: sha1:92ccb0c0887e93ce1b6a0828c0f678b35593ad30 + pristine_git_object: e7b2a46c60d004de5ead827a2a28a41363e24603 tests/mockserver/internal/sdk/models/components/indexstatus.go: + id: 99a07ea21a13 last_write_checksum: sha1:8f2e56c105e7601ebd5fcbd5b775dd71d672cf91 + pristine_git_object: f170444ac68a29100a121b3852f2d1a33f2e1570 tests/mockserver/internal/sdk/models/components/indexteamrequest.go: + id: dc8a24d79966 last_write_checksum: sha1:1a61a66d3bdc9d1c1402fd9178fcf3093a366969 + pristine_git_object: 64f2b3640aacd14ec1dae4dde9d555326fef02d0 tests/mockserver/internal/sdk/models/components/indexuserrequest.go: + id: ed567e0d15f7 last_write_checksum: sha1:06d1d86e560655f1b5c529f630fd757c12b5d0f4 + pristine_git_object: daf6de74ff55ccd54aed86e2e10ec7f6154ca3f5 tests/mockserver/internal/sdk/models/components/inputoptions.go: + id: c5994340f415 last_write_checksum: sha1:80d7508aa49da639f53def509fb1300d50b27a45 + pristine_git_object: 9ab2cc24643e9600bf2f31f09cfc178f930f905f tests/mockserver/internal/sdk/models/components/insightsassistantrequest.go: - last_write_checksum: sha1:eac843a444bc1a4407ac673f756bb9684564aef7 + id: 1e686caf681a + last_write_checksum: sha1:e420017f2d5df6e11b16e57611253957ccf470dc + pristine_git_object: 29a882de1e9020023d8910a6f4ce933356542dd1 tests/mockserver/internal/sdk/models/components/insightschatsummary.go: - last_write_checksum: sha1:bc7bb408c578673cad60c321487c0804e0600dd6 + id: a708c0854258 + last_write_checksum: sha1:40fe8e7f03b21f4f1790491c48a65dba9e3514bd + pristine_git_object: d5fe3dfced5431b6f5ce5fad8360e7f1e04afbac tests/mockserver/internal/sdk/models/components/insightsoverviewrequest.go: - last_write_checksum: sha1:f41a223c0da4e4edee140cdd8a7697a45969a239 + id: a4dad7d6aabd + last_write_checksum: sha1:1e607db283c6a0395011c9482508d3ad5544b44e + pristine_git_object: 5e903919f103f212820d2d4717e0e1e95d78846b tests/mockserver/internal/sdk/models/components/insightsoverviewresponse.go: - last_write_checksum: sha1:926270f59a7276459f6efea061ad9d0a5fd0d857 + id: 5643c3cf2f72 + last_write_checksum: sha1:16dad78e377ce9f351787544d31c03af558d1cfd + pristine_git_object: 2e8c2ec9b1055f925928b2179fea2bd7c9d31627 tests/mockserver/internal/sdk/models/components/insightsrequest.go: - last_write_checksum: sha1:f8bb4f19bca0be78fec51bf4d8e90d29ad25b940 + id: ce15dfb99343 + last_write_checksum: sha1:b9f1c9680014aa2b60161886dc0d5932ef0cab20 + pristine_git_object: 5d275bd5402042106a4059b3af5f1c808e500280 tests/mockserver/internal/sdk/models/components/insightsresponse.go: - last_write_checksum: sha1:f691027ad483a3268a91961f6313983b385abb51 + id: f99b405884d9 + last_write_checksum: sha1:5c9ec796ce094c19b4ee9eaa6d392278b07936ae + pristine_git_object: 9914a52e917e0dcdadda314f1649931bdb3ca825 tests/mockserver/internal/sdk/models/components/insightssearchsummary.go: - last_write_checksum: sha1:7640f939a1f08bb1d3ed16361412801cad2c9d48 + id: 0db178e5510e + last_write_checksum: sha1:d8593121130c17b11118c88686aedf7a004503c3 + pristine_git_object: 408d84baa28719655de6ea3c763233f46847359d tests/mockserver/internal/sdk/models/components/invalidoperatorvalueerror.go: + id: 3ff602216ef9 last_write_checksum: sha1:6e8e407afa9e6caf4bc946a51054037a0b64100f + pristine_git_object: a59e010091e1f8ac5b86d4f111a5333ec1993165 tests/mockserver/internal/sdk/models/components/inviteinfo.go: + id: 3dd69ef67f25 last_write_checksum: sha1:a34f4007a255687f057ad9d07c76096ffc122a99 + pristine_git_object: 18cac8b3667eaeeefcd0a16793c0a724c982ea10 tests/mockserver/internal/sdk/models/components/labeledcountinfo.go: + id: 9ab98ae1e4d9 last_write_checksum: sha1:93763fcdc7d3a1e7b6ffc5cfc2e77fe7270e736d + pristine_git_object: 6ddd153cd951ad2e664d2f1a90ed99579258b4cc + tests/mockserver/internal/sdk/models/components/lifecycleevent.go: + id: 2e0a833df883 + last_write_checksum: sha1:a6c849e86ad63b7dfeff2752a28f5bbb40be1d06 + pristine_git_object: 0e3627a771a679384f7a79fad488867221b5d995 tests/mockserver/internal/sdk/models/components/listanswersrequest.go: + id: 30123e5ac5fc last_write_checksum: sha1:0a4be0587f8647a1c4f6702a256e8b6849a1234b + pristine_git_object: 04f62de323984f2e8d3eead984b538ff4e1164f8 tests/mockserver/internal/sdk/models/components/listanswersresponse.go: + id: 0128f48e6445 last_write_checksum: sha1:e2ad7ae1bcf8e0d09fdff647ae2831019c8b23e5 + pristine_git_object: fe8dd2869445bb4d9a4745fee8df5e53eb2ea9cb tests/mockserver/internal/sdk/models/components/listchatsresponse.go: + id: 7f4f004377b1 last_write_checksum: sha1:97dd22a5070cf9f35b9aab05f606db34182e65e3 + pristine_git_object: 19ca70fc465ff370c50cda5799fe84aa77af361d tests/mockserver/internal/sdk/models/components/listcollectionsrequest.go: + id: 33f923996b18 last_write_checksum: sha1:e78e428237fc334a732d4a44e524e28a1e31e5c1 + pristine_git_object: 3dec95592d78066e1c23f9b20978ecd3d6eedb40 tests/mockserver/internal/sdk/models/components/listcollectionsresponse.go: + id: 9c4f2262dbed last_write_checksum: sha1:27ab5fefe97945d168a857925be7cb05dc0fdd82 + pristine_git_object: 77a9eafff4d1490d5b6ad782d641a1537c096649 tests/mockserver/internal/sdk/models/components/listdlpfindingsexportsresponse.go: + id: 6b933e67f205 last_write_checksum: sha1:508085e8ad2eb673bd53c61c522aef0b928c88d3 + pristine_git_object: 9e84daba07b14d706708d0d23d1487365317798e tests/mockserver/internal/sdk/models/components/listdlpreportsresponse.go: + id: fab2d05e4972 last_write_checksum: sha1:cefa10b1888bf6b537d3fe75e36bf359d14716e3 + pristine_git_object: 25f297b597a1dfa563907db00601e89cd55c39f1 tests/mockserver/internal/sdk/models/components/listentitiesrequest.go: + id: 1dbbb5c24982 last_write_checksum: sha1:c181794849c1e7b456fb3ed65c7714c84ebfe2d2 + pristine_git_object: 339c8ffc83e3566eedfa5189bd9c3a37c274b795 tests/mockserver/internal/sdk/models/components/listentitiesresponse.go: + id: 55ea0386c2bc last_write_checksum: sha1:a8a1457db48b2ff8d44cc065f02c66d69cff2ad5 + pristine_git_object: fdfcc5a46103beec70bb50c7f56572d5ec96c4af tests/mockserver/internal/sdk/models/components/listpinsresponse.go: + id: 83082c0af29b last_write_checksum: sha1:788783da18a1e0147bd6f7d2cdcfc1629f8781bd + pristine_git_object: cbf8b276879fab1ac54b44c642223972a11498ee tests/mockserver/internal/sdk/models/components/listshortcutspaginatedrequest.go: + id: 46ffa4ee859a last_write_checksum: sha1:0148fe62e21b94d4e9c2e2fc3aa9e1e8ee426157 + pristine_git_object: 40562b5b841c25efe4174ca87b5fa5ddd84ce9df tests/mockserver/internal/sdk/models/components/listshortcutspaginatedresponse.go: + id: ad6c529f00de last_write_checksum: sha1:839f408c6937505cfd768ed96aedc09e4ee95dd3 + pristine_git_object: 4994496601e911bc0d2894857d0a079f3e467a9e tests/mockserver/internal/sdk/models/components/manualfeedbackinfo.go: + id: ec8878d0c324 last_write_checksum: sha1:354a117e44a667479f91bd5969a6caa22a948e95 + pristine_git_object: ae25ff90cb7a8f879c626e05fc4ddd32dd6a40d4 tests/mockserver/internal/sdk/models/components/manualfeedbacksidebysideinfo.go: + id: ca109f859575 last_write_checksum: sha1:9c066d47590c5ee9823f57a51466268e2893a13b + pristine_git_object: 23fb1a7da94ab17bfa0b54a45e12eb0ec3f59562 + tests/mockserver/internal/sdk/models/components/mcpbreakdowninsightsrequest.go: + id: 9ffe49fd371c + last_write_checksum: sha1:70341128cd46d9472de34bd3d58ac377f37d2580 + pristine_git_object: ef9a081c408459b7ef665bc6b1e89ea05b242fcd + tests/mockserver/internal/sdk/models/components/mcpbreakdowninsightsresponse.go: + id: 1f8eda5070e3 + last_write_checksum: sha1:8ecbd57e51bbd9b0690f74d66880087074a626d5 + pristine_git_object: 8ae55f171cc531a1b7f9fea7670d103b08191d7c + tests/mockserver/internal/sdk/models/components/mcphostapplicationbreakdown.go: + id: a9ba91d64581 + last_write_checksum: sha1:ef6e565d96b5253d5970fd5dd608f87cbe2f1cbe + pristine_git_object: 5b57f57be40f67fa1d0ccbd59e1fe573b9ef685e + tests/mockserver/internal/sdk/models/components/mcpinsightsrequest.go: + id: 44ebf8073f73 + last_write_checksum: sha1:6ee7a134ff7ef911922d79f7552936cbc6687309 + pristine_git_object: 930b2a4e0d95b505061653df063d355901440fcc + tests/mockserver/internal/sdk/models/components/mcpinsightsresponse.go: + id: cdebbbd5d4cb + last_write_checksum: sha1:eaad28cbccc71e85d47f6a0dd7f723cfaa9dc4f5 + pristine_git_object: 2d1a08e0f1b9da899fdbbe089df47fde9b8c7467 + tests/mockserver/internal/sdk/models/components/mcpserverbreakdown.go: + id: 52d405a6680a + last_write_checksum: sha1:64c2730a63feea5ff3965df8ca2034afe2bec8d1 + pristine_git_object: 6559a26dddb1b00c9dde1567fc7676ab00f65745 + tests/mockserver/internal/sdk/models/components/mcptoolbreakdown.go: + id: 9aa21211df8d + last_write_checksum: sha1:f351cdec05b8f05caac7031ea98f17071cb7ccf6 + pristine_git_object: be104ab72b0dbd45c2b852529cbf96985258066a + tests/mockserver/internal/sdk/models/components/mcpuserbreakdown.go: + id: 3796e6d874c0 + last_write_checksum: sha1:115c39fb75461e557499b7aebaac070fcbcc5af4 + pristine_git_object: 73014b6f5dd71b9d05fe8935098102f1ca034101 tests/mockserver/internal/sdk/models/components/meeting.go: + id: 104e13d174f0 last_write_checksum: sha1:3cf5bc5fd2b5a40c545bfe1d9f768a98c3360d11 + pristine_git_object: 0c852dd3a7a2cf25798b15303e82ec7b5e8a59e6 tests/mockserver/internal/sdk/models/components/message.go: + id: d96e45d4acde last_write_checksum: sha1:e26e4e76e56ff85f2df34f754db3bddaf57b1475 + pristine_git_object: 5972aa332f648eba54a1c048c1819c058233db36 tests/mockserver/internal/sdk/models/components/messagesrequest.go: + id: ad26cc127163 last_write_checksum: sha1:91ec52d57dfd2e53150a39841b6eebf3bf8d1568 + pristine_git_object: a778dc51fec681f83e9e9b0b5f0801792fc00fa6 tests/mockserver/internal/sdk/models/components/messagesresponse.go: + id: b2129871b3f8 last_write_checksum: sha1:cd2a29d8a46d95037a32717f4cc91612a3a29cac + pristine_git_object: 6d8bb0637e98328c014db61a92fcb9f65f378d1c tests/mockserver/internal/sdk/models/components/objectdefinition.go: + id: b31a249b0ab6 last_write_checksum: sha1:bb870ed291515df1134057b714064b863884817f + pristine_git_object: 9a9c55c638ac132d7ebe9f06b13a49c80be29fd0 tests/mockserver/internal/sdk/models/components/objectpermissions.go: + id: ccc6831e9a89 last_write_checksum: sha1:a182302021d92910af1f940b60a5fd78f0288bac + pristine_git_object: da63b51aa54a7d5161a011d213289171987a247a tests/mockserver/internal/sdk/models/components/operatormetadata.go: + id: 4ea52082a3ba last_write_checksum: sha1:29e97747020e7c3c4dbece0ccab3ed608e450f00 + pristine_git_object: 01e632cd137afddcd9ba7e5b08f87e75aec06df9 tests/mockserver/internal/sdk/models/components/operatorscope.go: + id: 84680c8d2dc1 last_write_checksum: sha1:b82c705e6442e386a62f48285b5075e4adfd39ad + pristine_git_object: 1432e9ddd5212e0f1142ae4ceefbf7e75c7e5805 tests/mockserver/internal/sdk/models/components/peoplerequest.go: + id: b9eb3293a335 last_write_checksum: sha1:ed92d35b9ee73fab4f70e9aaab17f6ad7c9351cf + pristine_git_object: 1240c00e54f6f5c4493022e643470ffd9011b8ac tests/mockserver/internal/sdk/models/components/peopleresponse.go: + id: e570c57343b4 last_write_checksum: sha1:370070abc7236a46218b5d2eeb74f00a4a082aba + pristine_git_object: 452671486fc4d36b768a7889f851da9533e3755b tests/mockserver/internal/sdk/models/components/peragentinsight.go: - last_write_checksum: sha1:2589f47e3230b4acac344d2a6898e1e01b9d70fb + id: ea141ba29ea4 + last_write_checksum: sha1:a2a967c60dd0334daa9cd8176282c81176887c6d + pristine_git_object: 8530b14c21b0de13337afca8d275ad96c8cc12a7 tests/mockserver/internal/sdk/models/components/period.go: + id: c1a6be1de5fb last_write_checksum: sha1:dd7b20879b387cbdb3a38113398daeee9f09c4ff + pristine_git_object: 8115421fc6bf9f0c50d006993df91c43de998116 tests/mockserver/internal/sdk/models/components/permissions.go: + id: 758ded9c8cd6 last_write_checksum: sha1:604bc9bec4a89d3f72cf808327489999ad5a4639 + pristine_git_object: c12f95f09aa18267484d5e1c11ca089a6bb35a03 tests/mockserver/internal/sdk/models/components/permissionsgroupintersectiondefinition.go: + id: 1a18261a9010 last_write_checksum: sha1:1d89ecd50e0f4bf8e7539e33d6f02a0e5b37afa1 + pristine_git_object: f9056e4fc9da37d708e834fc6731ba114ce05981 tests/mockserver/internal/sdk/models/components/person.go: + id: 11bb88f6a505 last_write_checksum: sha1:205cadebb2dd56343e3985b090b1532ace9838e0 + pristine_git_object: ab2c5f86c9d1327bfde1edcb7706392180b8b8fc tests/mockserver/internal/sdk/models/components/persondistance.go: + id: 38ff917355bb last_write_checksum: sha1:b1c7f853fd358135eeeeeebe8911abcefb0f646a + pristine_git_object: 234db0e2f35f0717bf6949b3d600dc1b5043f9ec tests/mockserver/internal/sdk/models/components/personmetadata.go: + id: ae4a57f895bd last_write_checksum: sha1:14372a801821a619f0523d898f933f55ac34cb19 + pristine_git_object: da09ade4c3e2dfe9de5529843ee44a8ce16b4208 tests/mockserver/internal/sdk/models/components/personobject.go: + id: 793511d31751 last_write_checksum: sha1:d7b6865c46ed5f590011f698163bb0c6d4fd3cb0 + pristine_git_object: cc4039529bc991beb283c22be167cc07c4c591ef tests/mockserver/internal/sdk/models/components/personteam.go: + id: aab3428e64ad last_write_checksum: sha1:d93eeb820d2b3d29e06915dca5c07e17d8fc2990 + pristine_git_object: e93471a504e98c35176105cdffb371f460790bfa tests/mockserver/internal/sdk/models/components/persontoteamrelationship.go: + id: dc4286ebd099 last_write_checksum: sha1:512bb60a765e1eae497c256364dd579db3458c9f + pristine_git_object: ab48edf1ca57a44ad65ed31902626c12d4091458 tests/mockserver/internal/sdk/models/components/peruserassistantinsight.go: + id: b63c751dbc98 last_write_checksum: sha1:79215291ad220a4cc52937f05f2703f787c1d2fb + pristine_git_object: 1432c2e402d16ede1dc88cb566a58858a998e308 tests/mockserver/internal/sdk/models/components/peruserinsight.go: - last_write_checksum: sha1:db34b45a2a1e2c35ed703db5e3c7877b98ee03cd + id: 4b7102dcf8b5 + last_write_checksum: sha1:c2927daf6e2dd2fd6f88b69725c61a3a749ed751 + pristine_git_object: 0cda09fda06e6aa7bb5f181e816f2cf797279257 tests/mockserver/internal/sdk/models/components/pindocument.go: + id: 8605d1ff21f6 last_write_checksum: sha1:1eeaa9c17a1cd0208bbe00d221d0357efa63e707 + pristine_git_object: c2925503622c1beed20491aee1896b3970db7b41 tests/mockserver/internal/sdk/models/components/pinrequest.go: + id: bae26829f4cc last_write_checksum: sha1:b73fc92fa94ae8b4b090e9df2102b921e7634bd2 + pristine_git_object: 7ef8d8e65bd75fe35f59d6858df07c1f970c991c tests/mockserver/internal/sdk/models/components/possiblevalue.go: + id: bf71542de5f4 last_write_checksum: sha1:5c25db519b896499621e67c6245893d26afa30e4 + pristine_git_object: a2238c72e427496296d3dd4d409025ae961e78d3 tests/mockserver/internal/sdk/models/components/processalldocumentsrequest.go: + id: 5e67fd31aa40 last_write_checksum: sha1:ecbb989ae9b79a4f7f2bf1a0be611efc3be1afda + pristine_git_object: 3da693ea27916362771c0890106ef863ea1ebb6c tests/mockserver/internal/sdk/models/components/processallmembershipsrequest.go: + id: 818dd3357d39 last_write_checksum: sha1:6b293ca0f6edbf88ccc798c2cd3a9d416f082415 + pristine_git_object: baaa3e15efcd06ada5b7fd91519a3556f88b2a2b tests/mockserver/internal/sdk/models/components/processinghistoryevent.go: + id: 1b23187bf46e last_write_checksum: sha1:139d88be64782c4b81cd831a55062bf7c497492a + pristine_git_object: e808139c9bcca5cf9f2b9619b3caa87f850fc7a6 tests/mockserver/internal/sdk/models/components/prompttemplate.go: + id: e91829a92d90 last_write_checksum: sha1:0dda45b631b0179f17250c5db0cc96cc48390ac0 + pristine_git_object: ad65ceb65a0629a8dfb8327dda069c2244f27e5c tests/mockserver/internal/sdk/models/components/prompttemplateresult.go: + id: 68586eff3a1e last_write_checksum: sha1:24ea2871bc9e7dc1d7e186d1f030222f009e969d + pristine_git_object: 9ef3447d5242bd1324c14926c8c1ad1073d46e19 tests/mockserver/internal/sdk/models/components/propertydefinition.go: - last_write_checksum: sha1:c4abcee5c9f4127b3913aa3af278af0f2ef72bc2 + id: ac66a3926f16 + last_write_checksum: sha1:4102937b70876c9932fbfd7c7ace69d8455394c8 + pristine_git_object: e17d0096b71414f4f7d951587efdb080f47a34ac tests/mockserver/internal/sdk/models/components/propertygroup.go: + id: c8fa9b3a9f8e last_write_checksum: sha1:68058f9a81607adc088834a548fa26aa8e71a2b6 + pristine_git_object: 173332a524a5a6150bbb6daaf5db984e764358d8 tests/mockserver/internal/sdk/models/components/querysuggestion.go: + id: 8eea13a856ec last_write_checksum: sha1:333e772c98b3b0c488a4b0dad9c477475778bd65 + pristine_git_object: c9318394e0a3eb760aa51c809b13432f27b1f6dc tests/mockserver/internal/sdk/models/components/querysuggestionlist.go: + id: 4696745f397f last_write_checksum: sha1:bc14d652a453fa1f6e85110e9797724755a9cee7 + pristine_git_object: 08eda91ad7dd33d90a53cf35b7c95c0756ced500 tests/mockserver/internal/sdk/models/components/quicklink.go: + id: c6758c22cadf last_write_checksum: sha1:7f32f9b08a77159cab69189869bfa06b36f451f4 + pristine_git_object: 7387d9099dee1062569987528e1dee9439f7b9c5 tests/mockserver/internal/sdk/models/components/reaction.go: + id: fe72a4e08de8 last_write_checksum: sha1:1fec03571ad220af83da82ff0ddc28226843db1e + pristine_git_object: cdc2dd7ccac4ae5d77b132c5de003d70c20d871c tests/mockserver/internal/sdk/models/components/readpermission.go: + id: 27b917f0c511 last_write_checksum: sha1:8fd237486ded8e2383da7fdf30474e35c85e3b24 + pristine_git_object: 769b69aba360937566ad8e355af915ecbab71157 tests/mockserver/internal/sdk/models/components/recommendationsrequest.go: + id: f69925e5e953 last_write_checksum: sha1:b1923c5a9a57149c46160a4c3bc2eb424e5aa363 + pristine_git_object: 546f09dba0846c39781c0382ed0ac50d3602efbc tests/mockserver/internal/sdk/models/components/recommendationsrequestoptions.go: + id: a3657d60f731 last_write_checksum: sha1:3ed19bb28d50abf892843d98716d3a7ae0869fa6 + pristine_git_object: 15fd1bbda1895a164ec7fa883ad8c19c0c893859 tests/mockserver/internal/sdk/models/components/referencerange.go: + id: 93711c7ae9c3 last_write_checksum: sha1:cd2d934fbc80cc4ff9e23f37e573b9a33e8a7d8d + pristine_git_object: 7fe5e73aacfc2e85bd336a2fa98c56754f5b9217 tests/mockserver/internal/sdk/models/components/relateddocuments.go: + id: 52691dda03e8 last_write_checksum: sha1:eea27dba609f1624659fcbd0d15777c55eb703e0 + pristine_git_object: b7981fb285550e9262c20cbb499b27699df20d29 tests/mockserver/internal/sdk/models/components/relatedobject.go: + id: 45c74af43a53 last_write_checksum: sha1:643744c2a87fa946d97b54f20a7ee7e140cb703c + pristine_git_object: 4dc10d77c908ad7d7391e46062a13b4d540e8d0d tests/mockserver/internal/sdk/models/components/relatedobjectedge.go: + id: d7fcbfc76081 last_write_checksum: sha1:83cc59bf75b808a281598e4a8698a5207986d100 + pristine_git_object: aa001154f60987e709d4cdf5e0bd8991a535f495 tests/mockserver/internal/sdk/models/components/relatedquestion.go: + id: 934c4d56a345 last_write_checksum: sha1:cfca1adace3e86522f5c7fcfe982c01ec7eedef6 + pristine_git_object: 868ca518a7e7240cc1c46a0cd1b30451ed19ffbb tests/mockserver/internal/sdk/models/components/reminder.go: + id: 106d77152103 last_write_checksum: sha1:867cb2925fa54516862371f24f451451f4613fc0 + pristine_git_object: 5ea8bfcb2bf9dfbc1e5f119e255540e7311d3d77 tests/mockserver/internal/sdk/models/components/reminderrequest.go: + id: df52737c1765 last_write_checksum: sha1:1b589913958b7fc4c9718ec37e202108e779a57f + pristine_git_object: d501a75442ed82cde890158778d0917ec3697781 tests/mockserver/internal/sdk/models/components/reportstatusresponse.go: + id: d63aa5c44265 last_write_checksum: sha1:0a688b4f49c4d9e40abeb0302ff22037ea0c7a23 + pristine_git_object: e2603ee4d96338345c86220aeb99d8f12d4459a8 tests/mockserver/internal/sdk/models/components/restrictionfilters.go: + id: 2f13938afdbd last_write_checksum: sha1:01a457eeaddebfa048d02b4960af533294186ee5 + pristine_git_object: 616624fcba7f40b0eab7f4473d35398500672e7a tests/mockserver/internal/sdk/models/components/resultsdescription.go: + id: 781720cc7572 last_write_checksum: sha1:222d4cd162257aa1fa51a4618c5fe5878f620e51 + pristine_git_object: 4b6266633c78dbe3a7de382a5cddb4079dd17fec tests/mockserver/internal/sdk/models/components/resultsresponse.go: + id: 9f71b2d148b9 last_write_checksum: sha1:11f1bf56e8b41e71b3b458d39f4a18b9ad7ae0e3 + pristine_git_object: 6fd3dbe08a7f69712804e68845532af7169c7bd9 tests/mockserver/internal/sdk/models/components/resulttab.go: + id: f74dbc8c646f last_write_checksum: sha1:0c61e42fad9332219ca1e3642fb386c3cf9228ad + pristine_git_object: a8ccfb2ed064632fe0afed4c80bca8479936158c + tests/mockserver/internal/sdk/models/components/rotatedatasourcecredentialsrequest.go: + id: b13e96ea86bb + last_write_checksum: sha1:142794daff76893b8a56e02aa1a480e3257f4c3f + pristine_git_object: 3733a70792eb2440f4a315659792f352ab32b539 tests/mockserver/internal/sdk/models/components/rotatetokenresponse.go: + id: 3823d2eff751 last_write_checksum: sha1:669e30d5f7f5fb79cbae3f949a18347caaacfb2c + pristine_git_object: 7c751f2595d88c368db8393c08a108833554e37a tests/mockserver/internal/sdk/models/components/scopetype.go: + id: 0e31d2a43ced last_write_checksum: sha1:4c421c547071cbf1b0287e602fa55043a2183ff1 + pristine_git_object: b0f9c8a46029f8e1b9e025941186a1482767a5f5 tests/mockserver/internal/sdk/models/components/searchagentsrequest.go: + id: 8634f5e44a9a last_write_checksum: sha1:0dc1fc77eb97329652038c1ea807512599e97844 + pristine_git_object: 121e0c7b00d2a62d7fa3a3379fb92e807b1025fd tests/mockserver/internal/sdk/models/components/searchagentsresponse.go: + id: 906d6f33d1b2 last_write_checksum: sha1:f51f69ce784c7bb5bb3f5ba16af06fb2d57ede27 + pristine_git_object: 7c26e61471d861f4182a9213e93920d0214ae244 tests/mockserver/internal/sdk/models/components/searchproviderinfo.go: + id: e3f93a07e870 last_write_checksum: sha1:81c076f3cb625580354cebb26759f796157f034c + pristine_git_object: 2f42b9fbe95b26c9b1009cf7d77f28b5eb67e16b tests/mockserver/internal/sdk/models/components/searchrequest.go: + id: eb0ff8fe9877 last_write_checksum: sha1:fb876a08dac279d7755c1a455458ef4456d8e289 + pristine_git_object: 40507db50db5fbcb9059864be6ec40d0755c437a tests/mockserver/internal/sdk/models/components/searchrequestinputdetails.go: + id: e0cf19d53328 last_write_checksum: sha1:79a19cf32c26e938cfb20ca444f0375e6f270c40 + pristine_git_object: b35217f02d13149c5e15c32fabc50238df1904eb tests/mockserver/internal/sdk/models/components/searchrequestoptions.go: + id: 3bb8cb6c87fb last_write_checksum: sha1:17ee2976b192f2b65f9b431afb0e9056aae72278 + pristine_git_object: 0a74cf275e2b777b3716152cb44d6fe4bee82cd5 tests/mockserver/internal/sdk/models/components/searchresponse.go: + id: 5828ee669deb last_write_checksum: sha1:eb63c5279cb78ba8d445ec077a50a898af7f3cc4 + pristine_git_object: a9cdbe0ec3b66e2941596870dc36d72e374ff49c tests/mockserver/internal/sdk/models/components/searchresponsemetadata.go: + id: 065ed51c3d81 last_write_checksum: sha1:5ba373bccf0e7b975614650485d334c3099aa38a + pristine_git_object: d8c9a4fb4f52e8d5cfecbce6d434714572916727 tests/mockserver/internal/sdk/models/components/searchresult.go: + id: 71ad9c528176 last_write_checksum: sha1:ba319a872b4d9a471f094e41bc5f9e4a065ed3ca + pristine_git_object: 7327f8fd25c64b287d8698c665c97b8f3bd84fde tests/mockserver/internal/sdk/models/components/searchresultprominenceenum.go: + id: 6ebcfacc7133 last_write_checksum: sha1:81270b9cc68f366ac10358642bea75aa1cd1bc62 + pristine_git_object: 789b4f2705f661b1a35cad4ed5573df584d3cfd7 tests/mockserver/internal/sdk/models/components/searchresultsnippet.go: + id: ee8a658aba84 last_write_checksum: sha1:18cded48b53d0255192b20827ef35c4c4592de45 + pristine_git_object: b131c899e07f63919b3064918c7ad828f7ee9e5d tests/mockserver/internal/sdk/models/components/searchwarning.go: + id: 7b7f62c4019a last_write_checksum: sha1:66f8096972e691ecc07f13500d0dd65ec9a753ee + pristine_git_object: 131f65a7c0efcbe02e0becc771bbb7d188fdbcbe tests/mockserver/internal/sdk/models/components/sectiontype.go: + id: d0937c1ce7a9 last_write_checksum: sha1:df93de89435efeb2dc2adb0e18ec994348050181 + pristine_git_object: 395b5e465c6bf212b1e1af9721d86613ac964811 tests/mockserver/internal/sdk/models/components/security.go: + id: fa6cb32e2c62 last_write_checksum: sha1:87599ab7affbe8d9cc9650ee626776a499439a2e + pristine_git_object: bc7c195400fe896ff4df76ff641a639f8a4484b6 tests/mockserver/internal/sdk/models/components/seenfeedbackinfo.go: + id: 8f93bbcb4a73 last_write_checksum: sha1:0368976a1568c4e9db8888fd5769c906721ac604 + pristine_git_object: c1aa85e9b973cc24f396293eb1c08fb19d7313da tests/mockserver/internal/sdk/models/components/sensitivecontentoptions.go: + id: c3fae78853dd last_write_checksum: sha1:3c60d59437ff36fa449f7ad804fe7803af15ca07 + pristine_git_object: dc7c424ede5d8ddf96b358ce40f2be96734e81ee tests/mockserver/internal/sdk/models/components/sensitiveexpression.go: + id: ae7015f11a98 last_write_checksum: sha1:b4fbc845bc2db4f1bc0cc4401b990d697491fbf0 + pristine_git_object: a38113a300fc0e2b6d9ea3911c808f8211cb40c6 tests/mockserver/internal/sdk/models/components/sensitiveinfotype.go: + id: b02d63c8519a last_write_checksum: sha1:20f1d2089955876f297f6effc3667f6ae84c5108 + pristine_git_object: 207653771e5bb2ae5982853962b6318d8c83229f tests/mockserver/internal/sdk/models/components/sessioninfo.go: + id: 23183e4b8fb8 last_write_checksum: sha1:d0a7c3cb679745701743e6ec68c15cf72b3e0a2f + pristine_git_object: ef3481af18364657e6f775deb42f836dd4c53c0b tests/mockserver/internal/sdk/models/components/share.go: + id: f20ebadb280a last_write_checksum: sha1:08b6c55410e0d0960f69ee24294c009e4af90d9f + pristine_git_object: 82202845aeee21ff811ee18ca6a0690ec5428b5f tests/mockserver/internal/sdk/models/components/sharingoptions.go: + id: bcf886b45d18 last_write_checksum: sha1:4b1d902a86f9d461eae3527d9c7edb967ef13ff2 + pristine_git_object: 3b36812b9e1f8ebf1f391e1e13773cbe842016e9 tests/mockserver/internal/sdk/models/components/shortcut.go: + id: c081dd6922ba last_write_checksum: sha1:89fc93286c3a87e26d3c93179ff289d25c4abb5a + pristine_git_object: 63b419dec4a838af0b11cd579a08e4d681c84917 tests/mockserver/internal/sdk/models/components/shortcuterror.go: + id: 933e10c284f0 last_write_checksum: sha1:c2c12b0e5d2a4488c59ca8f9ba95fa50f031b8fb + pristine_git_object: 5ecd3e9e85897657077af9f1cba9e5b022bbc0b0 tests/mockserver/internal/sdk/models/components/shortcutmutableproperties.go: + id: c418cbbe0c0d last_write_checksum: sha1:b68137186eb03f324e4a7d83bf44f01ef9499712 + pristine_git_object: 00cb907cb5b8c16329c7285520996e45c20dadeb tests/mockserver/internal/sdk/models/components/shortcutspaginationmetadata.go: + id: e60ddd715c16 last_write_checksum: sha1:207b41cf581affaa2f6a184691154306765a0f01 + pristine_git_object: 6732831e9a0412cc3812abebbf7f2da148b2b68e tests/mockserver/internal/sdk/models/components/sidebysideimplementation.go: + id: 45b12ef8a8c7 last_write_checksum: sha1:955f1346a512097e839380835b7cf482c79b8e8c + pristine_git_object: f1cf399efacff9407efc6732c906142610025442 tests/mockserver/internal/sdk/models/components/socialnetwork.go: + id: d7411f3f4c0c last_write_checksum: sha1:7b5460e9689446a60ddd8660162e29ea58606be1 + pristine_git_object: acf04b4a208261d8df9ac31b280c01f8c27db58e tests/mockserver/internal/sdk/models/components/socialnetworkdefinition.go: + id: 00d844819024 last_write_checksum: sha1:df28ff5e6d99611a7b8a0edfdf6154325760ca85 + pristine_git_object: 668935e3421de5b9f55c082f5357052463b5afc2 tests/mockserver/internal/sdk/models/components/sortoptions.go: + id: 3113dec09245 last_write_checksum: sha1:587b0c63c9aeb4f1669bcd36d1a5a4fe6c8be3eb + pristine_git_object: 0f3949f13eaa0feab6c82f5429622900b2fa993d tests/mockserver/internal/sdk/models/components/structuredlink.go: + id: 66fbbe32ee19 last_write_checksum: sha1:c1b1a1a6db51fed14a0c0c604c36515ea16b7747 + pristine_git_object: 00f0362099a66acfb916e5c1ada28bbd8c9a7a60 tests/mockserver/internal/sdk/models/components/structuredlocation.go: + id: 0e9d225cea1d last_write_checksum: sha1:952c61d565a519770c1e1bd456dbe06a43527a1d + pristine_git_object: d10688529d742736c70cef3082ac9a4ebaf04f9d tests/mockserver/internal/sdk/models/components/structuredresult.go: + id: 90ec3be3bc39 last_write_checksum: sha1:09964d21fd594ac675fcc130aae8e7ea8a59a15c + pristine_git_object: 99a8991a4521f6d18edf718d599c779bb951d75b tests/mockserver/internal/sdk/models/components/structuredtext.go: + id: 86b16fd56fe4 last_write_checksum: sha1:355352f1325e5756bc262be00952f3a75b46de11 + pristine_git_object: 3c09f214c712b35a0dd716998e44a185a278a827 tests/mockserver/internal/sdk/models/components/structuredtextitem.go: + id: 3dca73ff277f last_write_checksum: sha1:1d31ba0ba1d9a20da78f3f407b667ecdadc08410 + pristine_git_object: 8fea354a041919b8a9edbcea2ad8b3c0b092cc5b tests/mockserver/internal/sdk/models/components/structuredtextmutableproperties.go: + id: 8fa49e2be615 last_write_checksum: sha1:7e3d70101d8e7e704b8b47a8fe47c7d15ff75641 + pristine_git_object: ab29bfc25c2eb615a2962531f2ef95760cbb352c + tests/mockserver/internal/sdk/models/components/successresponse.go: + id: b460fd4e1f9f + last_write_checksum: sha1:1a7b439d7e030fc7d44d33feced3358da73977e9 + pristine_git_object: f1aba12eb2698a626fd1ed8b18d0501187873387 tests/mockserver/internal/sdk/models/components/summarizerequest.go: + id: cc37dad3b100 last_write_checksum: sha1:a70506060ae64e1ba99958ac03e60a7349ea8b7a + pristine_git_object: 4fb506583734b993aef87205fbfbcc4a9b044456 tests/mockserver/internal/sdk/models/components/summarizeresponse.go: + id: 41518d1a5883 last_write_checksum: sha1:645e516e007cc50be2e6e5dd81b301d0a4298363 + pristine_git_object: b196ab2d0cd1cd96e33d85b2412c823d19349ac2 tests/mockserver/internal/sdk/models/components/summary.go: + id: 53ea3054091b last_write_checksum: sha1:92ff1330ff0a98019953ca073adf72f796f03a0d + pristine_git_object: 1e715524d5fe06b731b43ec7feb66591acdf8db3 tests/mockserver/internal/sdk/models/components/team.go: + id: e630ccd84ae7 last_write_checksum: sha1:4ba7528f4ef142ad874ab012825d2b3318e43b03 + pristine_git_object: 85e653f2eff7bd16aadf66b7e5df7afc3e2c6f94 tests/mockserver/internal/sdk/models/components/teamemail.go: + id: 18f3f86ed7cf last_write_checksum: sha1:8b4ee57362b382e2711b18729f92ebcba3315851 + pristine_git_object: cafd347117f694001a728542aec9c0c248617310 tests/mockserver/internal/sdk/models/components/teaminfodefinition.go: + id: d726f522ce01 last_write_checksum: sha1:275470eb886295589deee6d90a2309ff6adaf71d + pristine_git_object: 9dea6e19ecfbb558103ad0346fb8277e4af1a891 tests/mockserver/internal/sdk/models/components/teammember.go: + id: 27c8ff56b2a2 last_write_checksum: sha1:fc3eb4d5bbf18c83641603838e70b154429f2f51 + pristine_git_object: 121d5bb3f4fdfc8f3ce51533b500479ffe9667d3 tests/mockserver/internal/sdk/models/components/textrange.go: + id: 4aac78e73924 last_write_checksum: sha1:59ca0835f734d4bf268d38fb1ab0541c69e01607 + pristine_git_object: ebd99e4a1dd2fae017e6e5d7565884b2b2b1dba2 tests/mockserver/internal/sdk/models/components/thumbnail.go: + id: 03d459002df2 last_write_checksum: sha1:aa262ee8c5b91970d59d22e8b142a302320a71b7 + pristine_git_object: 11629380217508ad7879fa02046e3aa6e6a8c6a6 tests/mockserver/internal/sdk/models/components/timeinterval.go: + id: 6c37b5ab3a56 last_write_checksum: sha1:81705bb1ecaf99d821e06bab433ae8acb7f0a06f + pristine_git_object: cad1e0d2cc49c5eef7f0106722df9c5e1943873c tests/mockserver/internal/sdk/models/components/timepoint.go: + id: 68564f8f50b0 last_write_checksum: sha1:f8729435a86cb935d5af211ecbd5cf1f2ef9e28e + pristine_git_object: 3fc0938df6a4f9bb1488860673a4e01b8efa3371 tests/mockserver/internal/sdk/models/components/timerange.go: + id: 492d7488222b last_write_checksum: sha1:128b8dd617902f688dd9dec7a0c09ad9c2572415 + pristine_git_object: 2671083bf18f1a56d96b174d47a1ac6243b87ae5 tests/mockserver/internal/sdk/models/components/timerangefilter.go: + id: 915351005b05 last_write_checksum: sha1:8de0e503866460658beed077250e82e99327cea1 + pristine_git_object: df3ce29abaf3b5d9e31f36c3ff5a84c38180f947 tests/mockserver/internal/sdk/models/components/tool.go: + id: 0c0984074ced last_write_checksum: sha1:95ee27c43bc6e01b322d32330b2645ea53bb4f08 + pristine_git_object: ed0eadfe146a86176e07d217fac3e032b7a65d12 tests/mockserver/internal/sdk/models/components/toolinfo.go: + id: e2175889a2bd last_write_checksum: sha1:244266dd3f84d49224725ef35603df9fc80d14ef + pristine_git_object: dea3298b26e324de06316da296f7a4d899dd475d tests/mockserver/internal/sdk/models/components/toolmetadata.go: + id: 2777b3aa0636 last_write_checksum: sha1:4487cdc2b5b1dc1a2fa1a3ca7d46188bfc0e211c + pristine_git_object: 3c803a6d3c1c80f7f1e230a843a8c3f1c1186dfe tests/mockserver/internal/sdk/models/components/toolparameter.go: + id: d02a0b83b357 last_write_checksum: sha1:66a7a1e6154a3c42741d575291f358116f017c87 + pristine_git_object: fd0c3c73d6541d05f749b3e9199042f309d9fd33 tests/mockserver/internal/sdk/models/components/toolscallparameter.go: + id: 4bf0d893d0eb last_write_checksum: sha1:e405c512fef7a3702536cbecc97023daf43159ec + pristine_git_object: ddfbe5f9c74cff93c64431c35b3368f93e6903c3 tests/mockserver/internal/sdk/models/components/toolscallrequest.go: + id: a216e2bb473d last_write_checksum: sha1:8d07bfa85a5065a3b948ce2df571e0e2b7079548 + pristine_git_object: 4678acfcbf69be7863a832961ef4203867e70d3f tests/mockserver/internal/sdk/models/components/toolscallresponse.go: + id: ce1add8ce3b1 last_write_checksum: sha1:526fa5ff943d8fe623fbfbfb4e33bbfe9cf5e3ce + pristine_git_object: 03e9af73e5d69f93976218dea9bef90eaef0f02d tests/mockserver/internal/sdk/models/components/toolsets.go: + id: 75b43b793fdd last_write_checksum: sha1:d92cd83151d1a51109858e7ebbfae0b95c8f1e37 + pristine_git_object: 755f3654f83595cc9a2cc4db98b5fe4c09936247 tests/mockserver/internal/sdk/models/components/toolslistresponse.go: + id: a80dcec8c375 last_write_checksum: sha1:12c38931f0f2810e038e30a743845a97b876d03c + pristine_git_object: 7a6a89805e8b840aa2fae616ef6e49dc3d0e0851 tests/mockserver/internal/sdk/models/components/ugctype.go: - last_write_checksum: sha1:d8c8ca33947ffdca4a7b8a9ecb00379fa15624b0 + id: 7b77277c1355 + last_write_checksum: sha1:c7e27d5ff56bd7ff24625189a85d766eca701e7f + pristine_git_object: bc085b15186b2dcd11f9f73d3dcbb7c090e2987d tests/mockserver/internal/sdk/models/components/unauthorizeddatasourceinstance.go: + id: bc69d4c4bf6d last_write_checksum: sha1:39fb84396b33bc645fb5e6ebcea36ab88b5db179 + pristine_git_object: 78d5650a464ded19cb8221db6ff1090c04f8f6ca tests/mockserver/internal/sdk/models/components/unpin.go: + id: 4465740d0bfe last_write_checksum: sha1:6bd1f6c9f451492810949a589b7cf0e07ede176d + pristine_git_object: c7d3431977763c17c326cd26951712fd92894bad tests/mockserver/internal/sdk/models/components/updateannouncementrequest.go: + id: 97b13da95b8f last_write_checksum: sha1:8b10184d480e07a4631098d08ef3c16bfbdfcc33 + pristine_git_object: 9a66e2cbf3742cbc4a68ed308f8671e9090c10e4 tests/mockserver/internal/sdk/models/components/updatedatasourceconfigurationrequest.go: + id: 6f0c20164b49 last_write_checksum: sha1:5710dfb763b96275a55fe0e6b16269cded3f9b9d + pristine_git_object: 07beb967689878b37dbefda0badd8f3b8b895df8 tests/mockserver/internal/sdk/models/components/updatedlpconfigrequest.go: + id: 65adad0b9a06 last_write_checksum: sha1:0612a19ee35705f71346a5d3b6ec4eaec4d9f029 + pristine_git_object: 676fbf0cab6c60d25b94dd60a79174735c289588 tests/mockserver/internal/sdk/models/components/updatedlpconfigresponse.go: + id: 6d85daa19bfa last_write_checksum: sha1:bfa625695134084b049ed67d2fe1257bef5420ed + pristine_git_object: 7f2dceec5bcca381a0a517d82baedcc7047a5ee5 tests/mockserver/internal/sdk/models/components/updatedlpreportrequest.go: + id: 8bceeb9d9267 last_write_checksum: sha1:37d54bad15f360ff3ca8a150a0ea3616420cf497 + pristine_git_object: 7b8e524e010cf879b3956a712ed21b040a8f2aca tests/mockserver/internal/sdk/models/components/updatedlpreportresponse.go: + id: a1efb14c3714 last_write_checksum: sha1:f2c27beb7eac6cf9549c29fc16d9f121c06345ff + pristine_git_object: beff94eb9a15814fcc518363091777d529427135 tests/mockserver/internal/sdk/models/components/updatedocumentvisibilityoverridesrequest.go: + id: d28d6490aa5b last_write_checksum: sha1:fa29de482d2b46d46ade8134932799cd678b20ec + pristine_git_object: e26ea504690cbf70b004aeca7e6951733a9aa963 tests/mockserver/internal/sdk/models/components/updatedocumentvisibilityoverridesresponse.go: + id: 4519e62fb216 last_write_checksum: sha1:45d635d096c8a8bf259172dc213fd7002662d1f9 + pristine_git_object: 638a1b975044806e077843015cc9d67e3bdaf430 tests/mockserver/internal/sdk/models/components/updatepermissionsrequest.go: + id: 181b5737964e last_write_checksum: sha1:43f31527bba5c28cdcd92182f67d8cd9347d33a0 + pristine_git_object: a2455c34bcee77a41ce781f5d91e2da7a3978341 tests/mockserver/internal/sdk/models/components/updateshortcutrequest.go: + id: df13c5f6fa66 last_write_checksum: sha1:042494404547b469509b7c2b1104bffd7d8da203 + pristine_git_object: e9e8dd98e2d6ce8fe61eb0bb3848def38d3c57c8 tests/mockserver/internal/sdk/models/components/updateshortcutresponse.go: + id: a8016234d954 last_write_checksum: sha1:c7ad561984d98ac8fe21a121a5b1131c0d2d977c + pristine_git_object: f4ab9bee73eaaf850f2962e7ac825315ddb396df tests/mockserver/internal/sdk/models/components/updatetype.go: + id: 4b5f8cc7ba7c last_write_checksum: sha1:e1ab594be688dd3fedb265c39338efd490f59f6f + pristine_git_object: 1d45f58700ba9b2af76c916b3a93ca9eeaaa1898 tests/mockserver/internal/sdk/models/components/uploadchatfilesrequest.go: + id: 548e133a2571 last_write_checksum: sha1:00e0f9e75e7158fcbab4881b4ce1151f0d889919 + pristine_git_object: 0a5cc028ac1f5c224ffca041d46ca6b9dea2a794 tests/mockserver/internal/sdk/models/components/uploadchatfilesresponse.go: + id: 73997cc40782 last_write_checksum: sha1:7879f60132d94f5788e6a855b4487ef69f491e86 + pristine_git_object: a10030cf565b9674366ea0b5a6287e7fa91c3cc9 tests/mockserver/internal/sdk/models/components/uploadshortcutsrequest.go: + id: 4be5a6d6806d last_write_checksum: sha1:e088e707939512ac98f0969de4c57e340dc45777 + pristine_git_object: 4549bec3eb7476246900d248d9c969d91fd73192 tests/mockserver/internal/sdk/models/components/uploadstatusenum.go: + id: 2387e771c725 last_write_checksum: sha1:756732c9fa8a7ecb858b1e904cf01e263c1a4bc9 + pristine_git_object: 90546c9d992bbf87e28ee8bd225719ca2c901377 tests/mockserver/internal/sdk/models/components/user.go: + id: cd9bf653c7cd last_write_checksum: sha1:9dc99e4dcfd7749102ea771b4d39517f19f40bb7 + pristine_git_object: c9309929dc319b58d3e06cd3ffbc7282be42b884 tests/mockserver/internal/sdk/models/components/useractivity.go: + id: 63a73683766a last_write_checksum: sha1:71a0cd2120cf0f1d014d16003e35a71ace54b9c5 + pristine_git_object: 686d11762b9fdb7644f72444352782af14c8f5e0 tests/mockserver/internal/sdk/models/components/useractivityinsight.go: + id: dd9890941594 last_write_checksum: sha1:e59f8c217005ea01e8a8d4271f5ab6502185cf74 + pristine_git_object: ef7cc8792f183d08ccf08b8bb00b8eaf87c40398 tests/mockserver/internal/sdk/models/components/usergeneratedcontentid.go: + id: ae284ccc354d last_write_checksum: sha1:2f2c56c39abc65c6ff52326baeca86444f64cae2 + pristine_git_object: 9fc1da086cd00e2db7ebc847042a77f03e6a5fa3 tests/mockserver/internal/sdk/models/components/userreferencedefinition.go: + id: c56996250efd last_write_checksum: sha1:149db1930e323d413f07a581e381cc61e1dd1ff2 + pristine_git_object: 29153dadd636db1dbe5e9945e41778529a9c7749 tests/mockserver/internal/sdk/models/components/userrole.go: + id: 849f6755a65e last_write_checksum: sha1:c06437b641b29e943ed6fa230589682890b7c6f8 + pristine_git_object: 7697e0b0dcf4c3acdb15e2d46b68c1df28defe8f tests/mockserver/internal/sdk/models/components/userrolespecification.go: + id: 15d678a439c9 last_write_checksum: sha1:95b432bee3a41397fba1148743099c9c6c1806b7 + pristine_git_object: 6e478462febc7db9c0b0557b766d715e50ed1705 tests/mockserver/internal/sdk/models/components/userstatusresponse.go: + id: ac403ed26c68 last_write_checksum: sha1:30fb2152829214a851333d127946bcfe9794336d + pristine_git_object: 7457001c43802466d88418c59419506b98ab67b7 tests/mockserver/internal/sdk/models/components/userviewinfo.go: + id: 7168edb7cb3e last_write_checksum: sha1:6efd1ccd0596cad2a52c836713d2078788ee7c97 + pristine_git_object: e256289a0d1f95c26a5a1c635bcc64a16da3b3b7 tests/mockserver/internal/sdk/models/components/verification.go: + id: 2ba8bca07453 last_write_checksum: sha1:6454d7a40baacc9b0695e91e7b019e9fa9fca832 + pristine_git_object: e5d1b407296643dbd45cb75c25a8b382d03f67c1 tests/mockserver/internal/sdk/models/components/verificationfeed.go: + id: f06a54525d14 last_write_checksum: sha1:75a4b4b8d5ac529d57e903f07319f058e9a90104 + pristine_git_object: 74a08b655fe20f22d9bacd8cfdd152f5a45cc85d tests/mockserver/internal/sdk/models/components/verificationmetadata.go: + id: a8d01eb59acd last_write_checksum: sha1:367dcd729051cf898c32b6602c4ce0c1b5ee9336 + pristine_git_object: 1d77b47c327b217ab75f54d0067607692a138bbd tests/mockserver/internal/sdk/models/components/verifyrequest.go: + id: 0db56cb0f0c8 last_write_checksum: sha1:b21b8e5f5f48355b6b3afd4be9229b08e78123d9 + pristine_git_object: 18059e0b87042c6a2796c4986159826588a3c7ce tests/mockserver/internal/sdk/models/components/viewerinfo.go: + id: 35ffe4bbefe0 last_write_checksum: sha1:bf5d4b48cfa2e68cc2b2b7c47d1f0668d18e1b56 + pristine_git_object: 5abdc47f9b8f109ea08ac7b1dc963379d880bef2 tests/mockserver/internal/sdk/models/components/workflow.go: - last_write_checksum: sha1:7acd3b72508c37b20f0e5f633e4ea14b3df1f874 + id: 229cbc0e7f6f + last_write_checksum: sha1:9e63f3b61d31a98f5357f4be62804379f37cfec5 + pristine_git_object: dfe489b8d49bfad25fcd11bed21af8c75b34ea6f tests/mockserver/internal/sdk/models/components/workflowfeedbackinfo.go: + id: 3350baa380bd last_write_checksum: sha1:6723c2b80df391bab5e91b8ac23f9ca4938665f7 + pristine_git_object: e13579aca5b29a1fb515bc30d0f9eb886326df98 tests/mockserver/internal/sdk/models/components/workflowresult.go: + id: ba8eda81dcec last_write_checksum: sha1:0579e0100303b04427d820fb8a671cbac520950b + pristine_git_object: 6352973581225f68e2fbdd12a78b95857fa44edb tests/mockserver/internal/sdk/models/components/writeactionparameter.go: + id: d04d4b2bf639 last_write_checksum: sha1:b53c3217bbb92c123681b705dcddde49a8f79bb7 + pristine_git_object: de5e3bb38dd815bb8c363625ade4ae2ada0fa21b tests/mockserver/internal/sdk/models/components/writepermission.go: + id: 5380d7650d5b last_write_checksum: sha1:41ba3a8f6d2bd29dcb8e5b5005a30363e55673f7 + pristine_git_object: 66f1973b2538f8adef448c3d4a9f2eceef136c8a tests/mockserver/internal/sdk/models/operations/activity.go: + id: bbf0076e613f last_write_checksum: sha1:5957ce406e3a70449e7168b90a96ab29661834ed + pristine_git_object: fbeadfb6a9cce0b561c98531e8f40943cb519d53 tests/mockserver/internal/sdk/models/operations/addcollectionitems.go: + id: 8810ea12a4e8 last_write_checksum: sha1:6b24917028ee62ef0a79e353e689d11d1d5fd7f0 + pristine_git_object: 5402c0c301c66145e40753e919025f0ce1925816 tests/mockserver/internal/sdk/models/operations/addverificationreminder.go: + id: 50456d5e8281 last_write_checksum: sha1:cd6a0cbf098c64d2873723c6db34d4d104aafee4 + pristine_git_object: 5ac1bc76a1c2b2e08894a447b12c357fdae7215d tests/mockserver/internal/sdk/models/operations/adminsearch.go: + id: 2798a847b072 last_write_checksum: sha1:8349967c39c2200f8b798379f9d601234dd0ea08 + pristine_git_object: d3bcae611c12160cc42a6eaca51e379415c81741 + tests/mockserver/internal/sdk/models/operations/authorizeactionpack.go: + id: a0a71987d741 + last_write_checksum: sha1:c78c40c14e10717246e43461e2168240ccbb6a52 + pristine_git_object: 9c7fd68f3990aff22648a954f8883593d19f446e tests/mockserver/internal/sdk/models/operations/autocomplete.go: + id: 15fbad3e639d last_write_checksum: sha1:242f4ac0044ef328043fc3a5d0effdeccb7f291f + pristine_git_object: e056f2449485d454ff68beac9196be500b9e9f68 tests/mockserver/internal/sdk/models/operations/chat.go: + id: 3b631354e272 last_write_checksum: sha1:f2f55f4fecbef27cf1e00a589d3cea6d95982523 + pristine_git_object: 571a9b9d89dd7bcef39e99d713c854abffc24657 tests/mockserver/internal/sdk/models/operations/chatstream.go: + id: 2d65fe2a6633 last_write_checksum: sha1:b299a7da20b4ecf28e85b669de479778ed917ef1 + pristine_git_object: b97e7a447c60c32fab90accb4e2ef611a7df82a9 tests/mockserver/internal/sdk/models/operations/checkdatasourceauth.go: + id: 89e5236173f5 last_write_checksum: sha1:4ea8a844fedb81791dbff6fd5b45031943c118ed + pristine_git_object: 55046755b604159689bf327aa7174a0e080a970e tests/mockserver/internal/sdk/models/operations/createandstreamrun.go: + id: e9a974b86a39 last_write_checksum: sha1:ff0bc51a66cdb65f5d36415c82e92377fd0d2cff + pristine_git_object: 0dbe446c160fa31b5b7339b2d937f9928b05a596 tests/mockserver/internal/sdk/models/operations/createandwaitrun.go: + id: 576c4f2f5bf8 last_write_checksum: sha1:8d070245a42135fc34df714fce8d7d6df72edbd5 + pristine_git_object: 7286ef6415ee635de6071b5385a55431b5e92b55 tests/mockserver/internal/sdk/models/operations/createannouncement.go: + id: 62efdfaba4d6 last_write_checksum: sha1:a035aac91237a6d6285af28fb8d68545589655b9 + pristine_git_object: 420e51a0e38be6d394e8a75add07c6ceac26ad2c tests/mockserver/internal/sdk/models/operations/createanswer.go: + id: 787e92e85d6b last_write_checksum: sha1:7bac56604ac9dbbdd2c759c81acf67e873e4bd56 + pristine_git_object: 6ae4843d4f785577422409c79b499fc99e6fe071 tests/mockserver/internal/sdk/models/operations/createauthtoken.go: + id: 689a60baeefe last_write_checksum: sha1:38490a95b3433ee0a6ef325641981976e847c1af + pristine_git_object: be32a0f3caa3ccd70544064a3e45e561e3b6af42 tests/mockserver/internal/sdk/models/operations/createcollection.go: + id: 325dfac7b050 last_write_checksum: sha1:e0056a37231832f11558b9fe7d3b658bcfb900b9 + pristine_git_object: 3b62bee2d266f74bb6a8382fc647fba6582ac613 tests/mockserver/internal/sdk/models/operations/createfindingsexport.go: + id: 3cf504b92665 last_write_checksum: sha1:825e1e9c17e00b8f29056902188e711dbe285d48 + pristine_git_object: cffb09fcd4a1703e3ebee038c886c05f79932b3f tests/mockserver/internal/sdk/models/operations/createpolicy.go: + id: a233bde7bbab last_write_checksum: sha1:e3cfcfd8f254f6085a744e3585e29ad11fc4a0b3 + pristine_git_object: d0c5b8e1ca8c15aa0786689cc06a89c9f6b02e14 tests/mockserver/internal/sdk/models/operations/createreport.go: + id: 2eb5ee7f6bd3 last_write_checksum: sha1:b9c82a7632c995986f191d03c466420a345d0d42 + pristine_git_object: 7a9d07abe8598203d256e73a46a8b3d9b9b072a1 tests/mockserver/internal/sdk/models/operations/createshortcut.go: + id: 2fe1a5065c46 last_write_checksum: sha1:98ff02e8657bc6dcc49ef54c81fd322094b60d29 + pristine_git_object: 4dead6af49c03b4b02deeeb12e5a512ac6729ef5 tests/mockserver/internal/sdk/models/operations/deleteallchats.go: + id: 20c90e0ef97a last_write_checksum: sha1:a3e27dba3ff434ac40651d103f2585b541a3a061 + pristine_git_object: 9a61eac013fa7715cf6ef9b4198c9cddecf9ba97 tests/mockserver/internal/sdk/models/operations/deleteannouncement.go: + id: 86b9b267fe32 last_write_checksum: sha1:2a26722569463faa2b52c1642f1f5915ac0dae88 + pristine_git_object: 6df70f30d193cafb0d03097cfee76b461e4981b0 tests/mockserver/internal/sdk/models/operations/deleteanswer.go: + id: 222fcb1c8af5 last_write_checksum: sha1:345a8fd35229943057730308e473f44f134d1cd3 + pristine_git_object: c30ae2bbeaae180e2bbb0f8919f6d2bfe544743e tests/mockserver/internal/sdk/models/operations/deletechatfiles.go: + id: 7df4e9fe9c42 last_write_checksum: sha1:506173bfe099edeb1c4f0954762015bafca2dc18 + pristine_git_object: 132474f44a9c25bd795f2780c797b091f2144a74 tests/mockserver/internal/sdk/models/operations/deletechats.go: + id: c746a9d73e64 last_write_checksum: sha1:9c694319cc3e3b220d9fbabbac8060fe4377993f + pristine_git_object: 558b4262476fcdf8e8305b88c9b233ea85452598 tests/mockserver/internal/sdk/models/operations/deletecollection.go: + id: ca1fd99cdc93 last_write_checksum: sha1:eb724e5b7b71ff8b6b79e99b3a8e9bb88c12f1d5 + pristine_git_object: 29f0e83d6f823ab30caa8710606763278c60ceea tests/mockserver/internal/sdk/models/operations/deletecollectionitem.go: + id: 15faa52e4b86 last_write_checksum: sha1:ce58b49a61bb08f2a383f020137dfbeb682c7186 + pristine_git_object: ebc25f934cf49b5bf4895439374d5f432ba8e66e tests/mockserver/internal/sdk/models/operations/deletefindingsexport.go: + id: cb1e282bcdb8 last_write_checksum: sha1:75f0c5cb8e9465c8e248692de923523cdcba2761 + pristine_git_object: c7c8a18c716c39c6ff005fc6d7eccc7174195365 + tests/mockserver/internal/sdk/models/operations/deleterestapiindexcustommetadataschemagroupname.go: + id: 73f4210e3b29 + last_write_checksum: sha1:0fdd271c32c4163e095daf0de640cdafb007954e + pristine_git_object: 0d1f72024250b51d1cc6027173980db30155682e + tests/mockserver/internal/sdk/models/operations/deleterestapiindexdocumentdocidcustommetadatagroupname.go: + id: 9040d3cca806 + last_write_checksum: sha1:23a94ff1cfd1c43e26cda5fb8bd2158e050d210d + pristine_git_object: beb27fc30ba97f7b376098759bc3987f413c144e tests/mockserver/internal/sdk/models/operations/deleteshortcut.go: + id: a4aa680e7b60 last_write_checksum: sha1:843c8276cc4bf518266362585ea810b2e56c015e + pristine_git_object: 887e2fafb13934283d823efddd22ca93b13dee08 tests/mockserver/internal/sdk/models/operations/downloadfindingsexport.go: + id: 754be8daf00a last_write_checksum: sha1:32282301f13c2e740139de75b2efb2c0413ca8e9 + pristine_git_object: 2bfabd236f2307c857a0575e0cbd30d85955339e tests/mockserver/internal/sdk/models/operations/downloadpolicycsv.go: + id: a219d4960a65 last_write_checksum: sha1:f3ba004b4b770392d747b21d15fd09be91c096f0 + pristine_git_object: f11d56e26eea9f06ce6f2a2408ec5f2ec357f002 tests/mockserver/internal/sdk/models/operations/downloadreportcsv.go: + id: 7fe39b85f03f last_write_checksum: sha1:5be47a665f15ebd67c3ccb0be070936ac3f0a04b + pristine_git_object: 40814b93a732463ccd49f8d33f21b1e8511eadef + tests/mockserver/internal/sdk/models/operations/editagent.go: + id: 51fe73b9fe72 + last_write_checksum: sha1:399ba5ffdca374600a2e89d3613158fb8e050a48 + pristine_git_object: e65fa40646a4c11d61f92bd408c7298f589f5794 tests/mockserver/internal/sdk/models/operations/editanswer.go: + id: 577bf726d76e last_write_checksum: sha1:6319063f92d2532ab663554171253c25f7b0f865 + pristine_git_object: a012cd57bee710b93b9381c99f4fbb0ed322eaa2 tests/mockserver/internal/sdk/models/operations/editcollection.go: + id: 32edb89189ba last_write_checksum: sha1:f728d0af16fe57defc5a1e229a125e7fcab675b0 + pristine_git_object: 1009daa12283b083fe4cb1ad9c9de20ebf93fa7d tests/mockserver/internal/sdk/models/operations/editcollectionitem.go: + id: 0843dc263b7e last_write_checksum: sha1:d31194f3dd387014f598e8fa830af8809cf90e87 + pristine_git_object: 520900db55cbd000400d3814d255bccd173cc62a tests/mockserver/internal/sdk/models/operations/editpin.go: + id: f5fbd074d724 last_write_checksum: sha1:68f0bedad3f1292e88176f78c4a3feaaa72636a5 + pristine_git_object: 9105b3366f4444a3cc1e6a95033157ab2a07e4bf tests/mockserver/internal/sdk/models/operations/feed.go: + id: 855294cff2a1 last_write_checksum: sha1:5cc00b3895c2391dab6e7706a97903ed226c8f10 + pristine_git_object: 8f7a3aa040ddcd71393b9ed787d3afad195276c6 tests/mockserver/internal/sdk/models/operations/feedback.go: + id: 47bfac25ebd7 last_write_checksum: sha1:7d5a51aed8eacae15096b90250b2a35f647b45ac + pristine_git_object: 3f4ec58df553f094f9d21f67131761d268ae35c3 + tests/mockserver/internal/sdk/models/operations/getactionpackauthstatus.go: + id: f39b4bf02b51 + last_write_checksum: sha1:59f683b0141feca6a0db93cdbc99d977c0d0b481 + pristine_git_object: 9b7a1160364b1a13328a3e8e569f021bdbdf5134 tests/mockserver/internal/sdk/models/operations/getagent.go: + id: 28bd59af7ef5 last_write_checksum: sha1:97fa8b77eab495bb56cda7e91667fd77d8567faa + pristine_git_object: 6e79ed8b752b271f5134daad59d3c97292de8b4c tests/mockserver/internal/sdk/models/operations/getagentschemas.go: + id: 93de0ffc7e0e last_write_checksum: sha1:2c2ca4842ec6e43e2b0fe486c273600ea369c3e1 + pristine_git_object: 8b4bb0ad9560e03c49438fd0c95d7aed7bfb8d8c tests/mockserver/internal/sdk/models/operations/getanswer.go: + id: 8c9e385fc676 last_write_checksum: sha1:464649f75bf44047247059576b829e2fe409815d + pristine_git_object: 2f3d1ba57b8c1616b47adac8cbf51453d240ba47 tests/mockserver/internal/sdk/models/operations/getchat.go: + id: d328205f0632 last_write_checksum: sha1:830d4df2089c82c236e71784eb380eb58c1e2ec0 + pristine_git_object: 50686f3424c0b9b7dda573325cf0d4ceb231d6f7 tests/mockserver/internal/sdk/models/operations/getchatapplication.go: + id: 09304151a94f last_write_checksum: sha1:8f6f58e46b6e1ac9a5172dfdc09f28446335dd25 + pristine_git_object: 43b8a32f1b22bf89a3aa5074cb5c63fff6da31a6 + tests/mockserver/internal/sdk/models/operations/getchatfile.go: + id: a5bdc5d5f961 + last_write_checksum: sha1:1a218e7e0b4de008c5bb4947aa1ff1b6019b6589 + pristine_git_object: b2bd8aaccf04028dd6cd25c148f28fb5ec7dae24 tests/mockserver/internal/sdk/models/operations/getchatfiles.go: + id: 53e6e6665403 last_write_checksum: sha1:b9331fcb429d8bb22487234f7fa3627ee91b21f9 + pristine_git_object: 5ecbbe8d75c085d7199935e157ec9c1c4e7b5db0 tests/mockserver/internal/sdk/models/operations/getcollection.go: + id: d301a6d10b96 last_write_checksum: sha1:758de3276a51cb9ef5e2bc09d8e689a95ff4fc53 + pristine_git_object: 6b70b3c9c515c661e4de5444cc290aed950e95df + tests/mockserver/internal/sdk/models/operations/getdatasourcecredentialstatus.go: + id: 2d6cc31a82ca + last_write_checksum: sha1:2943041f083244fbccda983df0a06ee0d04031eb + pristine_git_object: bc0d1e27cda23a31ab6b3daa906b61aa31a4d1fb tests/mockserver/internal/sdk/models/operations/getdatasourceinstanceconfiguration.go: + id: 44fbe990162d last_write_checksum: sha1:1570d25442383d4a4d95f8e55ffc0f6c426f683e + pristine_git_object: 515b849ff469c67b595d20155f31dbdde1518f3b tests/mockserver/internal/sdk/models/operations/getdocpermissions.go: + id: b101ee7f401c last_write_checksum: sha1:dfd7bfff0ab9672ecfed72ca75845eeb6e1572b3 + pristine_git_object: e615fcc1b7600b1202ce6bf34c7f14e2fcdca2d9 tests/mockserver/internal/sdk/models/operations/getdocuments.go: + id: 62cefe31da09 last_write_checksum: sha1:d4f23739c982a434827c5e540cb10b8e4ad942a5 + pristine_git_object: 87367f5e414ed790369acda6f9dc97d4c8371fd3 tests/mockserver/internal/sdk/models/operations/getdocumentsbyfacets.go: + id: a6bee4f91e05 last_write_checksum: sha1:d4bf58f85d349c021ec670d2a7fc308e13c64a11 + pristine_git_object: 4c3deeb2950ad6025ef0f693d23c53be7a602487 tests/mockserver/internal/sdk/models/operations/getdocvisibility.go: + id: b3dedaa9e1b8 last_write_checksum: sha1:5402b1db287c42416c4f4aea7768be3d562f42c9 + pristine_git_object: 8fbe257571bb02b888a51cdef7ee27aab0481e82 + tests/mockserver/internal/sdk/models/operations/getpersonphoto.go: + id: 0a1a1a0fcabc + last_write_checksum: sha1:5d1aac3d1f32842d4855f0278d7602ac5723c3dd + pristine_git_object: 4d865674f0a8add42cb30ff13ec1b7c222c61c5d tests/mockserver/internal/sdk/models/operations/getpin.go: + id: cabced4cbab9 last_write_checksum: sha1:7bf799aefdcb8165fe3fe2d5a756a0fa7b2251dc + pristine_git_object: 0292ece88f50fdae6465f418bcf7a028e1048b1d tests/mockserver/internal/sdk/models/operations/getpolicy.go: + id: 70a443c4bd2b last_write_checksum: sha1:8d4c18ff0db3e28e0de5c1d04c0eddb5f02692e7 + pristine_git_object: 1cac9e52c42d40cf26ce5a7f940f16267f3d6719 tests/mockserver/internal/sdk/models/operations/getreportstatus.go: + id: 348ac820aa32 last_write_checksum: sha1:cbef3e3a77849d9e7865b0e104a51f36b213e211 + pristine_git_object: d83ce7267a1eb0ce6a506c9734b5c51ec8a65b79 + tests/mockserver/internal/sdk/models/operations/getrestapiindexcustommetadataschemagroupname.go: + id: d0483a26369d + last_write_checksum: sha1:b355db6de6aeb8df4fe66cbd88a1680d6e57fcfb + pristine_git_object: e38d331a0388b578682dcbb358d5d5ba79f16012 tests/mockserver/internal/sdk/models/operations/getrestapiv1toolslist.go: + id: 3b09272b9a97 last_write_checksum: sha1:4b333486980e930369ed4c804a7a82da12af3985 + pristine_git_object: 4d9d36df3c68953dee10bc12f6c53974a09b0a45 tests/mockserver/internal/sdk/models/operations/getshortcut.go: + id: a3ff8d97b66f last_write_checksum: sha1:9d3a3758b295b8ee5b1bcc3f433ab0fe9a663644 + pristine_git_object: feebc4377fd3e995e6e40a153536a25e5995332d tests/mockserver/internal/sdk/models/operations/insights.go: + id: 9bf374c79662 last_write_checksum: sha1:3091cfd7f0f9ad34caa7ba644bd79bfcbf009f6b + pristine_git_object: e644932e7ebc12607ec1e481d69776de25b4514d tests/mockserver/internal/sdk/models/operations/listanswers.go: + id: a16ad30fca0d last_write_checksum: sha1:4177467d63a522673e6fc55099bca7eb4485c888 + pristine_git_object: f001b00913f630156bc5fb4fae5f5de44d94dfbc tests/mockserver/internal/sdk/models/operations/listchats.go: + id: b65185dc9532 last_write_checksum: sha1:2c15c1ab202e82f06527529f4aed2ae981bcc18e + pristine_git_object: 404637d261bde5c37f51b66ab5a27589a959ed80 tests/mockserver/internal/sdk/models/operations/listcollections.go: + id: 46aff684beca last_write_checksum: sha1:d260f925936fb9de661a06ec411a5d875d59b97f + pristine_git_object: 423a2c497ec3f666f0c09629e514ac558321413e tests/mockserver/internal/sdk/models/operations/listentities.go: + id: 7c267e82d329 last_write_checksum: sha1:466d941106775a6674cca3ae6f07f0f1f41a9a77 + pristine_git_object: ee93a302225363d2bad4520914693ec85e5512c9 tests/mockserver/internal/sdk/models/operations/listfindingsexports.go: + id: 9a66d38027b8 last_write_checksum: sha1:bc380b07b5659cc6bb63d4d1c56da32ded5d5cfb + pristine_git_object: 3ac3652786270b36634fdb089b8964d190932dc4 tests/mockserver/internal/sdk/models/operations/listpins.go: + id: afe8322b4bf5 last_write_checksum: sha1:0f78c07c1ad4bce0694e9a460d054472a45d33f2 + pristine_git_object: ea87433ef383d4858c109e148ee406e1245c1dfa tests/mockserver/internal/sdk/models/operations/listpolicies.go: + id: d5e1463752bb last_write_checksum: sha1:873e036f6e3166351de3868799fda4c7e4e6f23b + pristine_git_object: 61d27e4fbbd341310e249fff22dc8ffe564d6791 tests/mockserver/internal/sdk/models/operations/listshortcuts.go: + id: 9bcb31dc3b12 last_write_checksum: sha1:b82eb9565758c5f1f4664c132869a41ff3b5c214 + pristine_git_object: 216616d5863e8f1cab292118ba7fc629618cc8b4 tests/mockserver/internal/sdk/models/operations/listverifications.go: + id: cf364ff1d7a9 last_write_checksum: sha1:4b7f74c8948528b2687a834a7ade6fdc629db31c + pristine_git_object: 9ca1324dd71e602d5d17839c5a7c851ffb660076 tests/mockserver/internal/sdk/models/operations/messages.go: + id: 3a119d52ac1f last_write_checksum: sha1:6f6eeb2807ea13c66d3600caf246e3ae6d2c1e99 + pristine_git_object: f978753b6e6ace4d1b8f194e81c5cdb62e4d5b25 tests/mockserver/internal/sdk/models/operations/people.go: + id: 873c595bed7e last_write_checksum: sha1:5c9b08af447b7e58258a9c20fdd02ccadaa54895 + pristine_git_object: bfd1b518e7f1abe38915cd870c70d869cfb38929 tests/mockserver/internal/sdk/models/operations/pin.go: + id: b553eb9bdb35 last_write_checksum: sha1:5248f738207e7e99637a538c31c57d93394a588c + pristine_git_object: d6f74b3f76e41314e5e33934c50f5bd0bda958de tests/mockserver/internal/sdk/models/operations/postapiindexv1adddatasource.go: + id: 85e7185113c5 last_write_checksum: sha1:2f82dc427027cdb45f8fcf8fa6454e28599233aa + pristine_git_object: ec4316c15cf80ce3eb067e5827af11fe4a520d25 tests/mockserver/internal/sdk/models/operations/postapiindexv1betausers.go: + id: 04ccb45a6331 last_write_checksum: sha1:a7948ad81eb4bf57409c43a788a114e1b0bf4a95 + pristine_git_object: eaab9c654f19c0709d930c2b988098c9d6c16ec6 tests/mockserver/internal/sdk/models/operations/postapiindexv1bulkindexdocuments.go: + id: a3e203754131 last_write_checksum: sha1:b1c1d3a29a4b6fe050b1814373def790474b91e0 + pristine_git_object: 91856daa88bd132c6f43345745d73eb06b296f5d tests/mockserver/internal/sdk/models/operations/postapiindexv1bulkindexemployees.go: + id: d26cf727047e last_write_checksum: sha1:d9392ff1cd5377c7b81b8441e2b3b52bf57d0d21 + pristine_git_object: 9db6475f01f3733b4b7908d85890dbd992927d11 tests/mockserver/internal/sdk/models/operations/postapiindexv1bulkindexgroups.go: + id: db95d0bdaf9b last_write_checksum: sha1:b4cda132c0ef19b9d9894d45b635c72aa202d3e1 + pristine_git_object: 61a821cd645c3111ed82ccaf4239b6403406751e tests/mockserver/internal/sdk/models/operations/postapiindexv1bulkindexmemberships.go: + id: 7b3dd3260ea6 last_write_checksum: sha1:de7f0116950be7357bef2b0cf54e2f6a338f9fed + pristine_git_object: e2f87c0dfde4d4895d089717df04b2e787077793 tests/mockserver/internal/sdk/models/operations/postapiindexv1bulkindexshortcuts.go: + id: 842d87215981 last_write_checksum: sha1:5f4a29e02699c47a9f50fdd38a8f68fcd6e90e7e + pristine_git_object: 6348bbd6f1227de1d9c7e696ed0b29db8fda10b1 tests/mockserver/internal/sdk/models/operations/postapiindexv1bulkindexteams.go: + id: 0d098a2aaf9d last_write_checksum: sha1:9dd2656fc4e99259359d28c314fce435bdf4dac5 + pristine_git_object: a6a54ca349370e987fee1b4ea385669412441f84 tests/mockserver/internal/sdk/models/operations/postapiindexv1bulkindexusers.go: + id: b5e3669d405b last_write_checksum: sha1:1fb6af351766e122750be52afa2299c75b887e80 + pristine_git_object: eca83011c7b7f445306afc0a198c6cc037f8d8bf tests/mockserver/internal/sdk/models/operations/postapiindexv1checkdocumentaccess.go: + id: beaff772bb5d last_write_checksum: sha1:f00c6615010a5d00bbab9188dbdfea578bdedac5 + pristine_git_object: daa947b5d2e7e9df896bf4feff7b85ad81df7641 tests/mockserver/internal/sdk/models/operations/postapiindexv1debugdatasourcedocument.go: + id: 9386c4d7ec77 last_write_checksum: sha1:3e6d9847f34b084afaa15e0358ca2f0fbd6f761a + pristine_git_object: 0030470cdbb8446c45318fb63d5ff131f0af5432 + tests/mockserver/internal/sdk/models/operations/postapiindexv1debugdatasourcedocumentevents.go: + id: 6a566fb46abd + last_write_checksum: sha1:f989e66a6ee1143f9e068974ef6383c78e5fd01a + pristine_git_object: 33447581a47d1d267c454971e0b21cbc1acdb8f9 tests/mockserver/internal/sdk/models/operations/postapiindexv1debugdatasourcedocuments.go: + id: 19cf1c71b920 last_write_checksum: sha1:32dcdcf2c32961719a7ebeba45c06291c31c5d3b + pristine_git_object: db365a703f2fe4fb22f56e775bec772f909cf510 tests/mockserver/internal/sdk/models/operations/postapiindexv1debugdatasourcestatus.go: + id: e6046df82ffe last_write_checksum: sha1:6dda731df684acf5abb0531564e1d48e9e91f201 + pristine_git_object: e9913883805eebb8d5f9de919e011ffb3b26b456 tests/mockserver/internal/sdk/models/operations/postapiindexv1debugdatasourceuser.go: + id: f1fb36eb58d1 last_write_checksum: sha1:be15f8a3a14f6aefb0328d11f56f78e38f16bee9 + pristine_git_object: 4d642b8f0f09371a1a7c2393d95112feb0610659 tests/mockserver/internal/sdk/models/operations/postapiindexv1deletedocument.go: + id: a94078f9ad88 last_write_checksum: sha1:133d606d69c460aedcf6cc2c748b9889ef5b8d8d + pristine_git_object: cb9dcbeb0638c790fc4ac8171d673c51c65ce698 tests/mockserver/internal/sdk/models/operations/postapiindexv1deleteemployee.go: + id: 57a55472cfe4 last_write_checksum: sha1:76d2f815e9ed1cc1ea5622aabedbd37928ce78e2 + pristine_git_object: c2ff187ffd33e7f645cd8536f400b0a7122ed9a2 tests/mockserver/internal/sdk/models/operations/postapiindexv1deletegroup.go: + id: b84a9782069a last_write_checksum: sha1:4ea8e8c9d31e6ff8469f51a1b857b206dc9dbe05 + pristine_git_object: 51bf558891f3e003111cb17fe5ba5c4ef7e5e3c3 tests/mockserver/internal/sdk/models/operations/postapiindexv1deletemembership.go: + id: 5f3d67a00395 last_write_checksum: sha1:d4633a3027f1ae7f110a0a5976b513ae7157f5c7 + pristine_git_object: 0c2cf3c60dac30b6332484183bdcf2b8c731ba3a tests/mockserver/internal/sdk/models/operations/postapiindexv1deleteteam.go: + id: 646d84637b89 last_write_checksum: sha1:a92d30b0348623fbe6d0bcdf49c1fb3d1ce6b0e0 + pristine_git_object: 3e7591f4fb46945fa2b6ac537707d1b7a9d90fce tests/mockserver/internal/sdk/models/operations/postapiindexv1deleteuser.go: + id: 3ac1da6974b7 last_write_checksum: sha1:5fedaa14f75e19ec9d19ca4a3e99a4352bb47a2d + pristine_git_object: f283635984ba5b0f2c785bbca361e1619c9304b9 tests/mockserver/internal/sdk/models/operations/postapiindexv1getdatasourceconfig.go: + id: 7fda817cb810 last_write_checksum: sha1:1d91ec929b59c3eb28d55c4bcf733d22ba8ce429 + pristine_git_object: 87af103e121dcb3403ffbc3bce1c6c924a3f079d tests/mockserver/internal/sdk/models/operations/postapiindexv1getdocumentcount.go: + id: 6433cbe23c23 last_write_checksum: sha1:5117f2204b56a4fab8b78e1505afe4effefb89d2 + pristine_git_object: e834673897df62698a8acd84a25cf316e58d7a31 tests/mockserver/internal/sdk/models/operations/postapiindexv1getdocumentstatus.go: + id: 0710b282ba21 last_write_checksum: sha1:c7392d72ca0b952723c1138b999d2927f2cd36de + pristine_git_object: 23e6ce27a9299e9a183a35e123bec4c9a9250c89 tests/mockserver/internal/sdk/models/operations/postapiindexv1getusercount.go: + id: 73d27c91bd1d last_write_checksum: sha1:01f3825d72dc86dd0085273d1b8c72f340e76636 + pristine_git_object: d65e1df985ab3fa57cf7b826b6db663c262f2c6a tests/mockserver/internal/sdk/models/operations/postapiindexv1indexdocument.go: + id: a208711c3554 last_write_checksum: sha1:3efed5fae8df0d1a262ddef69189cc78070134c9 + pristine_git_object: 0dee9b590c9626171165eac64f6ede3ef1767350 tests/mockserver/internal/sdk/models/operations/postapiindexv1indexdocuments.go: + id: 7153a6c3b857 last_write_checksum: sha1:740474c41034fe84e2550e13643e9d7339780501 + pristine_git_object: dc8114aee9563ca706c2f5a6d10c5a238f2ac4dd tests/mockserver/internal/sdk/models/operations/postapiindexv1indexemployee.go: + id: 4fb5c55c2847 last_write_checksum: sha1:ea137b2359cdf0253992a98befcde0ef321eb4ec + pristine_git_object: 78fee1b1682e0bf269123264248540d26589d5d1 tests/mockserver/internal/sdk/models/operations/postapiindexv1indexgroup.go: + id: 8724d89aa0ee last_write_checksum: sha1:deaac8a99b80c144b09973f3165b3460629820d9 + pristine_git_object: 2376f01a646d7647335b193f8887313bee6b3a8a tests/mockserver/internal/sdk/models/operations/postapiindexv1indexmembership.go: + id: 9bb69b2e8f8b last_write_checksum: sha1:5e3890463d141971df363b7d2aabf485437ed65a + pristine_git_object: bc37981822806851a7ef236df0330bd45a06e92d tests/mockserver/internal/sdk/models/operations/postapiindexv1indexteam.go: + id: 47ea300d1c72 last_write_checksum: sha1:af338c162bdd05f170de7280332f0629d2881893 + pristine_git_object: e21ea660ad2f28ce21d6789aeb1e123cc28041ff tests/mockserver/internal/sdk/models/operations/postapiindexv1indexuser.go: + id: 60183ac8063b last_write_checksum: sha1:6af067cd2896b25ae230aba5c869dcd43e9599ee + pristine_git_object: 97d96c43227c664c03a0fc0e1a09bc85ff3c9c9e tests/mockserver/internal/sdk/models/operations/postapiindexv1processalldocuments.go: + id: 936d4338ab5c last_write_checksum: sha1:a5cb7dc7c1a090e13d6d0a892ca81fd939fa2cbb + pristine_git_object: 842e0b833c4d0d3ee76ade1257e91c378a0d3e45 tests/mockserver/internal/sdk/models/operations/postapiindexv1processallemployeesandteams.go: + id: c1337f1c16fc last_write_checksum: sha1:b0e9349d32b6f6e6bcfcf50795a3c9d01a8d579a + pristine_git_object: 6836e1b0547d29ab0b06a61483c1cf0a6d4dd41a tests/mockserver/internal/sdk/models/operations/postapiindexv1processallmemberships.go: + id: de2279267e56 last_write_checksum: sha1:dc15b4835d4c2419c41df90c732b551c0e47b4b6 + pristine_git_object: 7fda5903222b53179c889c5347166d3e306909c6 tests/mockserver/internal/sdk/models/operations/postapiindexv1rotatetoken.go: + id: 770dc5e9fe7a last_write_checksum: sha1:c7e443b0a9f994246b12f845cfe17a6faa9dd50c + pristine_git_object: d0333d02e471e38c949808fb72a415c1b58bcd95 tests/mockserver/internal/sdk/models/operations/postapiindexv1updatepermissions.go: + id: 3003447c5df5 last_write_checksum: sha1:efe733ad63d09cdafbd01f06870cad083c46fe86 + pristine_git_object: 677130bbedacaa7a7084ce137359aeb7bff7265b tests/mockserver/internal/sdk/models/operations/postapiindexv1uploadshortcuts.go: + id: 050d90bfef03 last_write_checksum: sha1:ed4651d4860935aaf0e344aeb9bbffb1365b8db7 + pristine_git_object: cc5dbf54dc3c27fb7c8deae58311079a11510827 tests/mockserver/internal/sdk/models/operations/postrestapiv1toolscall.go: + id: 2cb295dd1782 last_write_checksum: sha1:a598e25aef310bd7c8c7c37987899e6f88e918f9 + pristine_git_object: eb2eea470710ba5887a0340b934b602a63b486fc + tests/mockserver/internal/sdk/models/operations/putrestapiindexcustommetadataschemagroupname.go: + id: bbbcdd70f097 + last_write_checksum: sha1:a4b2a2546463defadda12f10c5d48cf3f978bed4 + pristine_git_object: 8aabd0646608b24242dd0685d3dba9d4a7fb50e0 + tests/mockserver/internal/sdk/models/operations/putrestapiindexdocumentdocidcustommetadatagroupname.go: + id: afac7770cd53 + last_write_checksum: sha1:8248f106ce4fd60e2de01ad997600bef0dd48dbe + pristine_git_object: 2722a184f1aaf9588ffea6874a4b0948bec19a7e tests/mockserver/internal/sdk/models/operations/recommendations.go: + id: a185d6e70d36 last_write_checksum: sha1:6ae07252753671a40f928d93b959ea0403154494 + pristine_git_object: 1a7d11cdea0461dacd357e652ceba5ad048ab2b4 + tests/mockserver/internal/sdk/models/operations/rotatedatasourcecredentials.go: + id: 4423e4f78c63 + last_write_checksum: sha1:e3ba704236a66ebc3e5c3d36865df95bae4620e9 + pristine_git_object: f5ac0b261c77d2df930fdbd5f24911627bb31221 tests/mockserver/internal/sdk/models/operations/search.go: + id: 6db405372f56 last_write_checksum: sha1:8ebd0389fc5b227f30ce9e4ff19b12516c4b5329 + pristine_git_object: 7467c541d0f39e1b2571785b48474cddd93e5d1e tests/mockserver/internal/sdk/models/operations/searchagents.go: + id: 6f53dbe362ec last_write_checksum: sha1:15a0051b4288ddfec731e7198c1561ceb4187faf + pristine_git_object: 0e9a07157966bee757b21e5c6fe08129385e0345 tests/mockserver/internal/sdk/models/operations/setdocvisibility.go: + id: d4ab3d457210 last_write_checksum: sha1:af755e76cbc165a8f9282ecbb67ba09d32ac9e22 + pristine_git_object: 3b077768a3c7b6925e2bf5ad45938527f197e1f3 tests/mockserver/internal/sdk/models/operations/summarize.go: + id: 53e19d91ab53 last_write_checksum: sha1:e23c22ddcc5ffa4d3201ff38dee77bf305c1b156 + pristine_git_object: 9bd6a38a71f87d63e10d146d772b43df55093ea3 tests/mockserver/internal/sdk/models/operations/unpin.go: + id: 1c8ed2f7e0f0 last_write_checksum: sha1:ebc6723ce70f20e4847d322b1f63ab297b7b4d39 + pristine_git_object: f6aeca75322cf729c455320aeb878665f81a037b tests/mockserver/internal/sdk/models/operations/updateannouncement.go: + id: 667baa2231cd last_write_checksum: sha1:219c6a8e147028e49185ebfe1488b8efe1e5f4a3 + pristine_git_object: 4cc872ff71d34060db600f0da799cd493bfeee3c tests/mockserver/internal/sdk/models/operations/updatedatasourceinstanceconfiguration.go: + id: 646219724b69 last_write_checksum: sha1:9138b5126887e93c98c8c5d936909af27faa6236 + pristine_git_object: b8568c6360c20c277dd89f45a8eba7cc9feacd3e tests/mockserver/internal/sdk/models/operations/updatepolicy.go: + id: 77df97c41ed7 last_write_checksum: sha1:555e1077b891a4d7a21f275bcffe983b7fff9120 + pristine_git_object: a355bbe91da6940f4c182d7da12592b0fe239d54 tests/mockserver/internal/sdk/models/operations/updateshortcut.go: + id: 97d965cc3c6e last_write_checksum: sha1:f9689073485924ff89de0d476d3bd0ea56b73501 + pristine_git_object: f16ddd5e3c04d237a6f3f3e29685ee3dff588915 tests/mockserver/internal/sdk/models/operations/uploadchatfiles.go: + id: 23ab0825947d last_write_checksum: sha1:f1c44bb376adee3854955832ceff513124324a3b + pristine_git_object: 24142696d0a73079faa1114b40dd5f35ca089648 tests/mockserver/internal/sdk/models/operations/verify.go: + id: 3c481ba80f28 last_write_checksum: sha1:f20f8fd1bbf3169e0e4516595d7971e5cae03951 + pristine_git_object: 502b190f8e59bcc4ebb0c0efdb317c641b845f93 tests/mockserver/internal/sdk/models/sdkerrors/collectionerror.go: + id: 60537b88bdfe last_write_checksum: sha1:a8ce08145cf00a84487714f875ba1d3a8d84be1d + pristine_git_object: 6eb492d877ba569e41405a84ed4eb539d2df1317 + tests/mockserver/internal/sdk/models/sdkerrors/errorinforesponse.go: + id: ff26c56caf3f + last_write_checksum: sha1:45ea1373ecbbade089e437790674efbffb72238d + pristine_git_object: 75ecfbc9fd1e451c19a4cf492569ba20f47c79ba tests/mockserver/internal/sdk/models/sdkerrors/errorresponse.go: + id: 285d3b46954a last_write_checksum: sha1:eecdd5dcfa17d3c57965b06f8d75065b5ccf243b + pristine_git_object: a3f04453bc6f90fb4be431387a87da90d3191212 tests/mockserver/internal/sdk/models/sdkerrors/gleandataerror.go: + id: 6162be7fca7f last_write_checksum: sha1:ee697c8e2807f2b86c3de73bcbc013bbaf4ee2e9 + pristine_git_object: 05af2574a03e26abac55345798ac1e965376ecd4 tests/mockserver/internal/sdk/optionalnullable/optionalnullable.go: + id: 49a8c2638f49 last_write_checksum: sha1:aa5ff815f31a3657487ad5e0c3f023f573b1fcab + pristine_git_object: bdf1155c8c11ce1a1266e0e2e0fe24a1cefff196 tests/mockserver/internal/sdk/optionalnullable/optionalnullable_test.go: + id: 67aafc07794f last_write_checksum: sha1:c0ca755fb35acd8f838567e22c2b5722592fe1c3 + pristine_git_object: 52fb11f9ecfbf5e83c2a2d406d39e9a58923ef27 tests/mockserver/internal/sdk/types/bigint.go: + id: 87f867cb8679 last_write_checksum: sha1:49b004005d0461fb04b846eca062b070b0360b31 + pristine_git_object: 9c6a086d51595888a6ff787ebcb8693559afee95 tests/mockserver/internal/sdk/types/date.go: + id: f98ae21d85d5 last_write_checksum: sha1:3036a2e1ed15a1d484c093367eba000c38f384d0 + pristine_git_object: 5b2782f219efe6bfbce46fc2dec68998eb759438 tests/mockserver/internal/sdk/types/datetime.go: + id: aaa67b7338e2 last_write_checksum: sha1:196d050af6450669214e9ae4fd28e56263ae2b5d + pristine_git_object: 3eff332daa04e34cec5ffb10add670bafd8ac454 tests/mockserver/internal/sdk/types/decimal.go: + id: cdc9f41c716d last_write_checksum: sha1:54f1f8c0d89d6ef048805121f97c6937404c5d51 + pristine_git_object: d8429bc6bda8a597610c4fac56b71c403dbadb2b tests/mockserver/internal/sdk/types/jsonl/jsonl.go: + id: f059643f67b2 last_write_checksum: sha1:15fb778e0fa6c7b4c228431af3d03b9819b8fd94 + pristine_git_object: 26df95cf42add9ff7286ab4cc191c9548b0ac16b tests/mockserver/internal/sdk/types/pointers.go: + id: f880573cf1fb last_write_checksum: sha1:fc2275ea006257ba9ba4ff6f2a2cdb6205371eef + pristine_git_object: 35c439d2661e08fcb6a854096fd7b9a8561b3938 tests/mockserver/internal/sdk/utils/json.go: + id: b1ed67b63d16 last_write_checksum: sha1:2c860aa8b53b7d38c20290854c880368ce4fe0ec + pristine_git_object: e5aafa7be41a6c5a754c4c500c13a1aabcc654d4 tests/mockserver/internal/sdk/utils/reflect.go: + id: b024be29d61f last_write_checksum: sha1:1e3a0ca0387685b6b21c0a6a75650b8611c76ee3 + pristine_git_object: c9ae9a7c41b87dac23a4e517213f840adbf116f7 tests/mockserver/internal/sdk/utils/sort.go: + id: ee80b6668d52 last_write_checksum: sha1:a9d390de086ad13841c7d154e97d314e6ae2d285 + pristine_git_object: 6b265be746b089d6a8c34e55d18839fec9c91f96 tests/mockserver/internal/server/doc.go: + id: 54a531ed97c2 last_write_checksum: sha1:71ca1bebc409ffcb7ed573f4bfc85f1d2cb76252 + pristine_git_object: 666dc10909c6fc1d8699cadd82e358b422e21842 tests/mockserver/internal/server/generated_handlers.go: + id: d4345560d91e last_write_checksum: sha1:dbaa2e7beedda2a3e0ef373939f0424577cb2666 + pristine_git_object: 1ea16355c8f0747d5c98f4233865c94fc61e6da0 tests/mockserver/internal/server/internal_handlers.go: + id: 03ed5c3e8424 last_write_checksum: sha1:1c79af9ee45c9bde435f5acc711bc48c9f66315e + pristine_git_object: 1c248615e9a35cab3b451f4696cd7d787e173041 tests/mockserver/internal/server/server.go: + id: bc4818c1c5f8 last_write_checksum: sha1:d97000314c64b937ff7a243cbc051c5591ab8722 + pristine_git_object: 12239611a68d9a0ca7522a55a18788829c5e67e8 tests/mockserver/internal/server/server_option.go: + id: 8a815959caed last_write_checksum: sha1:f787e17525cbaed4d6881d02562da66a1deda9c0 + pristine_git_object: ff85a678b6c19095ae99851ba6dfbba3813aae09 tests/mockserver/internal/server/templates/log/index.html.tmpl: + id: 0cb9583d5972 last_write_checksum: sha1:7c3fc6e6b03d80e05bc586ade52ddcb8adaee148 + pristine_git_object: 8b1124e5f9fb283a4effd9c891b94a011c9dc5f2 tests/mockserver/internal/server/templates/log/operation.html.tmpl: + id: 60a6c6274bd7 last_write_checksum: sha1:ab2894028c76b25dfe613d743a243bfd04fb279c + pristine_git_object: a54a2adce7e3701bc4e40584e1679193d08062fb tests/mockserver/internal/server/templates/log/style.css.tmpl: + id: 38e1479659c5 last_write_checksum: sha1:474c79a94fa7d2671135e078a71c51b11f38bfae + pristine_git_object: 5490930e568fac28e0f8d1a218bfb3cb261430b9 tests/mockserver/internal/tracking/requesttracker.go: + id: 24598502491b last_write_checksum: sha1:09963693aae5446c247cac171c284f2cdf7cfa4d + pristine_git_object: 1d9131d09f58db9a36c3032c08b043f08989f9e4 tests/mockserver/main.go: + id: 2b32d316f0d2 last_write_checksum: sha1:1267817b54decac7af35c5db3f4d865eb628547d + pristine_git_object: 2270443b07cb33114f54c654c6d4184fcfc1d68a tests/people_test.go: id: f974b4db64e2 last_write_checksum: sha1:15cdd53495515a4748a2aca49896b3bc074c55fa @@ -7172,16 +9181,16 @@ trackedFiles: pristine_git_object: 8276fc3a8313ccbdb884ac378657dea8e7a24776 tests/summarize_test.go: id: 1b63b0a16e69 - last_write_checksum: sha1:73bc520b8cd86a813811d0486d01f1a40b197e8f - pristine_git_object: 0cf81ea734275a8feb5e9a817d4c444d2caf1793 + last_write_checksum: sha1:14d869aa886c2889c61c431337d4062f85ba4000 + pristine_git_object: 1b3aa16c85d0b307723949abbbed33019504706a tests/testclient.go: id: 78d36c6e169c last_write_checksum: sha1:507c44e437934fbff8d295201c1327e18bd00df8 pristine_git_object: 30661e72215ff83eaf5637c0ee72a75e6ab3f6b1 tests/tools_test.go: id: 8166dd99f634 - last_write_checksum: sha1:93eb48da3644b0d4193e167be5090331a6e7f689 - pristine_git_object: 83f78574d16c9e610d11ab0bd7eb4a1b0ff39c2e + last_write_checksum: sha1:5415e596290eeda3202bcdfca31a66de550527dd + pristine_git_object: 05315314647f7db6970de93e8ab0c5e17ccac883 tests/troubleshooting_test.go: id: 93cb404911ce last_write_checksum: sha1:49e7c6f45b1baed707c82e0dd72de6c6bc12a057 @@ -7192,8 +9201,12 @@ trackedFiles: pristine_git_object: c28b73ad8c1100262680cd4ce7841f2b277df05b tools.go: id: 3387d70491f4 - last_write_checksum: sha1:f72895b842d910011c247dd4e9e4b1e007f97249 - pristine_git_object: 74bc08d9e8a27217db0965285b4038f957c6e10e + last_write_checksum: sha1:bfb78c07b481781b0b37d5b06126c5a4ec8afead + pristine_git_object: e29e5f5c1802247900ae37fd6186256e66f8c972 + troubleshooting.go: + id: 353bd30f0160 + last_write_checksum: sha1:6935117c5338f6b39ee452eddfe4daece3991c48 + pristine_git_object: 948d7986852193f1cbf5d92e581db9a85d72a823 types/bigint.go: id: 6f911e1a03c3 last_write_checksum: sha1:49b004005d0461fb04b846eca062b070b0360b31 @@ -7525,7 +9538,7 @@ examples: application/json: {} responses: "200": - application/json: {"gleanAssist": {"activityInsights": [{"user": {"name": "George Clooney", "obfuscatedId": "abc123", "relatedDocuments": [{"querySuggestion": {"query": "app:github type:pull author:mortimer", "searchProviderInfo": {"name": "Google", "searchLinkUrlTemplate": "https://www.google.com/search?q={query}&hl=en"}, "label": "Mortimer's PRs", "datasource": "github", "requestOptions": {"datasourceFilter": "JIRA", "datasourcesFilter": ["JIRA"], "queryOverridesFacetFilters": true, "facetFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "facetFilterSets": [{"filters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}]}, {"filters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}]}, {"filters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}]}], "facetBucketSize": 867945, "authTokens": [{"accessToken": "123abc", "datasource": "gmail", "scope": "email profile https://www.googleapis.com/auth/gmail.readonly", "tokenType": "Bearer", "authUser": "1"}]}, "ranges": [{"startIndex": 617092, "document": {"metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "components": ["Backend", "Networking"], "status": "[\"Done\"]", "pins": [{"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": ""}, {"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": ""}], "collections": [{"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"role": "OWNER"}], "removedRoles": [{"role": "ANSWER_MODERATOR"}, {"role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "items": [{"collectionId": 954550, "shortcut": {"inputAlias": "", "roles": [{"role": "OWNER"}, {"role": "OWNER"}, {"role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"role": "OWNER"}], "removedRoles": [{"role": "ANSWER_MODERATOR"}, {"role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "items": [{"collectionId": 954550, "shortcut": {"inputAlias": "", "roles": [{"role": "OWNER"}, {"role": "OWNER"}, {"role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"role": "OWNER"}], "removedRoles": [{"role": "ANSWER_MODERATOR"}, {"role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "items": [{"collectionId": 954550, "shortcut": {"inputAlias": "", "roles": [{"role": "OWNER"}, {"role": "OWNER"}, {"role": "OWNER"}]}, "itemType": "COLLECTION"}]}], "interactions": {"reacts": [{}, {}], "shares": [{"numDaysAgo": 448639}]}, "verification": {"state": "DEPRECATED", "metadata": {"reminders": [{"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 640737}], "lastReminder": {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 872106}}}, "shortcuts": [{"inputAlias": ""}, {"inputAlias": ""}], "customData": {"someCustomField": {}}}}}], "inputDetails": {"hasCopyPaste": true}}, "results": [{"title": "title", "url": "https://example.com/foo/bar", "nativeAppUrl": "slack://foo/bar", "snippets": [{"mimeType": "mimeType", "snippet": "snippet"}]}]}, {"querySuggestion": {"query": "app:github type:pull author:mortimer", "searchProviderInfo": {"name": "Google", "searchLinkUrlTemplate": "https://www.google.com/search?q={query}&hl=en"}, "label": "Mortimer's PRs", "datasource": "github", "requestOptions": {"datasourceFilter": "JIRA", "datasourcesFilter": ["JIRA"], "queryOverridesFacetFilters": true, "facetFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "facetFilterSets": [{"filters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}]}, {"filters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}]}, {"filters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}]}], "facetBucketSize": 867945, "authTokens": [{"accessToken": "123abc", "datasource": "gmail", "scope": "email profile https://www.googleapis.com/auth/gmail.readonly", "tokenType": "Bearer", "authUser": "1"}]}, "ranges": [{"startIndex": 617092, "document": {"metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "components": ["Backend", "Networking"], "status": "[\"Done\"]", "pins": [{"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": ""}, {"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": ""}], "collections": [{"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"role": "OWNER"}], "removedRoles": [{"role": "ANSWER_MODERATOR"}, {"role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "items": [{"collectionId": 954550, "shortcut": {"inputAlias": "", "roles": [{"role": "OWNER"}, {"role": "OWNER"}, {"role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"role": "OWNER"}], "removedRoles": [{"role": "ANSWER_MODERATOR"}, {"role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "items": [{"collectionId": 954550, "shortcut": {"inputAlias": "", "roles": [{"role": "OWNER"}, {"role": "OWNER"}, {"role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"role": "OWNER"}], "removedRoles": [{"role": "ANSWER_MODERATOR"}, {"role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "items": [{"collectionId": 954550, "shortcut": {"inputAlias": "", "roles": [{"role": "OWNER"}, {"role": "OWNER"}, {"role": "OWNER"}]}, "itemType": "COLLECTION"}]}], "interactions": {"reacts": [{}, {}], "shares": [{"numDaysAgo": 448639}]}, "verification": {"state": "DEPRECATED", "metadata": {"reminders": [{"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 640737}], "lastReminder": {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 872106}}}, "shortcuts": [{"inputAlias": ""}, {"inputAlias": ""}], "customData": {"someCustomField": {}}}}}], "inputDetails": {"hasCopyPaste": true}}, "results": [{"title": "title", "url": "https://example.com/foo/bar", "nativeAppUrl": "slack://foo/bar", "snippets": [{"mimeType": "mimeType", "snippet": "snippet"}]}]}], "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "querySuggestions": {"suggestions": [{"query": "app:github type:pull author:mortimer", "label": "Mortimer's PRs", "datasource": "github"}]}, "inviteInfo": {"invites": [{}, {}, {}]}, "customFields": [{"label": "", "values": [{}], "displayable": true}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "activity": "ALL"}]}, "overviewResponse": {"perUserInsights": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123"}}]}, "assistantResponse": {"perUserInsights": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123"}}]}, "agentsResponse": {"topAgentsInsights": [{"icon": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}], "agentsUsageByDepartmentInsights": [{"icon": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}], "agentUsersInsights": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123"}}], "agentsTimeSavedInsights": [{"icon": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}} + application/json: {"gleanAssist": {"activityInsights": [{"user": {"name": "George Clooney", "obfuscatedId": "abc123", "relatedDocuments": [{"querySuggestion": {"query": "app:github type:pull author:mortimer", "searchProviderInfo": {"name": "Google", "searchLinkUrlTemplate": "https://www.google.com/search?q={query}&hl=en"}, "label": "Mortimer's PRs", "datasource": "github", "requestOptions": {"datasourceFilter": "JIRA", "datasourcesFilter": ["JIRA"], "queryOverridesFacetFilters": true, "facetFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "facetFilterSets": [{"filters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}]}, {"filters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}]}, {"filters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}]}], "facetBucketSize": 867945, "authTokens": [{"accessToken": "123abc", "datasource": "gmail", "scope": "email profile https://www.googleapis.com/auth/gmail.readonly", "tokenType": "Bearer", "authUser": "1"}]}, "ranges": [{"startIndex": 617092, "document": {"metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "components": ["Backend", "Networking"], "status": "[\"Done\"]", "pins": [{"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": ""}, {"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": ""}], "collections": [{"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"role": "OWNER"}], "removedRoles": [{"role": "ANSWER_MODERATOR"}, {"role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "items": [{"collectionId": 954550, "shortcut": {"inputAlias": "", "roles": [{"role": "OWNER"}, {"role": "OWNER"}, {"role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"role": "OWNER"}], "removedRoles": [{"role": "ANSWER_MODERATOR"}, {"role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "items": [{"collectionId": 954550, "shortcut": {"inputAlias": "", "roles": [{"role": "OWNER"}, {"role": "OWNER"}, {"role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"role": "OWNER"}], "removedRoles": [{"role": "ANSWER_MODERATOR"}, {"role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "items": [{"collectionId": 954550, "shortcut": {"inputAlias": "", "roles": [{"role": "OWNER"}, {"role": "OWNER"}, {"role": "OWNER"}]}, "itemType": "COLLECTION"}]}], "interactions": {"reacts": [{}, {}], "shares": [{"numDaysAgo": 448639}]}, "verification": {"state": "DEPRECATED", "metadata": {"reminders": [{"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 640737}], "lastReminder": {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 872106}}}, "shortcuts": [{"inputAlias": ""}, {"inputAlias": ""}], "customData": {"someCustomField": {}}}}}], "inputDetails": {"hasCopyPaste": true}}, "results": [{"title": "title", "url": "https://example.com/foo/bar", "nativeAppUrl": "slack://foo/bar", "snippets": [{"mimeType": "mimeType", "snippet": "snippet"}]}]}, {"querySuggestion": {"query": "app:github type:pull author:mortimer", "searchProviderInfo": {"name": "Google", "searchLinkUrlTemplate": "https://www.google.com/search?q={query}&hl=en"}, "label": "Mortimer's PRs", "datasource": "github", "requestOptions": {"datasourceFilter": "JIRA", "datasourcesFilter": ["JIRA"], "queryOverridesFacetFilters": true, "facetFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "facetFilterSets": [{"filters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}]}, {"filters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}]}, {"filters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}]}], "facetBucketSize": 867945, "authTokens": [{"accessToken": "123abc", "datasource": "gmail", "scope": "email profile https://www.googleapis.com/auth/gmail.readonly", "tokenType": "Bearer", "authUser": "1"}]}, "ranges": [{"startIndex": 617092, "document": {"metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "components": ["Backend", "Networking"], "status": "[\"Done\"]", "pins": [{"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": ""}, {"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": ""}], "collections": [{"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"role": "OWNER"}], "removedRoles": [{"role": "ANSWER_MODERATOR"}, {"role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "items": [{"collectionId": 954550, "shortcut": {"inputAlias": "", "roles": [{"role": "OWNER"}, {"role": "OWNER"}, {"role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"role": "OWNER"}], "removedRoles": [{"role": "ANSWER_MODERATOR"}, {"role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "items": [{"collectionId": 954550, "shortcut": {"inputAlias": "", "roles": [{"role": "OWNER"}, {"role": "OWNER"}, {"role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"role": "OWNER"}], "removedRoles": [{"role": "ANSWER_MODERATOR"}, {"role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "items": [{"collectionId": 954550, "shortcut": {"inputAlias": "", "roles": [{"role": "OWNER"}, {"role": "OWNER"}, {"role": "OWNER"}]}, "itemType": "COLLECTION"}]}], "interactions": {"reacts": [{}, {}], "shares": [{"numDaysAgo": 448639}]}, "verification": {"state": "DEPRECATED", "metadata": {"reminders": [{"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 640737}], "lastReminder": {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 872106}}}, "shortcuts": [{"inputAlias": ""}, {"inputAlias": ""}], "customData": {"someCustomField": {}}}}}], "inputDetails": {"hasCopyPaste": true}}, "results": [{"title": "title", "url": "https://example.com/foo/bar", "nativeAppUrl": "slack://foo/bar", "snippets": [{"mimeType": "mimeType", "snippet": "snippet"}]}]}], "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "querySuggestions": {"suggestions": [{"query": "app:github type:pull author:mortimer", "label": "Mortimer's PRs", "datasource": "github"}]}, "inviteInfo": {"invites": [{}, {}, {}]}, "customFields": [{"label": "", "values": [{}], "displayable": true}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "activity": "ALL"}]}, "overviewResponse": {"perUserInsights": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123"}}]}, "assistantResponse": {"perUserInsights": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123"}}]}, "agentsResponse": {"topAgentsInsights": [{"icon": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}], "topUseCasesInsights": [{"topAgentIcon": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}], "agentsUsageByDepartmentInsights": [{"icon": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}], "agentUsersInsights": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123"}}], "agentsTimeSavedInsights": [{"icon": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}, "mcpBreakdownResponse": {"usersBreakdown": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123"}}]}} messages: speakeasy-default-messages: requestBody: @@ -7991,6 +10004,149 @@ examples: application/json: {"configuration": {"values": {}}} "400": application/json: {} + getChatFile: + speakeasy-default-get-chat-file: + parameters: + path: + fileId: "" + responses: + "200": + application/octet-stream: "x-file: example.file" + editAgent: + speakeasy-default-edit-agent: + parameters: + path: + agent_id: "" + requestBody: + application/json: {} + responses: + "404": + application/json: {} + getPersonPhoto: + speakeasy-default-get-person-photo: + parameters: + path: + person_id: "" + responses: + "200": + image/png: "x-file: example.file" + image/jpeg: "x-file: example.file" + getActionPackAuthStatus: + speakeasy-default-get-action-pack-auth-status: + parameters: + path: + actionPackId: "" + responses: + "200": + application/json: {"actionPack": {"authenticated": true, "authType": "AUTH_USER_OAUTH"}} + authorizeActionPack: + speakeasy-default-authorize-action-pack: + parameters: + path: + actionPackId: "" + requestBody: + application/json: {"returnUrl": "https://merry-allocation.org/"} + responses: + "200": + application/json: {"redirectUrl": "https://unconscious-diversity.net"} + put_/rest/api/index/document/{docId}/custom-metadata/{groupName}: + speakeasy-default-put-/rest/api/index/document/{doc-id}/custom-metadata/{group-name}: + parameters: + path: + docId: "" + groupName: "" + requestBody: + application/json: {"customMetadata": []} + responses: + "200": + application/json: {"success": true} + "400": + application/json: {"error": ""} + "500": + application/json: {"error": ""} + delete_/rest/api/index/document/{docId}/custom-metadata/{groupName}: + speakeasy-default-delete-/rest/api/index/document/{doc-id}/custom-metadata/{group-name}: + parameters: + path: + docId: "" + groupName: "" + responses: + "200": + application/json: {"success": true} + "400": + application/json: {"error": ""} + "500": + application/json: {"error": ""} + get_/rest/api/index/custom-metadata/schema/{groupName}: + speakeasy-default-get-/rest/api/index/custom-metadata/schema/{group-name}: + parameters: + path: + groupName: "" + responses: + "200": + application/json: {"metadataKeys": []} + "401": + application/json: {"error": ""} + "500": + application/json: {"error": ""} + put_/rest/api/index/custom-metadata/schema/{groupName}: + speakeasy-default-put-/rest/api/index/custom-metadata/schema/{group-name}: + parameters: + path: + groupName: "" + requestBody: + application/json: {"metadataKeys": []} + responses: + "200": + application/json: {"success": true} + "400": + application/json: {"error": ""} + "500": + application/json: {"error": ""} + delete_/rest/api/index/custom-metadata/schema/{groupName}: + speakeasy-default-delete-/rest/api/index/custom-metadata/schema/{group-name}: + parameters: + path: + groupName: "" + responses: + "200": + application/json: {"success": true} + "400": + application/json: {"error": ""} + "500": + application/json: {"error": ""} + post_/api/index/v1/debug/{datasource}/document/events: + speakeasy-default-post-/api/index/v1-/debug/{datasource}/document/events: + parameters: + path: + datasource: "" + requestBody: + application/json; charset=UTF-8: {"objectType": "Article", "docId": "art123", "startDate": "2025-05-01", "maxEvents": 50} + responses: + "200": + application/json; charset=UTF-8: {"lifeCycleEvents": [{"event": "INDEXED", "timestamp": "2021-08-06T17:58:01.000Z"}]} + getDatasourceCredentialStatus: + speakeasy-default-get-datasource-credential-status: + parameters: + path: + datasourceInstanceId: "o365sharepoint_abc123" + responses: + "200": + application/json: {"status": "VALID"} + "400": + application/json: {} + rotateDatasourceCredentials: + speakeasy-default-rotate-datasource-credentials: + parameters: + path: + datasourceInstanceId: "o365sharepoint_abc123" + requestBody: + application/json: {"credentials": {"values": {"key": {}}}} + responses: + "200": + application/json: {"status": "MISSING"} + "400": + application/json: {} examplesVersion: 1.0.2 generatedTests: activity: "2025-04-29T16:18:24+01:00" @@ -8139,6 +10295,18 @@ generatedTests: checkdatasourceauth: "2026-02-19T15:51:40Z" getDatasourceInstanceConfiguration: "2026-03-09T18:37:01Z" updateDatasourceInstanceConfiguration: "2026-03-09T18:37:01Z" + getChatFile: "2026-06-02T03:34:38Z" + getPersonPhoto: "2026-06-02T03:34:38Z" + getActionPackAuthStatus: "2026-06-02T03:34:38Z" + authorizeActionPack: "2026-06-02T03:34:38Z" + put_/rest/api/index/document/{docId}/custom-metadata/{groupName}: "2026-06-02T03:34:38Z" + delete_/rest/api/index/document/{docId}/custom-metadata/{groupName}: "2026-06-02T03:34:38Z" + get_/rest/api/index/custom-metadata/schema/{groupName}: "2026-06-02T03:34:38Z" + put_/rest/api/index/custom-metadata/schema/{groupName}: "2026-06-02T03:34:38Z" + delete_/rest/api/index/custom-metadata/schema/{groupName}: "2026-06-02T03:34:38Z" + getDatasourceCredentialStatus: "2026-06-02T03:34:38Z" + rotateDatasourceCredentials: "2026-06-02T03:34:38Z" +releaseNotes: "## Go SDK Changes:\n* `Glean.Client.Collections.AddItems()`: `response` **Changed** (Breaking ⚠️)\n* `Glean.Chat.GetChatFile()`: **Added**\n* `Glean.Agents.EditAgent()`: **Added**\n* `Glean.Entities.GetPersonPhoto()`: **Added**\n* `Glean.Tools.GetActionPackAuthStatus()`: **Added**\n* `Glean.Tools.AuthorizeActionPack()`: **Added**\n* `Glean.Indexing.CustomMetadata.Upsert()`: **Added**\n* `Glean.Indexing.CustomMetadata.Delete()`: **Added**\n* `Glean.Indexing.CustomMetadata.GetSchema()`: **Added**\n* `Glean.Indexing.CustomMetadata.UpsertSchema()`: **Added**\n* `Glean.Indexing.CustomMetadata.DeleteSchema()`: **Added**\n* `Glean.Troubleshooting.Post/api/index/v1/debug/{datasource}/document/events()`: **Added**\n* `Glean.Datasources.GetDatasourceCredentialStatus()`: **Added**\n* `Glean.Datasources.RotateDatasourceCredentials()`: **Added**\n* `Glean.Client.Activity.Feedback()`: \n * `request.Feedback1.Category` **Changed**\n* `Glean.Client.Announcements.Create()`: \n * `request.CreateAnnouncementRequest.Body.StructuredList[].Document.Metadata.Author.RelatedDocuments[].Results[].StructuredResults[].Answer` **Changed**\n * `response` **Changed**\n* `Glean.Client.Announcements.Update()`: \n * `request.UpdateAnnouncementRequest.Body.StructuredList[].Document.Metadata.Author.RelatedDocuments[].Results[].StructuredResults[].Answer` **Changed**\n * `response` **Changed**\n* `Glean.Client.Answers.Create()`: \n * `request.CreateAnswerRequest.Data.AddedRoles[].Person.RelatedDocuments[]` **Changed**\n * `response` **Changed**\n* `Glean.Client.Answers.Update()`: \n * `request.EditAnswerRequest.AddedRoles[].Person.RelatedDocuments[]` **Changed**\n * `response` **Changed**\n* `Glean.Client.Answers.Retrieve()`: `response.AnswerResult.Answer` **Changed**\n* `Glean.Client.Answers.List()`: `response.AnswerResults[].Answer` **Changed**\n* `Glean.Client.Chat.Create()`: \n * `request.ChatRequest.Messages[].Citations[].SourceDocument.Metadata.Author.RelatedDocuments[].Results[].StructuredResults[].Answer` **Changed**\n * `response.Messages[].Citations[].SourceDocument.Metadata.Author.RelatedDocuments[].Results[].StructuredResults[].Answer` **Changed**\n* `Glean.Client.Chat.Retrieve()`: `response.ChatResult.Chat.CreatedBy.RelatedDocuments[]` **Changed**\n* `Glean.Client.Chat.List()`: `response.ChatResults[].Chat.CreatedBy.RelatedDocuments[]` **Changed**\n* `Glean.Client.Chat.CreateStream()`: \n * `request.ChatRequest.Messages[].Citations[].SourceDocument.Metadata.Author.RelatedDocuments[].Results[].StructuredResults[].Answer` **Changed**\n* `Glean.Client.Collections.Create()`: \n * `request.CreateCollectionRequest.AddedRoles[].Person.RelatedDocuments[]` **Changed**\n * `response.union(class (0))` **Changed**\n * `error.ErrorCode.Enum(corruptItem)` **Added**\n* `Glean.Client.Collections.Delete()`: `error.ErrorCode.Enum(corruptItem)` **Added**\n* `Glean.Client.Collections.DeleteItem()`: `response.Collection` **Changed**\n* `Glean.Client.Collections.Update()`: \n * `request.EditCollectionRequest.AddedRoles[].Person.RelatedDocuments[]` **Changed**\n * `response` **Changed**\n * `error.ErrorCode.Enum(corruptItem)` **Added**\n* `Glean.Client.Collections.UpdateItem()`: `response.Collection` **Changed**\n* `Glean.Client.Collections.Retrieve()`: `response` **Changed**\n* `Glean.Client.Collections.List()`: `response.Collections[]` **Changed**\n* `Glean.Client.Documents.Retrieve()`: `response.Documents.Map.union(Document).Metadata.Author.RelatedDocuments[].Results[].StructuredResults[].Answer` **Changed**\n* `Glean.Client.Documents.RetrieveByFacets()`: `response.Documents[].Metadata.Author.RelatedDocuments[].Results[].StructuredResults[].Answer` **Changed**\n* `Glean.Client.Insights.Retrieve()`: \n * `request.InsightsRequest` **Changed**\n * `response` **Changed**\n* `Glean.Client.Messages.Retrieve()`: `response.SearchResponse.Results[].StructuredResults[]` **Changed**\n* `Glean.Client.Pins.Update()`: `response.Attribution.RelatedDocuments[]` **Changed**\n* `Glean.Client.Pins.Retrieve()`: `response.Pin.Attribution.RelatedDocuments[]` **Changed**\n* `Glean.Client.Pins.List()`: `response.Pins[].Attribution.RelatedDocuments[]` **Changed**\n* `Glean.Client.Pins.Create()`: `response.Attribution.RelatedDocuments[]` **Changed**\n* `Glean.Client.Search.QueryAsAdmin()`: \n * `request.SearchRequest.SourceDocument.Metadata.Author.RelatedDocuments[].Results[].StructuredResults[].Answer` **Changed**\n * `response.Results[].StructuredResults[]` **Changed**\n* `Glean.Client.Search.Autocomplete()`: `response.Results[].Document.Metadata.Author.RelatedDocuments[].Results[].StructuredResults[].Answer` **Changed**\n* `Glean.Client.Search.RetrieveFeed()`: \n * `request.FeedRequest.Categories[]` **Changed**\n * `response.Results[]` **Changed**\n* `Glean.Client.Search.Recommendations()`: \n * `request.RecommendationsRequest.SourceDocument.Metadata.Author.RelatedDocuments[].Results[].StructuredResults[].Answer` **Changed**\n * `response.Results[].StructuredResults[]` **Changed**\n* `Glean.Client.Search.Query()`: \n * `request.SearchRequest.SourceDocument.Metadata.Author.RelatedDocuments[].Results[].StructuredResults[].Answer` **Changed**\n * `response.Results[].StructuredResults[]` **Changed**\n* `Glean.Client.Entities.List()`: `response.Results[].RelatedDocuments[]` **Changed**\n* `Glean.Client.Entities.ReadPeople()`: `response.Results[].RelatedDocuments[]` **Changed**\n* `Glean.Client.Shortcuts.Create()`: \n * `request.CreateShortcutRequest.Data.AddedRoles[].Person.RelatedDocuments[]` **Changed**\n * `response.Shortcut.AddedRoles[].Person.RelatedDocuments[]` **Changed**\n* `Glean.Client.Shortcuts.Retrieve()`: `response.Shortcut.AddedRoles[].Person.RelatedDocuments[]` **Changed**\n* `Glean.Client.Shortcuts.List()`: `response.Shortcuts[].AddedRoles[].Person.RelatedDocuments[]` **Changed**\n* `Glean.Client.Shortcuts.Update()`: \n * `request.UpdateShortcutRequest.AddedRoles[].Person.RelatedDocuments[]` **Changed**\n * `response.Shortcut.AddedRoles[].Person.RelatedDocuments[]` **Changed**\n* `Glean.Client.Verification.AddReminder()`: `response.Metadata.LastVerifier.RelatedDocuments[]` **Changed**\n* `Glean.Client.Verification.List()`: `response.Documents[].Metadata.LastVerifier.RelatedDocuments[]` **Changed**\n* `Glean.Client.Verification.Verify()`: `response.Metadata.LastVerifier.RelatedDocuments[]` **Changed**\n" generatedFiles: - .devcontainer/README.md - .devcontainer/devcontainer.json diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index e97080a9..4c1d680f 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -32,7 +32,7 @@ generation: generateNewTests: true skipResponseBodyAssertions: true go: - version: 0.11.43 + version: 0.12.0 additionalDependencies: {} allowUnknownFieldsInWeakUnions: false baseErrorName: GleanError diff --git a/.speakeasy/glean-merged-spec.yaml b/.speakeasy/glean-merged-spec.yaml index e084beac..55329d85 100644 --- a/.speakeasy/glean-merged-spec.yaml +++ b/.speakeasy/glean-merged-spec.yaml @@ -2,7 +2,7 @@ openapi: 3.0.0 info: version: 0.9.0 title: Glean API - x-source-commit-sha: 0aa266469924048ad422bf6314104f79b477e46a + x-source-commit-sha: 4dcadf1b3df789b8bc533a75a5ce1a62b32e828e description: | # Introduction In addition to the data sources that Glean has built-in support for, Glean also provides a REST API that enables customers to put arbitrary content in the search index. This is useful, for example, for doing permissions-aware search over content in internal tools that reside on-prem as well as for searching over applications that Glean does not currently support first class. In addition these APIs allow the customer to push organization data (people info, organization structure etc) into Glean. @@ -22,7 +22,7 @@ info: These API clients provide type-safe, idiomatic interfaces for working with Glean IndexingAPIs in your language of choice. x-logo: url: https://app.glean.com/images/glean-text2.svg - x-open-api-commit-sha: 122e22b59935f3ed61845da28a7c607ebc115c9b + x-open-api-commit-sha: e50b52653d92a5a7c93c6fd65e215d9d26a232ac x-speakeasy-name: 'Glean API' servers: - url: https://{instance}-be.glean.com @@ -850,6 +850,49 @@ paths: - APIToken: [] x-speakeasy-name-override: deleteFiles x-speakeasy-group: client.chat + /rest/api/v1/chat-files/{fileId}: + get: + tags: + - Chat + summary: Download a chat file + description: | + Download the raw content of a file generated or uploaded during a chat session (for example, an image produced by the assistant). Returns the file bytes with a Content-Type header matching the file's MIME type. + operationId: getChatFile + x-visibility: Public + parameters: + - name: fileId + in: path + required: true + description: Identifier of the chat file to download. + schema: + type: string + - name: preview + in: query + required: false + description: | + When true and the file is a PDF, the response is served inline (Content-Disposition: inline) instead of as an attachment. + schema: + type: boolean + responses: + "200": + description: File content. + content: + application/octet-stream: + schema: + type: string + format: binary + "400": + description: File ID missing from path. + "401": + description: Missing or invalid API token. + "403": + description: Caller does not have access to the file. + "404": + description: File not found. + "500": + description: Internal server error. + security: + - APIToken: [] /rest/api/v1/agents/{agent_id}: get: tags: @@ -892,6 +935,49 @@ paths: - APIToken: [] x-speakeasy-group: client.agents x-speakeasy-name-override: retrieve + post: + tags: + - Agents + summary: Edit an agent + description: Creates a draft or publishes an [agent](https://developers.glean.com/agents/agents-api). Use `isDraft=true` to save a draft, or `isDraft=false` (or omit) to publish immediately. Only draft and publish modes are supported. + operationId: editAgent + x-visibility: Preview + parameters: + - $ref: "#/components/parameters/locale" + - $ref: "#/components/parameters/timezoneOffset" + - description: The ID of the agent. + required: true + schema: + type: string + title: Agent ID + description: The ID of the agent. + name: agent_id + in: path + requestBody: + required: true + content: + application/json: + schema: + $ref: "#/components/schemas/EditWorkflowRequest" + responses: + "200": + description: Success + "400": + description: Bad request + "401": + description: Not Authorized + "403": + description: Forbidden + "404": + description: Not Found + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "500": + description: Internal server error + security: + - APIToken: [] /rest/api/v1/agents/{agent_id}/schemas: get: tags: @@ -2036,6 +2122,58 @@ paths: - APIToken: [] x-speakeasy-name-override: readPeople x-speakeasy-group: client.entities + /rest/api/v1/people/{person_id}/photo: + get: + tags: + - Entities + summary: Get person photo + description: | + Returns the profile photo bytes for a person whose photo is stored in Glean (crawled from an identity source or user-uploaded via admin console). Photos hosted externally (e.g. Slack CDN) are not served by this endpoint; callers should follow the photoUrl from /people or /listentities directly. Responses include a Cache-Control header (max-age=3600) to reduce redundant fetches. + operationId: getPersonPhoto + x-visibility: Public + parameters: + - name: person_id + in: path + required: true + description: The obfuscated ID of the person whose photo to retrieve. + schema: + type: string + - name: ds + in: query + required: false + description: | + Optional datasource override for crawled photos (e.g. AZURE, GDRIVE, OKTA). When omitted, the datasource is derived from the person's stored photo URL or the deployment's primary person datasource. + schema: + type: string + responses: + "200": + description: Photo bytes returned successfully. + headers: + Cache-Control: + description: Caching directive for the photo response. + schema: + type: string + example: public, max-age=3600 + content: + image/png: + schema: + type: string + format: binary + image/jpeg: + schema: + type: string + format: binary + "400": + description: Missing person_id parameter. + "401": + description: Not Authorized. + "404": + description: | + Person not found, person has no photo, or photo is not hosted by Glean (follow photoUrl from /people or /listentities directly). + "429": + description: Too Many Requests. + security: + - APIToken: [] /rest/api/v1/createshortcut: post: tags: @@ -2429,6 +2567,80 @@ paths: - APIToken: [] x-speakeasy-name-override: run x-speakeasy-group: client.tools + /rest/api/v1/actions/actionpack/{actionPackId}/auth: + parameters: + - in: path + name: actionPackId + required: true + description: ID of the action pack to query or authorize. + schema: + type: string + get: + tags: + - Tools + summary: Get end-user authentication status for an action pack. + description: | + Reports whether the calling user is already authenticated against the third-party + tool backing the specified action pack. Intended for headless / server-driven clients + that render an "Authorize" prompt when the user has not yet consented to the tool. + operationId: getActionPackAuthStatus + x-visibility: Preview + responses: + "200": + description: Successful operation + content: + application/json: + schema: + $ref: "#/components/schemas/ActionPackAuthStatusResponse" + "400": + description: Bad Request + "401": + description: Unauthorized + "404": + description: Action pack not found + "429": + description: Too Many Requests + security: + - APIToken: [] + post: + tags: + - Tools + summary: Start the OAuth authorization flow for an action pack. + description: | + Starts the third-party OAuth flow for the specified action pack and returns the + redirect URL that the client should navigate the end user to. After the OAuth + callback completes, the user's browser is redirected back to `returnUrl` with a + status query parameter (`?glean_action_auth=success|error&actionPackId=...`). + + `returnUrl` must match the tenant's configured return URL allowlist; otherwise the + request is rejected with 400. + operationId: authorizeActionPack + x-visibility: Preview + requestBody: + required: true + content: + application/json: + schema: + $ref: "#/components/schemas/AuthorizeActionPackRequest" + responses: + "200": + description: Successful operation + content: + application/json: + schema: + $ref: "#/components/schemas/AuthorizeActionPackResponse" + "400": + description: Invalid request (e.g. returnUrl not in allowlist, unsupported auth type) + "401": + description: Unauthorized + "403": + description: User not entitled to the action pack + "404": + description: Action pack not found + "429": + description: Too Many Requests + security: + - APIToken: [] /api/index/v1/indexdocument: post: summary: Index document @@ -3510,6 +3722,208 @@ paths: description: Conflict x-speakeasy-name-override: upload x-speakeasy-group: indexing.shortcuts + /api/index/v1/debug/{datasource}/document/events: + post: + summary: | + Beta: Get document lifecycle events + description: | + Retrieves lifecycle events for a specific document including upload time, index times and deletions. Rate limited to 1 request per minute per datasource. Currently in beta, might undergo breaking changes without prior notice. + tags: + - Troubleshooting + security: + - APIToken: [] + parameters: + - name: datasource + in: path + description: The datasource to which the document belongs + required: true + schema: + type: string + requestBody: + content: + application/json; charset=UTF-8: + schema: + $ref: '#/components/schemas/DebugDocumentLifecycleRequest' + required: true + x-exportParamName: DebugDocumentLifecycleRequest + responses: + "200": + description: OK + content: + application/json; charset=UTF-8: + schema: + $ref: '#/components/schemas/DebugDocumentLifecycleResponse' + "400": + description: Bad Request + "401": + description: Not Authorized + "429": + description: Too Many Requests + x-beta: true + /rest/api/index/document/{docId}/custom-metadata/{groupName}: + put: + summary: Add or update custom metadata + description: Associates custom metadata with a specific document. Custom metadata enables you to enrich documents with additional structured information that can be used for search, filtering, and faceting. + tags: + - Custom Metadata + security: + - APIToken: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CustomMetadataPutRequest' + required: true + x-exportParamName: CustomMetadataPutRequest + responses: + "200": + $ref: '#/components/responses/SuccessResponse' + "400": + $ref: '#/components/responses/BadRequestError' + "401": + $ref: '#/components/responses/UnauthorizedError' + "404": + $ref: '#/components/responses/NotFoundError' + "429": + $ref: '#/components/responses/TooManyRequestsError' + "500": + $ref: '#/components/responses/InternalServerError' + x-speakeasy-name-override: upsert + x-speakeasy-group: indexing.customMetadata + delete: + summary: Remove custom metadata + description: Removes all custom metadata for the specified metadata group from a document. + tags: + - Custom Metadata + security: + - APIToken: [] + responses: + "200": + $ref: '#/components/responses/SuccessResponse' + "400": + $ref: '#/components/responses/BadRequestError' + "401": + $ref: '#/components/responses/UnauthorizedError' + "404": + $ref: '#/components/responses/NotFoundError' + "429": + $ref: '#/components/responses/TooManyRequestsError' + "500": + $ref: '#/components/responses/InternalServerError' + x-speakeasy-name-override: delete + x-speakeasy-group: indexing.customMetadata + servers: + - url: https://{instance}-be.glean.com + variables: + instance: + default: instance-name + description: The instance name (typically the email domain without the TLD) that determines the deployment backend. + parameters: + - name: docId + in: path + description: Unique Glean identifier of the document + required: true + schema: + type: string + - name: groupName + in: path + description: Name of the metadata group as specified while adding schema + required: true + schema: + type: string + /rest/api/index/custom-metadata/schema/{groupName}: + get: + summary: Retrieve metadata schema + description: Retrieves the current schema definition for a metadata group. + tags: + - Custom Metadata + security: + - APIToken: [] + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/CustomMetadataSchema' + "401": + $ref: '#/components/responses/UnauthorizedError' + "404": + $ref: '#/components/responses/NotFoundError' + "429": + $ref: '#/components/responses/TooManyRequestsError' + "500": + $ref: '#/components/responses/InternalServerError' + x-speakeasy-name-override: getSchema + x-speakeasy-group: indexing.customMetadata + put: + summary: Create or update metadata schema + description: Defines or updates the schema for a metadata group. Schemas should be defined before indexing metadata. + tags: + - Custom Metadata + security: + - APIToken: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CustomMetadataSchema' + required: true + x-exportParamName: CustomMetadataSchema + responses: + "200": + $ref: '#/components/responses/SuccessResponse' + "400": + $ref: '#/components/responses/BadRequestError' + "401": + $ref: '#/components/responses/UnauthorizedError' + "409": + description: Conflict - Schema already exists with incompatible changes + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorInfoResponse' + "429": + $ref: '#/components/responses/TooManyRequestsError' + "500": + $ref: '#/components/responses/InternalServerError' + x-speakeasy-name-override: upsertSchema + x-speakeasy-group: indexing.customMetadata + delete: + summary: Remove metadata schema + description: Deletes the schema definition for a metadata group. This does not delete existing metadata values on documents. + tags: + - Custom Metadata + security: + - APIToken: [] + responses: + "200": + $ref: '#/components/responses/SuccessResponse' + "400": + $ref: '#/components/responses/BadRequestError' + "401": + $ref: '#/components/responses/UnauthorizedError' + "404": + $ref: '#/components/responses/NotFoundError' + "429": + $ref: '#/components/responses/TooManyRequestsError' + "500": + $ref: '#/components/responses/InternalServerError' + x-speakeasy-name-override: deleteSchema + x-speakeasy-group: indexing.customMetadata + servers: + - url: https://{instance}-be.glean.com + variables: + instance: + default: instance-name + description: The instance name (typically the email domain without the TLD) that determines the deployment backend. + parameters: + - name: groupName + in: path + description: Name of the metadata group schema + required: true + schema: + type: string /rest/api/v1/governance/data/policies/{id}: get: operationId: getpolicy @@ -3968,23 +4382,110 @@ paths: schema: $ref: '#/components/schemas/ErrorResponse' x-visibility: Preview - patch: - operationId: updateDatasourceInstanceConfiguration - summary: Update datasource instance configuration + patch: + operationId: updateDatasourceInstanceConfiguration + summary: Update datasource instance configuration + description: | + Updates the greenlisted configuration values for a datasource instance. Only configuration keys that are exposed via the public API greenlist may be set. Returns the full greenlisted configuration after the update is applied. + tags: + - Datasources + security: + - APIToken: [] + parameters: + - $ref: '#/components/parameters/datasourceId' + - $ref: '#/components/parameters/instanceId' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateDatasourceConfigurationRequest' + required: true + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/DatasourceConfigurationResponse' + "400": + description: Invalid request + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + "401": + description: Not authorized + "403": + description: Forbidden + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + "404": + description: Datasource instance not found + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + x-visibility: Preview + /rest/api/v1/datasource/{datasourceInstanceId}/credentialstatus: + get: + operationId: getDatasourceCredentialStatus + summary: Get datasource instance credential status + description: | + Returns the current credential status for a datasource instance. Access is limited to callers with the ADMIN scope; the handler enforces this check. + tags: + - Datasources + security: + - APIToken: [] + parameters: + - $ref: '#/components/parameters/datasourceInstanceId' + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/DatasourceCredentialStatusResponse' + "400": + description: Invalid request + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + "401": + description: Not authorized + "403": + description: Forbidden + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + "404": + description: Datasource instance not found + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + x-visibility: Preview + /rest/api/v1/datasource/{datasourceInstanceId}/credentials: + post: + operationId: rotateDatasourceCredentials + summary: Rotate datasource instance credentials description: | - Updates the greenlisted configuration values for a datasource instance. Only configuration keys that are exposed via the public API greenlist may be set. Returns the full greenlisted configuration after the update is applied. + Rotates the credentials that a datasource instance uses to connect to its upstream system. Replaces the active credential material with the supplied values and returns the credential status after rotation. Access is limited to callers with the ADMIN scope; the handler enforces this check. + Only keys recognized as credential material for the datasource type may be set in `credentials.values` (e.g. `clientSecret`, `apiToken`, `privateKey`, depending on the configured auth method). Unrecognized keys, or keys that correspond to non-credential configuration, cause a 400; other instance configuration must be updated via PATCH /configure/datasources/{datasourceId}/instances/{instanceId}. tags: - Datasources security: - APIToken: [] parameters: - - $ref: '#/components/parameters/datasourceId' - - $ref: '#/components/parameters/instanceId' + - $ref: '#/components/parameters/datasourceInstanceId' requestBody: content: application/json: schema: - $ref: '#/components/schemas/UpdateDatasourceConfigurationRequest' + $ref: '#/components/schemas/RotateDatasourceCredentialsRequest' required: true responses: "200": @@ -3992,7 +4493,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DatasourceConfigurationResponse' + $ref: '#/components/schemas/DatasourceCredentialStatusResponse' "400": description: Invalid request content: @@ -4516,6 +5017,8 @@ components: description: The feature category to which the feedback applies. These should be broad product areas such as Announcements, Answers, Search, etc. rather than specific components or UI treatments within those areas. enum: - ANNOUNCEMENT + - ANSWERS + - ARTIFACTS - AUTOCOMPLETE - COLLECTIONS - FEED @@ -5636,6 +6139,12 @@ components: enum: - DOCUMENT - ASSISTANT + UgcTrackingSignals: + type: object + properties: + trackingToken: + type: string + description: An opaque token that represents this particular UGC. To be used for `/feedback` reporting. StructuredText: allOf: - $ref: "#/components/schemas/StructuredTextMutableProperties" @@ -5920,6 +6429,7 @@ components: allOf: - $ref: "#/components/schemas/CollectionMutableProperties" - $ref: "#/components/schemas/PermissionedObject" + - $ref: "#/components/schemas/UgcTrackingSignals" - type: object required: - id @@ -6062,6 +6572,7 @@ components: - $ref: "#/components/schemas/AnswerDocId" - $ref: "#/components/schemas/AnswerMutableProperties" - $ref: "#/components/schemas/PermissionedObject" + - $ref: "#/components/schemas/UgcTrackingSignals" - type: object required: - id @@ -7571,6 +8082,7 @@ components: - $ref: "#/components/schemas/AnnouncementMutableProperties" - $ref: "#/components/schemas/DraftProperties" - $ref: "#/components/schemas/PermissionedObject" + - $ref: "#/components/schemas/UgcTrackingSignals" - type: object properties: id: @@ -7681,7 +8193,14 @@ components: $ref: "#/components/schemas/Answer" trackingToken: type: string - description: An opaque token that represents this particular Answer. To be used for `/feedback` reporting. + description: Use `answer.trackingToken` instead. + deprecated: true + x-glean-deprecated: + id: 62de643b-f182-4d4d-a2fc-5e2cbfee7320 + introduced: "2026-05-07" + message: Use `answer.trackingToken` instead. + removal: "2027-01-15" + x-speakeasy-deprecation-message: "Deprecated on 2026-05-07, removal scheduled for 2027-01-15: Use `answer.trackingToken` instead." GetAnswerError: properties: errorType: @@ -8506,6 +9025,24 @@ components: message: type: string description: Client-facing error message describing what went wrong + WorkflowDraftableProperties: + properties: + name: + type: string + description: The name of the workflow. + WorkflowMutableProperties: + type: object + allOf: + - $ref: "#/components/schemas/WorkflowDraftableProperties" + - type: object + EditWorkflowRequest: + allOf: + - $ref: "#/components/schemas/WorkflowMutableProperties" + - type: object + properties: + id: + type: string + description: The workflow ID we want to update. ActionSummary: type: object description: Represents a minimal summary of an action. @@ -8709,6 +9246,7 @@ components: type: string enum: - EXISTING_ITEM + - CORRUPT_ITEM AddCollectionItemsResponse: properties: collection: @@ -8738,6 +9276,7 @@ components: - HEIGHT_VIOLATION - WIDTH_VIOLATION - NO_PERMISSIONS + - CORRUPT_ITEM CreateCollectionResponse: allOf: - type: object @@ -8843,11 +9382,18 @@ components: $ref: "#/components/schemas/Collection" rootCollection: $ref: "#/components/schemas/Collection" - trackingToken: - type: string - description: An opaque token that represents this particular Collection. To be used for `/feedback` reporting. error: $ref: "#/components/schemas/CollectionError" + trackingToken: + type: string + description: Use `collection.trackingToken` instead. + deprecated: true + x-glean-deprecated: + id: 2d6ca3a7-4763-4137-9ebd-740568fe8300 + introduced: "2026-05-07" + message: Use `collection.trackingToken` instead. + removal: "2027-01-15" + x-speakeasy-deprecation-message: "Deprecated on 2026-05-07, removal scheduled for 2027-01-15: Use `collection.trackingToken` instead." ListCollectionsRequest: properties: includeAudience: @@ -8960,6 +9506,11 @@ components: items: type: string description: Departments for which Insights are requested. + managerEmails: + type: array + items: + type: string + description: Manager emails whose teams should be filtered for. Empty array means no filtering. dayRange: $ref: "#/components/schemas/Period" description: Time period for which Insights are requested. @@ -8970,6 +9521,11 @@ components: items: type: string description: Departments for which Insights are requested. + managerEmails: + type: array + items: + type: string + description: Manager emails whose teams should be filtered for. Empty array means no filtering. dayRange: $ref: "#/components/schemas/Period" description: Time period for which Insights are requested. @@ -8985,9 +9541,77 @@ components: items: type: string description: Departments for which Insights are requested. + managerEmails: + type: array + items: + type: string + description: Manager emails whose teams should be filtered for. Empty array means no filtering. + dayRange: + $ref: "#/components/schemas/Period" + description: Time period for which Insights are requested. + McpInsightsRequest: + properties: + departments: + type: array + items: + type: string + description: Departments for which Insights are requested. + managerIds: + type: array + items: + type: string + description: Manager user IDs whose teams should be filtered for. Empty array means no filtering. + managerEmails: + type: array + items: + type: string + description: Manager emails whose teams should be filtered for. Empty array means no filtering. + dayRange: + $ref: "#/components/schemas/Period" + description: Time period for which Insights are requested. + McpBreakdownInsightsRequest: + properties: + departments: + type: array + items: + type: string + description: Departments for which Insights are requested. + managerIds: + type: array + items: + type: string + description: Manager user IDs whose teams should be filtered for. Empty array means no filtering. + managerEmails: + type: array + items: + type: string + description: Manager emails whose teams should be filtered for. Empty array means no filtering. dayRange: $ref: "#/components/schemas/Period" description: Time period for which Insights are requested. + breakdownType: + type: string + enum: + - USERS + - HOST_APPLICATIONS + - TOOLS + - SERVERS + description: Type of breakdown to return. + hostApplications: + type: array + items: + type: string + description: Host applications to filter by. Empty array means all host applications. + tools: + type: array + items: + type: string + description: MCP tools to filter by. Empty array means all tools. + servers: + type: array + items: + type: string + description: MCP servers to filter by. Empty array means all servers. InsightsRequest: properties: overviewRequest: @@ -9002,6 +9626,11 @@ components: $ref: "#/components/schemas/AgentsInsightsV2Request" x-visibility: Public description: If specified, will return data for the Agents section of the Insights Dashboard. + mcpRequest: + $ref: "#/components/schemas/McpInsightsRequest" + description: If specified, will return data for the MCP section of the Insights Dashboard. + mcpBreakdownRequest: + $ref: "#/components/schemas/McpBreakdownInsightsRequest" disablePerUserInsights: type: boolean description: If true, suppresses the generation of per-user Insights in the response. Default is false. @@ -9052,10 +9681,10 @@ components: properties: monthlyActiveUsers: type: integer - description: Number of current Monthly Active Users, in the specified departments. + description: Number of current Monthly Active Users. weeklyActiveUsers: type: integer - description: Number of current Weekly Active Users, in the specified departments. + description: Number of current Weekly Active Users. InsightsSearchSummary: allOf: - $ref: "#/components/schemas/CurrentActiveUsers" @@ -9107,6 +9736,9 @@ components: agentsActiveUsers: $ref: "#/components/schemas/CurrentActiveUsers" description: Agents-specific active user counts for the specified departments. + mcpActiveUsers: + $ref: "#/components/schemas/CurrentActiveUsers" + description: MCP active user counts for the specified departments. extensionSummary: $ref: "#/components/schemas/CurrentActiveUsers" ugcSummary: @@ -9151,6 +9783,9 @@ components: numAgentRuns: type: integer description: Total number of agent runs for this user over the specified time period. + numMcpCalls: + type: integer + description: Total number of MCP calls for this user over the specified time period. InsightsOverviewResponse: allOf: - $ref: "#/components/schemas/InsightsDepartmentsSummary" @@ -9163,6 +9798,13 @@ components: type: number format: float description: Search session satisfaction rate, over the specified time period in the specified departments. + deprecated: true + x-glean-deprecated: + id: 2652ea73-3e33-4409-ba8c-bda7b60a2c24 + introduced: "2026-05-13" + message: This property is no longer supported. Please contact Support for alternatives. + removal: "2027-01-15" + x-speakeasy-deprecation-message: "Deprecated on 2026-05-13, removal scheduled for 2027-01-15: This property is no longer supported. Please contact Support for alternatives." monthlyActiveUserTimeseries: $ref: "#/components/schemas/LabeledCountInfo" weeklyActiveUserTimeseries: @@ -9187,12 +9829,20 @@ components: $ref: "#/components/schemas/LabeledCountInfo" agentsDailyActiveUserTimeseries: $ref: "#/components/schemas/LabeledCountInfo" + mcpMonthlyActiveUserTimeseries: + $ref: "#/components/schemas/LabeledCountInfo" + mcpWeeklyActiveUserTimeseries: + $ref: "#/components/schemas/LabeledCountInfo" + mcpDailyActiveUserTimeseries: + $ref: "#/components/schemas/LabeledCountInfo" searchesTimeseries: $ref: "#/components/schemas/LabeledCountInfo" assistantInteractionsTimeseries: $ref: "#/components/schemas/LabeledCountInfo" agentRunsTimeseries: $ref: "#/components/schemas/LabeledCountInfo" + mcpCallsTimeseries: + $ref: "#/components/schemas/LabeledCountInfo" searchDatasourceCounts: type: object additionalProperties: @@ -9286,6 +9936,37 @@ components: downvoteCount: type: integer description: Total number of downvotes for this agent over the specified time period. + owner: + $ref: "#/components/schemas/Person" + description: | + The creator/owner of the agent. Absent if agent is deleted or owner is unknown. + AgentUseCaseInsight: + properties: + useCase: + type: string + description: Use case name + runCount: + type: integer + description: Total number of runs for this use case over the specified time period. + trend: + type: number + format: float + description: Percentage change in runs compared to the previous equivalent time period. + topDepartments: + type: string + description: Comma-separated list of the top departments using this use case. + topAgentId: + type: string + description: ID of the most-used agent for this use case. + topAgentName: + type: string + description: Name of the most-used agent for this use case. + topAgentIcon: + $ref: "#/components/schemas/IconConfig" + description: Icon of the most-used agent for this use case. + topAgentIsDeleted: + type: boolean + description: Indicates whether the top agent has been deleted. AgentsUsageByDepartmentInsight: properties: department: @@ -9375,6 +10056,10 @@ components: type: array items: $ref: "#/components/schemas/PerAgentInsight" + topUseCasesInsights: + type: array + items: + $ref: "#/components/schemas/AgentUseCaseInsight" agentsUsageByDepartmentInsights: type: array items: @@ -9400,6 +10085,109 @@ components: $ref: "#/components/schemas/LabeledCountInfo" downvotesTimeseries: $ref: "#/components/schemas/LabeledCountInfo" + McpInsightsResponse: + allOf: + - $ref: "#/components/schemas/CurrentActiveUsers" + - type: object + properties: + dailyActiveUsers: + type: integer + description: Number of current Daily Active Users. + monthlyActiveUserTimeseries: + $ref: "#/components/schemas/LabeledCountInfo" + weeklyActiveUserTimeseries: + $ref: "#/components/schemas/LabeledCountInfo" + dailyActiveUserTimeseries: + $ref: "#/components/schemas/LabeledCountInfo" + overallDailyActiveUserTimeseries: + $ref: "#/components/schemas/LabeledCountInfo" + topHostApplicationsActiveUserTimeseries: + type: array + items: + $ref: "#/components/schemas/LabeledCountInfo" + McpUserBreakdown: + properties: + person: + $ref: "#/components/schemas/Person" + totalCalls: + type: integer + description: Total number of MCP calls made by this user in the specified time period. + hostApplications: + type: array + items: + type: string + description: Host applications used by this user in the specified time period. + tools: + type: array + items: + type: string + description: MCP tools used by this user in the specified time period. + servers: + type: array + items: + type: string + description: MCP servers used by this user in the specified time period. + McpHostApplicationBreakdown: + properties: + hostApplication: + type: string + description: Host application name. + totalCalls: + type: integer + description: Total number of MCP calls made from this host application in the specified time period. + activeUsers: + type: integer + description: Total number of active users from this host application in the specified time period. + McpToolBreakdown: + properties: + tool: + type: string + description: MCP tool name. + totalCalls: + type: integer + description: Total number of MCP calls for this tool in the specified time period. + activeUsers: + type: integer + description: Total number of active users for this tool in the specified time period. + hostApplications: + type: array + items: + type: string + description: Host applications using this tool in the specified time period. + McpServerBreakdown: + properties: + server: + type: string + description: MCP server name. + totalCalls: + type: integer + description: Total number of MCP calls for this server in the specified time period. + activeUsers: + type: integer + description: Total number of active users for this server in the specified time period. + hostApplications: + type: array + items: + type: string + description: Host applications using this server in the specified time period. + McpBreakdownInsightsResponse: + properties: + usersBreakdown: + type: array + items: + $ref: "#/components/schemas/McpUserBreakdown" + hostApplicationsBreakdown: + type: array + items: + $ref: "#/components/schemas/McpHostApplicationBreakdown" + toolsBreakdown: + type: array + items: + $ref: "#/components/schemas/McpToolBreakdown" + serversBreakdown: + type: array + items: + $ref: "#/components/schemas/McpServerBreakdown" InsightsResponse: properties: gleanAssist: @@ -9417,6 +10205,10 @@ components: $ref: "#/components/schemas/AssistantInsightsResponse" agentsResponse: $ref: "#/components/schemas/AgentsInsightsV2Response" + mcpResponse: + $ref: "#/components/schemas/McpInsightsResponse" + mcpBreakdownResponse: + $ref: "#/components/schemas/McpBreakdownInsightsResponse" MessagesRequest: required: - id @@ -10192,11 +10984,16 @@ components: - STARTER_KIT - MID_DAY_CATCH_UP - QUERY_SUGGESTION + - COWORK_CUJ_PROMO - WEEKLY_MEETINGS - FOLLOW_UP - MILESTONE_TIMELINE_CHECK - PROJECT_DISCUSSION_DIGEST + - PROJECT_FOCUS_BLOCK - PROJECT_NEXT_STEP + - DEMO_CARD + - OOO_PLANNER + - OOO_CATCH_UP description: Categories of content requested. An allowlist gives flexibility to request content separately or together. requestOptions: $ref: "#/components/schemas/FeedRequestOptions" @@ -10459,9 +11256,17 @@ components: query: type: string description: The actionable chat query to run when the user selects this suggestion. + cta: + type: string + description: Button text to show for the suggestion action. feature: type: string description: Targeted Glean Chat feature for the suggestion. + sourceDocumentIds: + type: array + items: + type: string + description: Document IDs that grounded the suggestion. PromptTemplateMutableProperties: required: - template @@ -10533,6 +11338,8 @@ components: - SHORTCUTS_TYPE - SLIDE_TYPE - SPREADSHEET_TYPE + - INLINE_HTML_TYPE + - PODCAST_TYPE - WORKFLOWS_TYPE FavoriteInfo: type: object @@ -10562,16 +11369,6 @@ components: runCount: $ref: "#/components/schemas/CountInfo" description: This tracks how many times this prompt template was run. If user runs a prompt template after modifying the original one, it still counts as a run for the original template. - WorkflowDraftableProperties: - properties: - name: - type: string - description: The name of the workflow. - WorkflowMutableProperties: - type: object - allOf: - - $ref: "#/components/schemas/WorkflowDraftableProperties" - - type: object WorkflowMetadata: allOf: - type: object @@ -10587,6 +11384,12 @@ components: lastDraftSavedAt: type: integer description: Server Unix timestamp of the last time the draft was saved. + lastDraftSavedBy: + description: The person who last saved the draft. + $ref: "#/components/schemas/Person" + lastDraftGitAuthorId: + type: string + description: ID of the VCS user (e.g. GitHub username) who last saved the draft. Set only by the draft save path via the external Git integration API. lastUpdatedBy: $ref: "#/components/schemas/Person" Workflow: @@ -10600,6 +11403,14 @@ components: id: type: string description: The ID of the workflow. + verified: + type: boolean + readOnly: true + description: When present, indicates this workflow is admin-verified. Set via the dedicated admin settings endpoint, not by regular edits. + showOrganizationAsAuthor: + type: boolean + readOnly: true + description: When true, displays organization name instead of author name in agent card. Set via the dedicated admin settings endpoint, not by regular edits. WorkflowResult: type: object required: @@ -10702,11 +11513,16 @@ components: - ACTIVE_DISCUSSION - MID_DAY_CATCH_UP - QUERY_SUGGESTION + - COWORK_CUJ_PROMO - WEEKLY_MEETINGS - FOLLOW_UP - MILESTONE_TIMELINE_CHECK - PROJECT_DISCUSSION_DIGEST + - PROJECT_FOCUS_BLOCK - PROJECT_NEXT_STEP + - DEMO_CARD + - OOO_PLANNER + - OOO_CATCH_UP description: Type of the justification. justification: type: string @@ -10785,11 +11601,16 @@ components: - STARTER_KIT - MID_DAY_CATCH_UP - QUERY_SUGGESTION + - COWORK_CUJ_PROMO - WEEKLY_MEETINGS - FOLLOW_UP - MILESTONE_TIMELINE_CHECK - PROJECT_DISCUSSION_DIGEST + - PROJECT_FOCUS_BLOCK - PROJECT_NEXT_STEP + - DEMO_CARD + - OOO_PLANNER + - OOO_CATCH_UP description: Category of the result, one of the requested categories in incoming request. primaryEntry: $ref: "#/components/schemas/FeedEntry" @@ -11361,6 +12182,59 @@ components: error: type: string description: The error message if applicable + ActionAuthType: + type: string + description: | + Authentication mechanism used by an action pack. + - `AUTH_USER_OAUTH`: Requires per-user OAuth consent to the third-party tool. + - `AUTH_ADMIN`: Uses a service-account / admin-owned credential. End users do not authorize individually. + - `AUTH_NONE`: Action pack requires no authentication. + enum: + - AUTH_USER_OAUTH + - AUTH_ADMIN + - AUTH_NONE + ActionPackAuthStatus: + type: object + required: + - authenticated + - authType + properties: + authenticated: + type: boolean + description: Whether the calling user is already authenticated to the tool backing the action pack. + authType: + $ref: "#/components/schemas/ActionAuthType" + ActionPackAuthStatusResponse: + type: object + required: + - actionPack + properties: + actionPack: + $ref: "#/components/schemas/ActionPackAuthStatus" + description: | + Action-pack-scoped authentication status. Wrapped under `actionPack` so the response + shape clearly conveys that the status applies to the whole pack and leaves room to add + sibling fields (e.g. per-action status) later without a breaking change. + AuthorizeActionPackRequest: + type: object + required: + - returnUrl + properties: + returnUrl: + type: string + description: | + URL on the customer's domain to redirect the end user's browser back to after the third-party OAuth + callback completes. Must be present in the tenant's return URL allowlist. + AuthorizeActionPackResponse: + type: object + required: + - redirectUrl + properties: + redirectUrl: + type: string + description: | + URL that the customer UI should navigate the end user to in order to begin the third-party OAuth flow. + After the user consents, control returns to `returnUrl` from the request. IndexDocumentRequest: type: object properties: @@ -12758,6 +13632,28 @@ components: $ref: '#/components/schemas/LifeCycleEvent' description: List of lifecycle events corresponding to the document description: Describes the response body of the /debug/{datasource}/document/events API call + CustomMetadataPutRequest: + type: object + properties: + customMetadata: + type: array + items: + $ref: '#/components/schemas/CustomProperty' + description: Array of custom metadata key-value pairs + required: + - customMetadata + description: Request body for adding or updating custom metadata on a document + CustomMetadataSchema: + type: object + properties: + metadataKeys: + type: array + items: + $ref: '#/components/schemas/CustomMetadataPropertyDefinition' + description: Array of metadata key definitions + required: + - metadataKeys + description: Schema for custom metadata containing metadata key definitions SuccessResponse: type: object properties: @@ -13841,6 +14737,46 @@ components: - configuration description: | Request to update greenlisted configuration values for a datasource instance. Only keys that are exposed via the public API greenlist may be set. + DatasourceCredentialStatus: + type: string + enum: + - VALID + - VALID_WITH_WARNINGS + - VALIDATING + - INVALID + - MISSING + description: | + Lifecycle state of the credentials installed for a datasource instance. Mirrors the internal admin Status enum so the handler can surface the same health signals already tracked today. EXPIRING_SOON is represented as VALID_WITH_WARNINGS (with detail in `message`); EXPIRED is surfaced as INVALID plus a non-null `expiresAt` in the past. + DatasourceCredentialStatusResponse: + type: object + properties: + status: + $ref: '#/components/schemas/DatasourceCredentialStatus' + lastRotatedAt: + type: string + format: date-time + description: When the credentials were last rotated. Omitted when not known. + expiresAt: + type: string + format: date-time + description: | + When the active credentials expire. Omitted when not known or not applicable to this credential type. + message: + type: string + description: Optional human-readable detail about the current credential status. + required: + - status + description: Status of the credentials currently installed for a datasource instance. + RotateDatasourceCredentialsRequest: + type: object + properties: + credentials: + $ref: '#/components/schemas/DatasourceInstanceConfiguration' + required: + - credentials + description: | + Request to rotate the credentials used by a datasource instance. Replaces the active credential material with the supplied values. + `credentials.values` must contain only keys recognized as credential material for the datasource type (for example `clientSecret` for OAuth, `apiToken` for API-token auth, `privateKey` for certificate auth). Unrecognized keys, or keys that correspond to non-credential configuration, cause a 400; use the configure endpoint to change non-credential config. ChatRequestStream: required: - messages @@ -13884,6 +14820,27 @@ components: description: >- If set, response lines will be streamed one-by-one as they become available. Each will be a ChatResponse, formatted as JSON, and separated by a new line. If false, the entire response will be returned at once. Note that if this is set and the model being used does not support streaming, the model's response will not be streamed, but other messages from the endpoint still will be. default: true + CustomMetadataPropertyDefinition: + type: object + description: The definition for a key within a Custom Metadata schema. Only the fields applicable to Custom Metadata are exposed. + properties: + name: + type: string + description: The name of the metadata key. + propertyType: + type: string + enum: + - TEXT + - PICKLIST + - TEXTLIST + - MULTIPICKLIST + description: The type of metadata key. This governs the search and faceting behavior. + skipIndexing: + type: boolean + description: If true then the property will not be indexed for retrieval and ranking. + required: + - name + - propertyType parameters: locale: name: locale @@ -13914,6 +14871,14 @@ components: schema: type: string example: o365sharepoint_abc123 + datasourceInstanceId: + name: datasourceInstanceId + in: path + description: The full datasource instance identifier (e.g. o365sharepoint_abc123) + required: true + schema: + type: string + example: o365sharepoint_abc123 responses: SuccessResponse: description: OK diff --git a/.speakeasy/tests.arazzo.yaml b/.speakeasy/tests.arazzo.yaml index 17657920..c443717e 100644 --- a/.speakeasy/tests.arazzo.yaml +++ b/.speakeasy/tests.arazzo.yaml @@ -164345,3 +164345,214 @@ workflows: type: simple x-speakeasy-test-group: Datasources x-speakeasy-test-rebuild: true + - workflowId: getChatFile + steps: + - stepId: test + operationId: getChatFile + parameters: + - name: fileId + in: path + value: + successCriteria: + - condition: $statusCode == 200 + - condition: $response.header.Content-Type == application/octet-stream + - context: $response.body + condition: | + "x-file: example.file" + type: simple + x-speakeasy-test-group: Chat + x-speakeasy-test-rebuild: true + - workflowId: getPersonPhoto + steps: + - stepId: test + operationId: getPersonPhoto + parameters: + - name: person_id + in: path + value: + successCriteria: + - condition: $statusCode == 200 + - condition: $response.header.Content-Type == image/png + - context: $response.body + condition: | + "x-file: example.file" + type: simple + x-speakeasy-test-group: Entities + x-speakeasy-test-rebuild: true + - workflowId: getActionPackAuthStatus + steps: + - stepId: test + operationId: getActionPackAuthStatus + parameters: + - name: actionPackId + in: path + value: + successCriteria: + - condition: $statusCode == 200 + - condition: $response.header.Content-Type == application/json + - context: $response.body + condition: | + {"actionPack":{"authenticated":true,"authType":"AUTH_USER_OAUTH"}} + type: simple + x-speakeasy-test-group: Tools + x-speakeasy-test-rebuild: true + - workflowId: authorizeActionPack + steps: + - stepId: test + operationId: authorizeActionPack + parameters: + - name: actionPackId + in: path + value: + requestBody: + contentType: application/json + payload: + returnUrl: https://merry-allocation.org/ + successCriteria: + - condition: $statusCode == 200 + - condition: $response.header.Content-Type == application/json + - context: $response.body + condition: | + {"redirectUrl":"https://unconscious-diversity.net"} + type: simple + x-speakeasy-test-group: Tools + x-speakeasy-test-rebuild: true + - workflowId: put_/rest/api/index/document/{docId}/custom-metadata/{groupName} + steps: + - stepId: test + operationId: put_/rest/api/index/document/{docId}/custom-metadata/{groupName} + parameters: + - name: docId + in: path + value: + - name: groupName + in: path + value: + requestBody: + contentType: application/json + payload: + customMetadata: [] + successCriteria: + - condition: $statusCode == 200 + - condition: $response.header.Content-Type == application/json + - context: $response.body + condition: | + {"success":true} + type: simple + x-speakeasy-test-group: customMetadata + x-speakeasy-test-rebuild: true + - workflowId: delete_/rest/api/index/document/{docId}/custom-metadata/{groupName} + steps: + - stepId: test + operationId: delete_/rest/api/index/document/{docId}/custom-metadata/{groupName} + parameters: + - name: docId + in: path + value: + - name: groupName + in: path + value: + successCriteria: + - condition: $statusCode == 200 + - condition: $response.header.Content-Type == application/json + - context: $response.body + condition: | + {"success":true} + type: simple + x-speakeasy-test-group: customMetadata + x-speakeasy-test-rebuild: true + - workflowId: get_/rest/api/index/custom-metadata/schema/{groupName} + steps: + - stepId: test + operationId: get_/rest/api/index/custom-metadata/schema/{groupName} + parameters: + - name: groupName + in: path + value: + successCriteria: + - condition: $statusCode == 200 + - condition: $response.header.Content-Type == application/json + - context: $response.body + condition: | + {"metadataKeys":[]} + type: simple + x-speakeasy-test-group: customMetadata + x-speakeasy-test-rebuild: true + - workflowId: put_/rest/api/index/custom-metadata/schema/{groupName} + steps: + - stepId: test + operationId: put_/rest/api/index/custom-metadata/schema/{groupName} + parameters: + - name: groupName + in: path + value: + requestBody: + contentType: application/json + payload: + metadataKeys: [] + successCriteria: + - condition: $statusCode == 200 + - condition: $response.header.Content-Type == application/json + - context: $response.body + condition: | + {"success":true} + type: simple + x-speakeasy-test-group: customMetadata + x-speakeasy-test-rebuild: true + - workflowId: delete_/rest/api/index/custom-metadata/schema/{groupName} + steps: + - stepId: test + operationId: delete_/rest/api/index/custom-metadata/schema/{groupName} + parameters: + - name: groupName + in: path + value: + successCriteria: + - condition: $statusCode == 200 + - condition: $response.header.Content-Type == application/json + - context: $response.body + condition: | + {"success":true} + type: simple + x-speakeasy-test-group: customMetadata + x-speakeasy-test-rebuild: true + - workflowId: getDatasourceCredentialStatus + steps: + - stepId: test + operationId: getDatasourceCredentialStatus + parameters: + - name: datasourceInstanceId + in: path + value: o365sharepoint_abc123 + successCriteria: + - condition: $statusCode == 200 + - condition: $response.header.Content-Type == application/json + - context: $response.body + condition: | + {"status":"VALID"} + type: simple + x-speakeasy-test-group: Datasources + x-speakeasy-test-rebuild: true + - workflowId: rotateDatasourceCredentials + steps: + - stepId: test + operationId: rotateDatasourceCredentials + parameters: + - name: datasourceInstanceId + in: path + value: o365sharepoint_abc123 + requestBody: + contentType: application/json + payload: + credentials: + values: + key: {} + successCriteria: + - condition: $statusCode == 200 + - condition: $response.header.Content-Type == application/json + - context: $response.body + condition: | + {"status":"MISSING"} + type: simple + x-speakeasy-test-group: Datasources + x-speakeasy-test-rebuild: true diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index de7f2d9c..c7cc2b60 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.761.8 +speakeasyVersion: 1.769.2 sources: Glean API: sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:5fafd8224d41224b85cbb5f39c686e5da647fadcd8211bc9fae3c0834341dae6 - sourceBlobDigest: sha256:884a6119e9d59c15d47e169eaa496571dae1c106d390990aee38a25cb51e42c3 + sourceRevisionDigest: sha256:dbbdc3e8f228588125ae5c769c4cec59bdea2902c688f13c13ee07e41c3e4faf + sourceBlobDigest: sha256:08ca02cb68218c386ef832a9e80095e982fb61beed1aee64974e91fe4d465a8b tags: - latest petstore-oas: @@ -17,10 +17,10 @@ targets: glean: source: Glean API sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:5fafd8224d41224b85cbb5f39c686e5da647fadcd8211bc9fae3c0834341dae6 - sourceBlobDigest: sha256:884a6119e9d59c15d47e169eaa496571dae1c106d390990aee38a25cb51e42c3 + sourceRevisionDigest: sha256:dbbdc3e8f228588125ae5c769c4cec59bdea2902c688f13c13ee07e41c3e4faf + sourceBlobDigest: sha256:08ca02cb68218c386ef832a9e80095e982fb61beed1aee64974e91fe4d465a8b codeSamplesNamespace: glean-api-specs-go-code-samples - codeSamplesRevisionDigest: sha256:70b5bfe17cdf1e49dfbd9e43433e1f59ffdb24fafb63f801d7ddce32ab42e9ad + codeSamplesRevisionDigest: sha256:9c87d2c95297f7aa73d9f22134a150ee0302e95b81b5a1b0a0daa08049af59a2 petstore: source: petstore-oas sourceNamespace: petstore-oas diff --git a/README.md b/README.md index cb77b8ac..0571b653 100644 --- a/README.md +++ b/README.md @@ -251,22 +251,30 @@ For more information on obtaining the appropriate token type, please contact you
Available methods +### [Agents](docs/sdks/agents/README.md) + +* [EditAgent](docs/sdks/agents/README.md#editagent) - Edit an agent + ### [Authentication](docs/sdks/authentication/README.md) * [Checkdatasourceauth](docs/sdks/authentication/README.md#checkdatasourceauth) - Check datasource authorization +### [Chat](docs/sdks/chat/README.md) + +* [GetChatFile](docs/sdks/chat/README.md#getchatfile) - Download a chat file + ### [Client.Activity](docs/sdks/activity/README.md) * [Report](docs/sdks/activity/README.md#report) - Report document activity * [Feedback](docs/sdks/activity/README.md#feedback) - Report client activity -### [Client.Agents](docs/sdks/agents/README.md) +### [Client.Agents](docs/sdks/clientagents/README.md) -* [Retrieve](docs/sdks/agents/README.md#retrieve) - Retrieve an agent -* [RetrieveSchemas](docs/sdks/agents/README.md#retrieveschemas) - List an agent's schemas -* [List](docs/sdks/agents/README.md#list) - Search agents -* [RunStream](docs/sdks/agents/README.md#runstream) - Create an agent run and stream the response -* [Run](docs/sdks/agents/README.md#run) - Create an agent run and wait for the response +* [Retrieve](docs/sdks/clientagents/README.md#retrieve) - Retrieve an agent +* [RetrieveSchemas](docs/sdks/clientagents/README.md#retrieveschemas) - List an agent's schemas +* [List](docs/sdks/clientagents/README.md#list) - Search agents +* [RunStream](docs/sdks/clientagents/README.md#runstream) - Create an agent run and stream the response +* [Run](docs/sdks/clientagents/README.md#run) - Create an agent run and wait for the response ### [Client.Announcements](docs/sdks/announcements/README.md) @@ -286,18 +294,18 @@ For more information on obtaining the appropriate token type, please contact you * [CreateToken](docs/sdks/clientauthentication/README.md#createtoken) - Create authentication token -### [Client.Chat](docs/sdks/chat/README.md) +### [Client.Chat](docs/sdks/clientchat/README.md) -* [Create](docs/sdks/chat/README.md#create) - Chat -* [DeleteAll](docs/sdks/chat/README.md#deleteall) - Deletes all saved Chats owned by a user -* [Delete](docs/sdks/chat/README.md#delete) - Deletes saved Chats -* [Retrieve](docs/sdks/chat/README.md#retrieve) - Retrieves a Chat -* [List](docs/sdks/chat/README.md#list) - Retrieves all saved Chats -* [RetrieveApplication](docs/sdks/chat/README.md#retrieveapplication) - Gets the metadata for a custom Chat application -* [UploadFiles](docs/sdks/chat/README.md#uploadfiles) - Upload files for Chat -* [RetrieveFiles](docs/sdks/chat/README.md#retrievefiles) - Get files uploaded by a user for Chat -* [DeleteFiles](docs/sdks/chat/README.md#deletefiles) - Delete files uploaded by a user for chat -* [CreateStream](docs/sdks/chat/README.md#createstream) - Chat +* [Create](docs/sdks/clientchat/README.md#create) - Chat +* [DeleteAll](docs/sdks/clientchat/README.md#deleteall) - Deletes all saved Chats owned by a user +* [Delete](docs/sdks/clientchat/README.md#delete) - Deletes saved Chats +* [Retrieve](docs/sdks/clientchat/README.md#retrieve) - Retrieves a Chat +* [List](docs/sdks/clientchat/README.md#list) - Retrieves all saved Chats +* [RetrieveApplication](docs/sdks/clientchat/README.md#retrieveapplication) - Gets the metadata for a custom Chat application +* [UploadFiles](docs/sdks/clientchat/README.md#uploadfiles) - Upload files for Chat +* [RetrieveFiles](docs/sdks/clientchat/README.md#retrievefiles) - Get files uploaded by a user for Chat +* [DeleteFiles](docs/sdks/clientchat/README.md#deletefiles) - Delete files uploaded by a user for chat +* [CreateStream](docs/sdks/clientchat/README.md#createstream) - Chat ### [Client.Collections](docs/sdks/collections/README.md) @@ -317,10 +325,10 @@ For more information on obtaining the appropriate token type, please contact you * [RetrieveByFacets](docs/sdks/clientdocuments/README.md#retrievebyfacets) - Read documents by facets * [Summarize](docs/sdks/clientdocuments/README.md#summarize) - Summarize documents -### [Client.Entities](docs/sdks/entities/README.md) +### [Client.Entities](docs/sdks/cliententities/README.md) -* [List](docs/sdks/entities/README.md#list) - List entities -* [ReadPeople](docs/sdks/entities/README.md#readpeople) - Read people +* [List](docs/sdks/cliententities/README.md#list) - List entities +* [ReadPeople](docs/sdks/cliententities/README.md#readpeople) - Read people ### [Client.Governance.Data.Policies](docs/sdks/policies/README.md) @@ -373,10 +381,10 @@ For more information on obtaining the appropriate token type, please contact you * [List](docs/sdks/clientshortcuts/README.md#list) - List shortcuts * [Update](docs/sdks/clientshortcuts/README.md#update) - Update shortcut -### [Client.Tools](docs/sdks/tools/README.md) +### [Client.Tools](docs/sdks/clienttools/README.md) -* [List](docs/sdks/tools/README.md#list) - List available tools -* [Run](docs/sdks/tools/README.md#run) - Execute the specified tool +* [List](docs/sdks/clienttools/README.md#list) - List available tools +* [Run](docs/sdks/clienttools/README.md#run) - Execute the specified tool ### [Client.Verification](docs/sdks/verification/README.md) @@ -388,6 +396,12 @@ For more information on obtaining the appropriate token type, please contact you * [GetDatasourceInstanceConfiguration](docs/sdks/datasources/README.md#getdatasourceinstanceconfiguration) - Get datasource instance configuration * [UpdateDatasourceInstanceConfiguration](docs/sdks/datasources/README.md#updatedatasourceinstanceconfiguration) - Update datasource instance configuration +* [GetDatasourceCredentialStatus](docs/sdks/datasources/README.md#getdatasourcecredentialstatus) - Get datasource instance credential status +* [RotateDatasourceCredentials](docs/sdks/datasources/README.md#rotatedatasourcecredentials) - Rotate datasource instance credentials + +### [Entities](docs/sdks/entities/README.md) + +* [GetPersonPhoto](docs/sdks/entities/README.md#getpersonphoto) - Get person photo ### [Governance](docs/sdks/governance/README.md) @@ -400,6 +414,14 @@ For more information on obtaining the appropriate token type, please contact you * [RotateToken](docs/sdks/indexingauthentication/README.md#rotatetoken) - Rotate token +### [Indexing.CustomMetadata](docs/sdks/custommetadata/README.md) + +* [Upsert](docs/sdks/custommetadata/README.md#upsert) - Add or update custom metadata +* [Delete](docs/sdks/custommetadata/README.md#delete) - Remove custom metadata +* [GetSchema](docs/sdks/custommetadata/README.md#getschema) - Retrieve metadata schema +* [UpsertSchema](docs/sdks/custommetadata/README.md#upsertschema) - Create or update metadata schema +* [DeleteSchema](docs/sdks/custommetadata/README.md#deleteschema) - Remove metadata schema + ### [Indexing.Datasource](docs/sdks/datasource/README.md) * [Status](docs/sdks/datasource/README.md#status) - Beta: Get datasource status @@ -458,6 +480,16 @@ For more information on obtaining the appropriate token type, please contact you * [BulkIndex](docs/sdks/indexingshortcuts/README.md#bulkindex) - Bulk index external shortcuts * [Upload](docs/sdks/indexingshortcuts/README.md#upload) - Upload shortcuts +### [Tools](docs/sdks/tools/README.md) + +* [GetActionPackAuthStatus](docs/sdks/tools/README.md#getactionpackauthstatus) - Get end-user authentication status for an action pack. +* [AuthorizeActionPack](docs/sdks/tools/README.md#authorizeactionpack) - Start the OAuth authorization flow for an action pack. + +### [Troubleshooting](docs/sdks/troubleshooting/README.md) + +* [PostAPIIndexV1DebugDatasourceDocumentEvents](docs/sdks/troubleshooting/README.md#postapiindexv1debugdatasourcedocumentevents) - Beta: Get document lifecycle events + +
@@ -785,6 +817,41 @@ func main() { } } +``` + +### Override Server URL Per-Operation + +The server URL can also be overridden on a per-operation basis, provided a server list was specified for the operation. For example: +```go +package main + +import ( + "context" + apiclientgo "github.com/gleanwork/api-client-go" + "github.com/gleanwork/api-client-go/models/components" + "github.com/gleanwork/api-client-go/models/operations" + "log" + "os" +) + +func main() { + ctx := context.Background() + + s := apiclientgo.New( + apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), + ) + + res, err := s.Indexing.CustomMetadata.Upsert(ctx, "", "", components.CustomMetadataPutRequest{ + CustomMetadata: []components.CustomProperty{}, + }, operations.WithServerURL("https://instance-name-be.glean.com")) + if err != nil { + log.Fatal(err) + } + if res.SuccessResponse != nil { + // handle response + } +} + ``` diff --git a/RELEASES.md b/RELEASES.md index e304650b..6fa79378 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -728,4 +728,14 @@ Based on: ### Generated - [go v0.11.43] . ### Releases -- [Go v0.11.43] https://github.com/gleanwork/api-client-go/releases/tag/v0.11.43 - . \ No newline at end of file +- [Go v0.11.43] https://github.com/gleanwork/api-client-go/releases/tag/v0.11.43 - . + +## 2026-06-02 03:32:05 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.769.2 (2.892.5) https://github.com/speakeasy-api/speakeasy +### Generated +- [go v0.12.0] . +### Releases +- [Go v0.12.0] https://github.com/gleanwork/api-client-go/releases/tag/v0.12.0 - . \ No newline at end of file diff --git a/agents.go b/agents.go index d27133a5..190fa026 100644 --- a/agents.go +++ b/agents.go @@ -14,7 +14,6 @@ import ( "github.com/gleanwork/api-client-go/models/operations" "github.com/gleanwork/api-client-go/retry" "net/http" - "net/url" ) type Agents struct { @@ -31,13 +30,14 @@ func newAgents(rootSDK *Glean, sdkConfig config.SDKConfiguration, hooks *hooks.H } } -// Retrieve an agent -// Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent Builder. -func (s *Agents) Retrieve(ctx context.Context, agentID string, locale *string, timezoneOffset *int64, opts ...operations.Option) (*operations.GetAgentResponse, error) { - request := operations.GetAgentRequest{ - Locale: locale, - TimezoneOffset: timezoneOffset, - AgentID: agentID, +// EditAgent - Edit an agent +// Creates a draft or publishes an [agent](https://developers.glean.com/agents/agents-api). Use `isDraft=true` to save a draft, or `isDraft=false` (or omit) to publish immediately. Only draft and publish modes are supported. +func (s *Agents) EditAgent(ctx context.Context, agentID string, editWorkflowRequest components.EditWorkflowRequest, locale *string, timezoneOffset *int64, opts ...operations.Option) (*operations.EditAgentResponse, error) { + request := operations.EditAgentRequest{ + Locale: locale, + TimezoneOffset: timezoneOffset, + AgentID: agentID, + EditWorkflowRequest: editWorkflowRequest, } o := operations.Options{} @@ -68,747 +68,11 @@ func (s *Agents) Retrieve(ctx context.Context, agentID string, locale *string, t SDKConfiguration: s.sdkConfiguration, BaseURL: baseURL, Context: ctx, - OperationID: "getAgent", + OperationID: "editAgent", OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } - - timeout := o.Timeout - if timeout == nil { - timeout = s.sdkConfiguration.Timeout - } - - if timeout != nil { - var cancel context.CancelFunc - ctx, cancel = context.WithTimeout(ctx, *timeout) - defer cancel() - } - - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) - if err != nil { - return nil, fmt.Errorf("error creating request: %w", err) - } - req.Header.Set("Accept", "application/json") - req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - - if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { - return nil, fmt.Errorf("error populating query params: %w", err) - } - - if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { - return nil, err - } - - for k, v := range o.SetHeaders { - req.Header.Set(k, v) - } - - globalRetryConfig := s.sdkConfiguration.RetryConfig - retryConfig := o.Retries - if retryConfig == nil { - if globalRetryConfig != nil { - retryConfig = globalRetryConfig - } - } - - var httpRes *http.Response - if retryConfig != nil { - httpRes, err = utils.Retry(ctx, utils.Retries{ - Config: retryConfig, - StatusCodes: []string{ - "429", - "500", - "502", - "503", - "504", - }, - }, func() (*http.Response, error) { - if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { - copyBody, err := req.GetBody() - - if err != nil { - return nil, err - } - - req.Body = copyBody - } - - req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) - if err != nil { - if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { - return nil, err - } - - return nil, retry.Permanent(err) - } - - httpRes, err := s.sdkConfiguration.Client.Do(req) - if err != nil || httpRes == nil { - if err != nil { - err = fmt.Errorf("error sending request: %w", err) - } else { - err = fmt.Errorf("error sending request: no response") - } - - _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) - } - return httpRes, err - }) - - if err != nil { - return nil, err - } else { - httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) - if err != nil { - return nil, err - } - } - } else { - req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) - if err != nil { - return nil, err - } - - httpRes, err = s.sdkConfiguration.Client.Do(req) - if err != nil || httpRes == nil { - if err != nil { - err = fmt.Errorf("error sending request: %w", err) - } else { - err = fmt.Errorf("error sending request: no response") - } - - _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) - return nil, err - } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { - _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) - if err != nil { - return nil, err - } else if _httpRes != nil { - httpRes = _httpRes - } - } else { - httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) - if err != nil { - return nil, err - } - } - } - - res := &operations.GetAgentResponse{ - HTTPMeta: components.HTTPMetadata{ - Request: req, - Response: httpRes, - }, - } - - switch { - case httpRes.StatusCode == 200: - switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - - var out components.Agent - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { - return nil, err - } - - res.Agent = &out - default: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) - } - case httpRes.StatusCode == 404: - switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - - var out apierrors.ErrorResponse - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { - return nil, err - } - - out.HTTPMeta = components.HTTPMetadata{ - Request: req, - Response: httpRes, - } - return nil, &out - default: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) - } - case httpRes.StatusCode == 400: - fallthrough - case httpRes.StatusCode == 403: - fallthrough - case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) - case httpRes.StatusCode == 500: - fallthrough - case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) - default: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) - } - - return res, nil - -} - -// RetrieveSchemas - List an agent's schemas -// Return [agent](https://developers.glean.com/agents/agents-api)'s input and output schemas. You can use these schemas to detect changes to an agent's input or output structure. -func (s *Agents) RetrieveSchemas(ctx context.Context, agentID string, locale *string, timezoneOffset *int64, opts ...operations.Option) (*operations.GetAgentSchemasResponse, error) { - request := operations.GetAgentSchemasRequest{ - Locale: locale, - TimezoneOffset: timezoneOffset, - AgentID: agentID, - } - - o := operations.Options{} - supportedOptions := []string{ - operations.SupportedOptionRetries, - operations.SupportedOptionTimeout, - } - - for _, opt := range opts { - if err := opt(&o, supportedOptions...); err != nil { - return nil, fmt.Errorf("error applying option: %w", err) - } - } - - var baseURL string - if o.ServerURL == nil { - baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - } else { - baseURL = *o.ServerURL - } - opURL, err := utils.GenerateURL(ctx, baseURL, "/rest/api/v1/agents/{agent_id}/schemas", request, nil) - if err != nil { - return nil, fmt.Errorf("error generating URL: %w", err) - } - - hookCtx := hooks.HookContext{ - SDK: s.rootSDK, - SDKConfiguration: s.sdkConfiguration, - BaseURL: baseURL, - Context: ctx, - OperationID: "getAgentSchemas", - OAuth2Scopes: nil, - SecuritySource: s.sdkConfiguration.Security, - } - - timeout := o.Timeout - if timeout == nil { - timeout = s.sdkConfiguration.Timeout - } - - if timeout != nil { - var cancel context.CancelFunc - ctx, cancel = context.WithTimeout(ctx, *timeout) - defer cancel() - } - - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) - if err != nil { - return nil, fmt.Errorf("error creating request: %w", err) - } - req.Header.Set("Accept", "application/json") - req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - - if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { - return nil, fmt.Errorf("error populating query params: %w", err) - } - - if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { - return nil, err - } - - for k, v := range o.SetHeaders { - req.Header.Set(k, v) - } - - globalRetryConfig := s.sdkConfiguration.RetryConfig - retryConfig := o.Retries - if retryConfig == nil { - if globalRetryConfig != nil { - retryConfig = globalRetryConfig - } - } - - var httpRes *http.Response - if retryConfig != nil { - httpRes, err = utils.Retry(ctx, utils.Retries{ - Config: retryConfig, - StatusCodes: []string{ - "429", - "500", - "502", - "503", - "504", - }, - }, func() (*http.Response, error) { - if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { - copyBody, err := req.GetBody() - - if err != nil { - return nil, err - } - - req.Body = copyBody - } - - req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) - if err != nil { - if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { - return nil, err - } - - return nil, retry.Permanent(err) - } - - httpRes, err := s.sdkConfiguration.Client.Do(req) - if err != nil || httpRes == nil { - if err != nil { - err = fmt.Errorf("error sending request: %w", err) - } else { - err = fmt.Errorf("error sending request: no response") - } - - _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) - } - return httpRes, err - }) - - if err != nil { - return nil, err - } else { - httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) - if err != nil { - return nil, err - } - } - } else { - req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) - if err != nil { - return nil, err - } - - httpRes, err = s.sdkConfiguration.Client.Do(req) - if err != nil || httpRes == nil { - if err != nil { - err = fmt.Errorf("error sending request: %w", err) - } else { - err = fmt.Errorf("error sending request: no response") - } - - _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) - return nil, err - } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { - _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) - if err != nil { - return nil, err - } else if _httpRes != nil { - httpRes = _httpRes - } - } else { - httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) - if err != nil { - return nil, err - } - } - } - - res := &operations.GetAgentSchemasResponse{ - HTTPMeta: components.HTTPMetadata{ - Request: req, - Response: httpRes, - }, - } - - switch { - case httpRes.StatusCode == 200: - switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - - var out components.AgentSchemas - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { - return nil, err - } - - res.AgentSchemas = &out - default: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) - } - case httpRes.StatusCode == 404: - fallthrough - case httpRes.StatusCode == 422: - switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - - var out apierrors.ErrorResponse - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { - return nil, err - } - - out.HTTPMeta = components.HTTPMetadata{ - Request: req, - Response: httpRes, - } - return nil, &out - default: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) - } - case httpRes.StatusCode == 400: - fallthrough - case httpRes.StatusCode == 403: - fallthrough - case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) - case httpRes.StatusCode == 500: - fallthrough - case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) - default: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) - } - - return res, nil - -} - -// List - Search agents -// Search for [agents](https://developers.glean.com/agents/agents-api) by agent name. -func (s *Agents) List(ctx context.Context, request components.SearchAgentsRequest, opts ...operations.Option) (*operations.SearchAgentsResponse, error) { - o := operations.Options{} - supportedOptions := []string{ - operations.SupportedOptionRetries, - operations.SupportedOptionTimeout, - } - - for _, opt := range opts { - if err := opt(&o, supportedOptions...); err != nil { - return nil, fmt.Errorf("error applying option: %w", err) - } - } - - var baseURL string - if o.ServerURL == nil { - baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - } else { - baseURL = *o.ServerURL - } - opURL, err := url.JoinPath(baseURL, "/rest/api/v1/agents/search") - if err != nil { - return nil, fmt.Errorf("error generating URL: %w", err) - } - - hookCtx := hooks.HookContext{ - SDK: s.rootSDK, - SDKConfiguration: s.sdkConfiguration, - BaseURL: baseURL, - Context: ctx, - OperationID: "searchAgents", - OAuth2Scopes: nil, - SecuritySource: s.sdkConfiguration.Security, - } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "Request", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } - - timeout := o.Timeout - if timeout == nil { - timeout = s.sdkConfiguration.Timeout - } - - if timeout != nil { - var cancel context.CancelFunc - ctx, cancel = context.WithTimeout(ctx, *timeout) - defer cancel() - } - - req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) - if err != nil { - return nil, fmt.Errorf("error creating request: %w", err) - } - req.Header.Set("Accept", "application/json") - req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if reqContentType != "" { - req.Header.Set("Content-Type", reqContentType) - } - - if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { - return nil, err - } - - for k, v := range o.SetHeaders { - req.Header.Set(k, v) - } - - globalRetryConfig := s.sdkConfiguration.RetryConfig - retryConfig := o.Retries - if retryConfig == nil { - if globalRetryConfig != nil { - retryConfig = globalRetryConfig - } - } - - var httpRes *http.Response - if retryConfig != nil { - httpRes, err = utils.Retry(ctx, utils.Retries{ - Config: retryConfig, - StatusCodes: []string{ - "429", - "500", - "502", - "503", - "504", - }, - }, func() (*http.Response, error) { - if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { - copyBody, err := req.GetBody() - - if err != nil { - return nil, err - } - - req.Body = copyBody - } - - req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) - if err != nil { - if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { - return nil, err - } - - return nil, retry.Permanent(err) - } - - httpRes, err := s.sdkConfiguration.Client.Do(req) - if err != nil || httpRes == nil { - if err != nil { - err = fmt.Errorf("error sending request: %w", err) - } else { - err = fmt.Errorf("error sending request: no response") - } - - _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) - } - return httpRes, err - }) - - if err != nil { - return nil, err - } else { - httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) - if err != nil { - return nil, err - } - } - } else { - req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) - if err != nil { - return nil, err - } - - httpRes, err = s.sdkConfiguration.Client.Do(req) - if err != nil || httpRes == nil { - if err != nil { - err = fmt.Errorf("error sending request: %w", err) - } else { - err = fmt.Errorf("error sending request: no response") - } - - _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) - return nil, err - } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { - _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) - if err != nil { - return nil, err - } else if _httpRes != nil { - httpRes = _httpRes - } - } else { - httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) - if err != nil { - return nil, err - } - } - } - - res := &operations.SearchAgentsResponse{ - HTTPMeta: components.HTTPMetadata{ - Request: req, - Response: httpRes, - }, - } - - switch { - case httpRes.StatusCode == 200: - switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - - var out components.SearchAgentsResponse - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { - return nil, err - } - - res.SearchAgentsResponse = &out - default: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) - } - case httpRes.StatusCode == 404: - fallthrough - case httpRes.StatusCode == 422: - switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - - var out apierrors.ErrorResponse - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { - return nil, err - } - - out.HTTPMeta = components.HTTPMetadata{ - Request: req, - Response: httpRes, - } - return nil, &out - default: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) - } - case httpRes.StatusCode == 400: - fallthrough - case httpRes.StatusCode == 403: - fallthrough - case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) - case httpRes.StatusCode == 500: - fallthrough - case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) - default: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) - } - - return res, nil - -} - -// RunStream - Create an agent run and stream the response -// Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the result as a stream of server-sent events (SSE). **Note**: If the agent uses an input form trigger, all form fields (including optional fields) must be included in the `input` object. -func (s *Agents) RunStream(ctx context.Context, request components.AgentRunCreate, opts ...operations.Option) (*operations.CreateAndStreamRunResponse, error) { - o := operations.Options{} - supportedOptions := []string{ - operations.SupportedOptionRetries, - operations.SupportedOptionTimeout, - } - - for _, opt := range opts { - if err := opt(&o, supportedOptions...); err != nil { - return nil, fmt.Errorf("error applying option: %w", err) - } - } - - var baseURL string - if o.ServerURL == nil { - baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - } else { - baseURL = *o.ServerURL - } - opURL, err := url.JoinPath(baseURL, "/rest/api/v1/agents/runs/stream") - if err != nil { - return nil, fmt.Errorf("error generating URL: %w", err) - } - - hookCtx := hooks.HookContext{ - SDK: s.rootSDK, - SDKConfiguration: s.sdkConfiguration, - BaseURL: baseURL, - Context: ctx, - OperationID: "createAndStreamRun", - OAuth2Scopes: nil, - SecuritySource: s.sdkConfiguration.Security, - } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "Request", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "EditWorkflowRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -828,12 +92,16 @@ func (s *Agents) RunStream(ctx context.Context, request components.AgentRunCreat if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "text/event-stream") + req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if reqContentType != "" { req.Header.Set("Content-Type", reqContentType) } + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { + return nil, fmt.Errorf("error populating query params: %w", err) + } + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err } @@ -933,7 +201,7 @@ func (s *Agents) RunStream(ctx context.Context, request components.AgentRunCreat } } - res := &operations.CreateAndStreamRunResponse{ + res := &operations.EditAgentResponse{ HTTPMeta: components.HTTPMetadata{ Request: req, Response: httpRes, @@ -942,27 +210,8 @@ func (s *Agents) RunStream(ctx context.Context, request components.AgentRunCreat switch { case httpRes.StatusCode == 200: - switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `text/event-stream`): - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - - out := string(rawBody) - res.Res = &out - default: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) - } + utils.DrainBody(httpRes) case httpRes.StatusCode == 404: - fallthrough - case httpRes.StatusCode == 409: - fallthrough - case httpRes.StatusCode == 422: switch { case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): rawBody, err := utils.ConsumeRawBody(httpRes) @@ -989,233 +238,10 @@ func (s *Agents) RunStream(ctx context.Context, request components.AgentRunCreat } case httpRes.StatusCode == 400: fallthrough - case httpRes.StatusCode == 403: - fallthrough - case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) - case httpRes.StatusCode == 500: - fallthrough - case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) - default: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) - } - - return res, nil - -} - -// Run - Create an agent run and wait for the response -// Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the final response. **Note**: If the agent uses an input form trigger, all form fields (including optional fields) must be included in the `input` object. -func (s *Agents) Run(ctx context.Context, request components.AgentRunCreate, opts ...operations.Option) (*operations.CreateAndWaitRunResponse, error) { - o := operations.Options{} - supportedOptions := []string{ - operations.SupportedOptionRetries, - operations.SupportedOptionTimeout, - } - - for _, opt := range opts { - if err := opt(&o, supportedOptions...); err != nil { - return nil, fmt.Errorf("error applying option: %w", err) - } - } - - var baseURL string - if o.ServerURL == nil { - baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - } else { - baseURL = *o.ServerURL - } - opURL, err := url.JoinPath(baseURL, "/rest/api/v1/agents/runs/wait") - if err != nil { - return nil, fmt.Errorf("error generating URL: %w", err) - } - - hookCtx := hooks.HookContext{ - SDK: s.rootSDK, - SDKConfiguration: s.sdkConfiguration, - BaseURL: baseURL, - Context: ctx, - OperationID: "createAndWaitRun", - OAuth2Scopes: nil, - SecuritySource: s.sdkConfiguration.Security, - } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "Request", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } - - timeout := o.Timeout - if timeout == nil { - timeout = s.sdkConfiguration.Timeout - } - - if timeout != nil { - var cancel context.CancelFunc - ctx, cancel = context.WithTimeout(ctx, *timeout) - defer cancel() - } - - req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) - if err != nil { - return nil, fmt.Errorf("error creating request: %w", err) - } - req.Header.Set("Accept", "application/json") - req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if reqContentType != "" { - req.Header.Set("Content-Type", reqContentType) - } - - if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { - return nil, err - } - - for k, v := range o.SetHeaders { - req.Header.Set(k, v) - } - - globalRetryConfig := s.sdkConfiguration.RetryConfig - retryConfig := o.Retries - if retryConfig == nil { - if globalRetryConfig != nil { - retryConfig = globalRetryConfig - } - } - - var httpRes *http.Response - if retryConfig != nil { - httpRes, err = utils.Retry(ctx, utils.Retries{ - Config: retryConfig, - StatusCodes: []string{ - "429", - "500", - "502", - "503", - "504", - }, - }, func() (*http.Response, error) { - if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { - copyBody, err := req.GetBody() - - if err != nil { - return nil, err - } - - req.Body = copyBody - } - - req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) - if err != nil { - if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { - return nil, err - } - - return nil, retry.Permanent(err) - } - - httpRes, err := s.sdkConfiguration.Client.Do(req) - if err != nil || httpRes == nil { - if err != nil { - err = fmt.Errorf("error sending request: %w", err) - } else { - err = fmt.Errorf("error sending request: no response") - } - - _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) - } - return httpRes, err - }) - - if err != nil { - return nil, err - } else { - httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) - if err != nil { - return nil, err - } - } - } else { - req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) - if err != nil { - return nil, err - } - - httpRes, err = s.sdkConfiguration.Client.Do(req) - if err != nil || httpRes == nil { - if err != nil { - err = fmt.Errorf("error sending request: %w", err) - } else { - err = fmt.Errorf("error sending request: no response") - } - - _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) - return nil, err - } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { - _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) - if err != nil { - return nil, err - } else if _httpRes != nil { - httpRes = _httpRes - } - } else { - httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) - if err != nil { - return nil, err - } - } - } - - res := &operations.CreateAndWaitRunResponse{ - HTTPMeta: components.HTTPMetadata{ - Request: req, - Response: httpRes, - }, - } - - switch { - case httpRes.StatusCode == 200: - switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - - var out components.AgentRunWaitResponse - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { - return nil, err - } - - res.AgentRunWaitResponse = &out - default: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) - } - case httpRes.StatusCode == 400: + case httpRes.StatusCode == 401: fallthrough case httpRes.StatusCode == 403: fallthrough - case httpRes.StatusCode == 404: - fallthrough - case httpRes.StatusCode == 409: - fallthrough - case httpRes.StatusCode == 422: - fallthrough case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: rawBody, err := utils.ConsumeRawBody(httpRes) if err != nil { diff --git a/chat.go b/chat.go index 53fee2e6..fe18ecc0 100644 --- a/chat.go +++ b/chat.go @@ -3,7 +3,6 @@ package apiclientgo import ( - "bytes" "context" "fmt" "github.com/gleanwork/api-client-go/internal/config" @@ -14,7 +13,6 @@ import ( "github.com/gleanwork/api-client-go/models/operations" "github.com/gleanwork/api-client-go/retry" "net/http" - "net/url" ) type Chat struct { @@ -31,13 +29,12 @@ func newChat(rootSDK *Glean, sdkConfig config.SDKConfiguration, hooks *hooks.Hoo } } -// Create - Chat -// Have a conversation with Glean AI. -func (s *Chat) Create(ctx context.Context, chatRequest components.ChatRequest, locale *string, timezoneOffset *int64, opts ...operations.Option) (*operations.ChatResponse, error) { - request := operations.ChatRequest{ - Locale: locale, - TimezoneOffset: timezoneOffset, - ChatRequest: chatRequest, +// GetChatFile - Download a chat file +// Download the raw content of a file generated or uploaded during a chat session (for example, an image produced by the assistant). Returns the file bytes with a Content-Type header matching the file's MIME type. +func (s *Chat) GetChatFile(ctx context.Context, fileID string, preview *bool, opts ...operations.Option) (*operations.GetChatFileResponse, error) { + request := operations.GetChatFileRequest{ + FileID: fileID, + Preview: preview, } o := operations.Options{} @@ -58,7 +55,7 @@ func (s *Chat) Create(ctx context.Context, chatRequest components.ChatRequest, l } else { baseURL = *o.ServerURL } - opURL, err := url.JoinPath(baseURL, "/rest/api/v1/chat") + opURL, err := utils.GenerateURL(ctx, baseURL, "/rest/api/v1/chat-files/{fileId}", request, nil) if err != nil { return nil, fmt.Errorf("error generating URL: %w", err) } @@ -68,14 +65,10 @@ func (s *Chat) Create(ctx context.Context, chatRequest components.ChatRequest, l SDKConfiguration: s.sdkConfiguration, BaseURL: baseURL, Context: ctx, - OperationID: "chat", + OperationID: "getChatFile", OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "ChatRequest", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } timeout := o.Timeout if timeout == nil { @@ -88,15 +81,12 @@ func (s *Chat) Create(ctx context.Context, chatRequest components.ChatRequest, l defer cancel() } - req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "application/octet-stream") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if reqContentType != "" { - req.Header.Set("Content-Type", reqContentType) - } if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { return nil, fmt.Errorf("error populating query params: %w", err) @@ -201,7 +191,7 @@ func (s *Chat) Create(ctx context.Context, chatRequest components.ChatRequest, l } } - res := &operations.ChatResponse{ + res := &operations.GetChatFileResponse{ HTTPMeta: components.HTTPMetadata{ Request: req, Response: httpRes, @@ -211,18 +201,10 @@ func (s *Chat) Create(ctx context.Context, chatRequest components.ChatRequest, l switch { case httpRes.StatusCode == 200: switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/octet-stream`): + res.ResponseStream = httpRes.Body - var out components.ChatResponse - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { - return nil, err - } - - res.ChatResponse = &out + return res, nil default: rawBody, err := utils.ConsumeRawBody(httpRes) if err != nil { @@ -234,9 +216,9 @@ func (s *Chat) Create(ctx context.Context, chatRequest components.ChatRequest, l fallthrough case httpRes.StatusCode == 401: fallthrough - case httpRes.StatusCode == 408: + case httpRes.StatusCode == 403: fallthrough - case httpRes.StatusCode == 429: + case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: rawBody, err := utils.ConsumeRawBody(httpRes) @@ -244,2001 +226,8 @@ func (s *Chat) Create(ctx context.Context, chatRequest components.ChatRequest, l return nil, err } return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) - case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) - default: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) - } - - return res, nil - -} - -// DeleteAll - Deletes all saved Chats owned by a user -// Deletes all saved Chats a user has had and all their contained conversational content. -func (s *Chat) DeleteAll(ctx context.Context, locale *string, timezoneOffset *int64, opts ...operations.Option) (*operations.DeleteallchatsResponse, error) { - request := operations.DeleteallchatsRequest{ - Locale: locale, - TimezoneOffset: timezoneOffset, - } - - o := operations.Options{} - supportedOptions := []string{ - operations.SupportedOptionRetries, - operations.SupportedOptionTimeout, - } - - for _, opt := range opts { - if err := opt(&o, supportedOptions...); err != nil { - return nil, fmt.Errorf("error applying option: %w", err) - } - } - - var baseURL string - if o.ServerURL == nil { - baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - } else { - baseURL = *o.ServerURL - } - opURL, err := url.JoinPath(baseURL, "/rest/api/v1/deleteallchats") - if err != nil { - return nil, fmt.Errorf("error generating URL: %w", err) - } - - hookCtx := hooks.HookContext{ - SDK: s.rootSDK, - SDKConfiguration: s.sdkConfiguration, - BaseURL: baseURL, - Context: ctx, - OperationID: "deleteallchats", - OAuth2Scopes: nil, - SecuritySource: s.sdkConfiguration.Security, - } - - timeout := o.Timeout - if timeout == nil { - timeout = s.sdkConfiguration.Timeout - } - - if timeout != nil { - var cancel context.CancelFunc - ctx, cancel = context.WithTimeout(ctx, *timeout) - defer cancel() - } - - req, err := http.NewRequestWithContext(ctx, "POST", opURL, nil) - if err != nil { - return nil, fmt.Errorf("error creating request: %w", err) - } - req.Header.Set("Accept", "*/*") - req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - - if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { - return nil, fmt.Errorf("error populating query params: %w", err) - } - - if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { - return nil, err - } - - for k, v := range o.SetHeaders { - req.Header.Set(k, v) - } - - globalRetryConfig := s.sdkConfiguration.RetryConfig - retryConfig := o.Retries - if retryConfig == nil { - if globalRetryConfig != nil { - retryConfig = globalRetryConfig - } - } - - var httpRes *http.Response - if retryConfig != nil { - httpRes, err = utils.Retry(ctx, utils.Retries{ - Config: retryConfig, - StatusCodes: []string{ - "429", - "500", - "502", - "503", - "504", - }, - }, func() (*http.Response, error) { - if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { - copyBody, err := req.GetBody() - - if err != nil { - return nil, err - } - - req.Body = copyBody - } - - req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) - if err != nil { - if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { - return nil, err - } - - return nil, retry.Permanent(err) - } - - httpRes, err := s.sdkConfiguration.Client.Do(req) - if err != nil || httpRes == nil { - if err != nil { - err = fmt.Errorf("error sending request: %w", err) - } else { - err = fmt.Errorf("error sending request: no response") - } - - _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) - } - return httpRes, err - }) - - if err != nil { - return nil, err - } else { - httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) - if err != nil { - return nil, err - } - } - } else { - req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) - if err != nil { - return nil, err - } - - httpRes, err = s.sdkConfiguration.Client.Do(req) - if err != nil || httpRes == nil { - if err != nil { - err = fmt.Errorf("error sending request: %w", err) - } else { - err = fmt.Errorf("error sending request: no response") - } - - _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) - return nil, err - } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { - _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) - if err != nil { - return nil, err - } else if _httpRes != nil { - httpRes = _httpRes - } - } else { - httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) - if err != nil { - return nil, err - } - } - } - - res := &operations.DeleteallchatsResponse{ - HTTPMeta: components.HTTPMetadata{ - Request: req, - Response: httpRes, - }, - } - - switch { - case httpRes.StatusCode == 200: - utils.DrainBody(httpRes) - case httpRes.StatusCode == 400: - fallthrough - case httpRes.StatusCode == 401: - fallthrough - case httpRes.StatusCode == 403: + case httpRes.StatusCode == 500: fallthrough - case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) - case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) - default: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) - } - - return res, nil - -} - -// Delete - Deletes saved Chats -// Deletes saved Chats and all their contained conversational content. -func (s *Chat) Delete(ctx context.Context, deleteChatsRequest components.DeleteChatsRequest, locale *string, timezoneOffset *int64, opts ...operations.Option) (*operations.DeletechatsResponse, error) { - request := operations.DeletechatsRequest{ - Locale: locale, - TimezoneOffset: timezoneOffset, - DeleteChatsRequest: deleteChatsRequest, - } - - o := operations.Options{} - supportedOptions := []string{ - operations.SupportedOptionRetries, - operations.SupportedOptionTimeout, - } - - for _, opt := range opts { - if err := opt(&o, supportedOptions...); err != nil { - return nil, fmt.Errorf("error applying option: %w", err) - } - } - - var baseURL string - if o.ServerURL == nil { - baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - } else { - baseURL = *o.ServerURL - } - opURL, err := url.JoinPath(baseURL, "/rest/api/v1/deletechats") - if err != nil { - return nil, fmt.Errorf("error generating URL: %w", err) - } - - hookCtx := hooks.HookContext{ - SDK: s.rootSDK, - SDKConfiguration: s.sdkConfiguration, - BaseURL: baseURL, - Context: ctx, - OperationID: "deletechats", - OAuth2Scopes: nil, - SecuritySource: s.sdkConfiguration.Security, - } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "DeleteChatsRequest", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } - - timeout := o.Timeout - if timeout == nil { - timeout = s.sdkConfiguration.Timeout - } - - if timeout != nil { - var cancel context.CancelFunc - ctx, cancel = context.WithTimeout(ctx, *timeout) - defer cancel() - } - - req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) - if err != nil { - return nil, fmt.Errorf("error creating request: %w", err) - } - req.Header.Set("Accept", "*/*") - req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if reqContentType != "" { - req.Header.Set("Content-Type", reqContentType) - } - - if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { - return nil, fmt.Errorf("error populating query params: %w", err) - } - - if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { - return nil, err - } - - for k, v := range o.SetHeaders { - req.Header.Set(k, v) - } - - globalRetryConfig := s.sdkConfiguration.RetryConfig - retryConfig := o.Retries - if retryConfig == nil { - if globalRetryConfig != nil { - retryConfig = globalRetryConfig - } - } - - var httpRes *http.Response - if retryConfig != nil { - httpRes, err = utils.Retry(ctx, utils.Retries{ - Config: retryConfig, - StatusCodes: []string{ - "429", - "500", - "502", - "503", - "504", - }, - }, func() (*http.Response, error) { - if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { - copyBody, err := req.GetBody() - - if err != nil { - return nil, err - } - - req.Body = copyBody - } - - req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) - if err != nil { - if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { - return nil, err - } - - return nil, retry.Permanent(err) - } - - httpRes, err := s.sdkConfiguration.Client.Do(req) - if err != nil || httpRes == nil { - if err != nil { - err = fmt.Errorf("error sending request: %w", err) - } else { - err = fmt.Errorf("error sending request: no response") - } - - _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) - } - return httpRes, err - }) - - if err != nil { - return nil, err - } else { - httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) - if err != nil { - return nil, err - } - } - } else { - req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) - if err != nil { - return nil, err - } - - httpRes, err = s.sdkConfiguration.Client.Do(req) - if err != nil || httpRes == nil { - if err != nil { - err = fmt.Errorf("error sending request: %w", err) - } else { - err = fmt.Errorf("error sending request: no response") - } - - _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) - return nil, err - } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { - _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) - if err != nil { - return nil, err - } else if _httpRes != nil { - httpRes = _httpRes - } - } else { - httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) - if err != nil { - return nil, err - } - } - } - - res := &operations.DeletechatsResponse{ - HTTPMeta: components.HTTPMetadata{ - Request: req, - Response: httpRes, - }, - } - - switch { - case httpRes.StatusCode == 200: - utils.DrainBody(httpRes) - case httpRes.StatusCode == 400: - fallthrough - case httpRes.StatusCode == 401: - fallthrough - case httpRes.StatusCode == 403: - fallthrough - case httpRes.StatusCode == 429: - fallthrough - case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) - case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) - default: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) - } - - return res, nil - -} - -// Retrieve - Retrieves a Chat -// Retrieves the chat history between Glean Assistant and the user for a given Chat. -func (s *Chat) Retrieve(ctx context.Context, getChatRequest components.GetChatRequest, locale *string, timezoneOffset *int64, opts ...operations.Option) (*operations.GetchatResponse, error) { - request := operations.GetchatRequest{ - Locale: locale, - TimezoneOffset: timezoneOffset, - GetChatRequest: getChatRequest, - } - - o := operations.Options{} - supportedOptions := []string{ - operations.SupportedOptionRetries, - operations.SupportedOptionTimeout, - } - - for _, opt := range opts { - if err := opt(&o, supportedOptions...); err != nil { - return nil, fmt.Errorf("error applying option: %w", err) - } - } - - var baseURL string - if o.ServerURL == nil { - baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - } else { - baseURL = *o.ServerURL - } - opURL, err := url.JoinPath(baseURL, "/rest/api/v1/getchat") - if err != nil { - return nil, fmt.Errorf("error generating URL: %w", err) - } - - hookCtx := hooks.HookContext{ - SDK: s.rootSDK, - SDKConfiguration: s.sdkConfiguration, - BaseURL: baseURL, - Context: ctx, - OperationID: "getchat", - OAuth2Scopes: nil, - SecuritySource: s.sdkConfiguration.Security, - } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "GetChatRequest", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } - - timeout := o.Timeout - if timeout == nil { - timeout = s.sdkConfiguration.Timeout - } - - if timeout != nil { - var cancel context.CancelFunc - ctx, cancel = context.WithTimeout(ctx, *timeout) - defer cancel() - } - - req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) - if err != nil { - return nil, fmt.Errorf("error creating request: %w", err) - } - req.Header.Set("Accept", "application/json") - req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if reqContentType != "" { - req.Header.Set("Content-Type", reqContentType) - } - - if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { - return nil, fmt.Errorf("error populating query params: %w", err) - } - - if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { - return nil, err - } - - for k, v := range o.SetHeaders { - req.Header.Set(k, v) - } - - globalRetryConfig := s.sdkConfiguration.RetryConfig - retryConfig := o.Retries - if retryConfig == nil { - if globalRetryConfig != nil { - retryConfig = globalRetryConfig - } - } - - var httpRes *http.Response - if retryConfig != nil { - httpRes, err = utils.Retry(ctx, utils.Retries{ - Config: retryConfig, - StatusCodes: []string{ - "429", - "500", - "502", - "503", - "504", - }, - }, func() (*http.Response, error) { - if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { - copyBody, err := req.GetBody() - - if err != nil { - return nil, err - } - - req.Body = copyBody - } - - req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) - if err != nil { - if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { - return nil, err - } - - return nil, retry.Permanent(err) - } - - httpRes, err := s.sdkConfiguration.Client.Do(req) - if err != nil || httpRes == nil { - if err != nil { - err = fmt.Errorf("error sending request: %w", err) - } else { - err = fmt.Errorf("error sending request: no response") - } - - _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) - } - return httpRes, err - }) - - if err != nil { - return nil, err - } else { - httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) - if err != nil { - return nil, err - } - } - } else { - req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) - if err != nil { - return nil, err - } - - httpRes, err = s.sdkConfiguration.Client.Do(req) - if err != nil || httpRes == nil { - if err != nil { - err = fmt.Errorf("error sending request: %w", err) - } else { - err = fmt.Errorf("error sending request: no response") - } - - _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) - return nil, err - } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { - _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) - if err != nil { - return nil, err - } else if _httpRes != nil { - httpRes = _httpRes - } - } else { - httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) - if err != nil { - return nil, err - } - } - } - - res := &operations.GetchatResponse{ - HTTPMeta: components.HTTPMetadata{ - Request: req, - Response: httpRes, - }, - } - - switch { - case httpRes.StatusCode == 200: - switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - - var out components.GetChatResponse - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { - return nil, err - } - - res.GetChatResponse = &out - default: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) - } - case httpRes.StatusCode == 400: - fallthrough - case httpRes.StatusCode == 401: - fallthrough - case httpRes.StatusCode == 403: - fallthrough - case httpRes.StatusCode == 429: - fallthrough - case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) - case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) - default: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) - } - - return res, nil - -} - -// List - Retrieves all saved Chats -// Retrieves all the saved Chats between Glean Assistant and the user. The returned Chats contain only metadata and no conversational content. -func (s *Chat) List(ctx context.Context, locale *string, timezoneOffset *int64, opts ...operations.Option) (*operations.ListchatsResponse, error) { - request := operations.ListchatsRequest{ - Locale: locale, - TimezoneOffset: timezoneOffset, - } - - o := operations.Options{} - supportedOptions := []string{ - operations.SupportedOptionRetries, - operations.SupportedOptionTimeout, - } - - for _, opt := range opts { - if err := opt(&o, supportedOptions...); err != nil { - return nil, fmt.Errorf("error applying option: %w", err) - } - } - - var baseURL string - if o.ServerURL == nil { - baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - } else { - baseURL = *o.ServerURL - } - opURL, err := url.JoinPath(baseURL, "/rest/api/v1/listchats") - if err != nil { - return nil, fmt.Errorf("error generating URL: %w", err) - } - - hookCtx := hooks.HookContext{ - SDK: s.rootSDK, - SDKConfiguration: s.sdkConfiguration, - BaseURL: baseURL, - Context: ctx, - OperationID: "listchats", - OAuth2Scopes: nil, - SecuritySource: s.sdkConfiguration.Security, - } - - timeout := o.Timeout - if timeout == nil { - timeout = s.sdkConfiguration.Timeout - } - - if timeout != nil { - var cancel context.CancelFunc - ctx, cancel = context.WithTimeout(ctx, *timeout) - defer cancel() - } - - req, err := http.NewRequestWithContext(ctx, "POST", opURL, nil) - if err != nil { - return nil, fmt.Errorf("error creating request: %w", err) - } - req.Header.Set("Accept", "application/json") - req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - - if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { - return nil, fmt.Errorf("error populating query params: %w", err) - } - - if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { - return nil, err - } - - for k, v := range o.SetHeaders { - req.Header.Set(k, v) - } - - globalRetryConfig := s.sdkConfiguration.RetryConfig - retryConfig := o.Retries - if retryConfig == nil { - if globalRetryConfig != nil { - retryConfig = globalRetryConfig - } - } - - var httpRes *http.Response - if retryConfig != nil { - httpRes, err = utils.Retry(ctx, utils.Retries{ - Config: retryConfig, - StatusCodes: []string{ - "429", - "500", - "502", - "503", - "504", - }, - }, func() (*http.Response, error) { - if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { - copyBody, err := req.GetBody() - - if err != nil { - return nil, err - } - - req.Body = copyBody - } - - req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) - if err != nil { - if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { - return nil, err - } - - return nil, retry.Permanent(err) - } - - httpRes, err := s.sdkConfiguration.Client.Do(req) - if err != nil || httpRes == nil { - if err != nil { - err = fmt.Errorf("error sending request: %w", err) - } else { - err = fmt.Errorf("error sending request: no response") - } - - _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) - } - return httpRes, err - }) - - if err != nil { - return nil, err - } else { - httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) - if err != nil { - return nil, err - } - } - } else { - req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) - if err != nil { - return nil, err - } - - httpRes, err = s.sdkConfiguration.Client.Do(req) - if err != nil || httpRes == nil { - if err != nil { - err = fmt.Errorf("error sending request: %w", err) - } else { - err = fmt.Errorf("error sending request: no response") - } - - _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) - return nil, err - } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { - _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) - if err != nil { - return nil, err - } else if _httpRes != nil { - httpRes = _httpRes - } - } else { - httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) - if err != nil { - return nil, err - } - } - } - - res := &operations.ListchatsResponse{ - HTTPMeta: components.HTTPMetadata{ - Request: req, - Response: httpRes, - }, - } - - switch { - case httpRes.StatusCode == 200: - switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - - var out components.ListChatsResponse - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { - return nil, err - } - - res.ListChatsResponse = &out - default: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) - } - case httpRes.StatusCode == 401: - fallthrough - case httpRes.StatusCode == 403: - fallthrough - case httpRes.StatusCode == 429: - fallthrough - case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) - case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) - default: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) - } - - return res, nil - -} - -// RetrieveApplication - Gets the metadata for a custom Chat application -// Gets the Chat application details for the specified application ID. -func (s *Chat) RetrieveApplication(ctx context.Context, getChatApplicationRequest components.GetChatApplicationRequest, locale *string, timezoneOffset *int64, opts ...operations.Option) (*operations.GetchatapplicationResponse, error) { - request := operations.GetchatapplicationRequest{ - Locale: locale, - TimezoneOffset: timezoneOffset, - GetChatApplicationRequest: getChatApplicationRequest, - } - - o := operations.Options{} - supportedOptions := []string{ - operations.SupportedOptionRetries, - operations.SupportedOptionTimeout, - } - - for _, opt := range opts { - if err := opt(&o, supportedOptions...); err != nil { - return nil, fmt.Errorf("error applying option: %w", err) - } - } - - var baseURL string - if o.ServerURL == nil { - baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - } else { - baseURL = *o.ServerURL - } - opURL, err := url.JoinPath(baseURL, "/rest/api/v1/getchatapplication") - if err != nil { - return nil, fmt.Errorf("error generating URL: %w", err) - } - - hookCtx := hooks.HookContext{ - SDK: s.rootSDK, - SDKConfiguration: s.sdkConfiguration, - BaseURL: baseURL, - Context: ctx, - OperationID: "getchatapplication", - OAuth2Scopes: nil, - SecuritySource: s.sdkConfiguration.Security, - } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "GetChatApplicationRequest", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } - - timeout := o.Timeout - if timeout == nil { - timeout = s.sdkConfiguration.Timeout - } - - if timeout != nil { - var cancel context.CancelFunc - ctx, cancel = context.WithTimeout(ctx, *timeout) - defer cancel() - } - - req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) - if err != nil { - return nil, fmt.Errorf("error creating request: %w", err) - } - req.Header.Set("Accept", "application/json") - req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if reqContentType != "" { - req.Header.Set("Content-Type", reqContentType) - } - - if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { - return nil, fmt.Errorf("error populating query params: %w", err) - } - - if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { - return nil, err - } - - for k, v := range o.SetHeaders { - req.Header.Set(k, v) - } - - globalRetryConfig := s.sdkConfiguration.RetryConfig - retryConfig := o.Retries - if retryConfig == nil { - if globalRetryConfig != nil { - retryConfig = globalRetryConfig - } - } - - var httpRes *http.Response - if retryConfig != nil { - httpRes, err = utils.Retry(ctx, utils.Retries{ - Config: retryConfig, - StatusCodes: []string{ - "429", - "500", - "502", - "503", - "504", - }, - }, func() (*http.Response, error) { - if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { - copyBody, err := req.GetBody() - - if err != nil { - return nil, err - } - - req.Body = copyBody - } - - req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) - if err != nil { - if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { - return nil, err - } - - return nil, retry.Permanent(err) - } - - httpRes, err := s.sdkConfiguration.Client.Do(req) - if err != nil || httpRes == nil { - if err != nil { - err = fmt.Errorf("error sending request: %w", err) - } else { - err = fmt.Errorf("error sending request: no response") - } - - _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) - } - return httpRes, err - }) - - if err != nil { - return nil, err - } else { - httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) - if err != nil { - return nil, err - } - } - } else { - req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) - if err != nil { - return nil, err - } - - httpRes, err = s.sdkConfiguration.Client.Do(req) - if err != nil || httpRes == nil { - if err != nil { - err = fmt.Errorf("error sending request: %w", err) - } else { - err = fmt.Errorf("error sending request: no response") - } - - _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) - return nil, err - } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { - _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) - if err != nil { - return nil, err - } else if _httpRes != nil { - httpRes = _httpRes - } - } else { - httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) - if err != nil { - return nil, err - } - } - } - - res := &operations.GetchatapplicationResponse{ - HTTPMeta: components.HTTPMetadata{ - Request: req, - Response: httpRes, - }, - } - - switch { - case httpRes.StatusCode == 200: - switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - - var out components.GetChatApplicationResponse - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { - return nil, err - } - - res.GetChatApplicationResponse = &out - default: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) - } - case httpRes.StatusCode == 400: - fallthrough - case httpRes.StatusCode == 401: - fallthrough - case httpRes.StatusCode == 403: - fallthrough - case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) - case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) - default: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) - } - - return res, nil - -} - -// UploadFiles - Upload files for Chat -// Upload files for Chat. -func (s *Chat) UploadFiles(ctx context.Context, uploadChatFilesRequest components.UploadChatFilesRequest, locale *string, timezoneOffset *int64, opts ...operations.Option) (*operations.UploadchatfilesResponse, error) { - request := operations.UploadchatfilesRequest{ - Locale: locale, - TimezoneOffset: timezoneOffset, - UploadChatFilesRequest: uploadChatFilesRequest, - } - - o := operations.Options{} - supportedOptions := []string{ - operations.SupportedOptionRetries, - operations.SupportedOptionTimeout, - } - - for _, opt := range opts { - if err := opt(&o, supportedOptions...); err != nil { - return nil, fmt.Errorf("error applying option: %w", err) - } - } - - var baseURL string - if o.ServerURL == nil { - baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - } else { - baseURL = *o.ServerURL - } - opURL, err := url.JoinPath(baseURL, "/rest/api/v1/uploadchatfiles") - if err != nil { - return nil, fmt.Errorf("error generating URL: %w", err) - } - - hookCtx := hooks.HookContext{ - SDK: s.rootSDK, - SDKConfiguration: s.sdkConfiguration, - BaseURL: baseURL, - Context: ctx, - OperationID: "uploadchatfiles", - OAuth2Scopes: nil, - SecuritySource: s.sdkConfiguration.Security, - } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "UploadChatFilesRequest", "multipart", `request:"mediaType=multipart/form-data"`) - if err != nil { - return nil, err - } - - timeout := o.Timeout - if timeout == nil { - timeout = s.sdkConfiguration.Timeout - } - - if timeout != nil { - var cancel context.CancelFunc - ctx, cancel = context.WithTimeout(ctx, *timeout) - defer cancel() - } - - req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) - if err != nil { - return nil, fmt.Errorf("error creating request: %w", err) - } - req.Header.Set("Accept", "application/json") - req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if reqContentType != "" { - req.Header.Set("Content-Type", reqContentType) - } - - if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { - return nil, fmt.Errorf("error populating query params: %w", err) - } - - if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { - return nil, err - } - - for k, v := range o.SetHeaders { - req.Header.Set(k, v) - } - - globalRetryConfig := s.sdkConfiguration.RetryConfig - retryConfig := o.Retries - if retryConfig == nil { - if globalRetryConfig != nil { - retryConfig = globalRetryConfig - } - } - - var httpRes *http.Response - if retryConfig != nil { - httpRes, err = utils.Retry(ctx, utils.Retries{ - Config: retryConfig, - StatusCodes: []string{ - "429", - "500", - "502", - "503", - "504", - }, - }, func() (*http.Response, error) { - if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { - copyBody, err := req.GetBody() - - if err != nil { - return nil, err - } - - req.Body = copyBody - } - - req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) - if err != nil { - if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { - return nil, err - } - - return nil, retry.Permanent(err) - } - - httpRes, err := s.sdkConfiguration.Client.Do(req) - if err != nil || httpRes == nil { - if err != nil { - err = fmt.Errorf("error sending request: %w", err) - } else { - err = fmt.Errorf("error sending request: no response") - } - - _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) - } - return httpRes, err - }) - - if err != nil { - return nil, err - } else { - httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) - if err != nil { - return nil, err - } - } - } else { - req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) - if err != nil { - return nil, err - } - - httpRes, err = s.sdkConfiguration.Client.Do(req) - if err != nil || httpRes == nil { - if err != nil { - err = fmt.Errorf("error sending request: %w", err) - } else { - err = fmt.Errorf("error sending request: no response") - } - - _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) - return nil, err - } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { - _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) - if err != nil { - return nil, err - } else if _httpRes != nil { - httpRes = _httpRes - } - } else { - httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) - if err != nil { - return nil, err - } - } - } - - res := &operations.UploadchatfilesResponse{ - HTTPMeta: components.HTTPMetadata{ - Request: req, - Response: httpRes, - }, - } - - switch { - case httpRes.StatusCode == 200: - switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - - var out components.UploadChatFilesResponse - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { - return nil, err - } - - res.UploadChatFilesResponse = &out - default: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) - } - case httpRes.StatusCode == 400: - fallthrough - case httpRes.StatusCode == 401: - fallthrough - case httpRes.StatusCode == 403: - fallthrough - case httpRes.StatusCode == 429: - fallthrough - case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) - case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) - default: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) - } - - return res, nil - -} - -// RetrieveFiles - Get files uploaded by a user for Chat -// Get files uploaded by a user for Chat. -func (s *Chat) RetrieveFiles(ctx context.Context, getChatFilesRequest components.GetChatFilesRequest, locale *string, timezoneOffset *int64, opts ...operations.Option) (*operations.GetchatfilesResponse, error) { - request := operations.GetchatfilesRequest{ - Locale: locale, - TimezoneOffset: timezoneOffset, - GetChatFilesRequest: getChatFilesRequest, - } - - o := operations.Options{} - supportedOptions := []string{ - operations.SupportedOptionRetries, - operations.SupportedOptionTimeout, - } - - for _, opt := range opts { - if err := opt(&o, supportedOptions...); err != nil { - return nil, fmt.Errorf("error applying option: %w", err) - } - } - - var baseURL string - if o.ServerURL == nil { - baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - } else { - baseURL = *o.ServerURL - } - opURL, err := url.JoinPath(baseURL, "/rest/api/v1/getchatfiles") - if err != nil { - return nil, fmt.Errorf("error generating URL: %w", err) - } - - hookCtx := hooks.HookContext{ - SDK: s.rootSDK, - SDKConfiguration: s.sdkConfiguration, - BaseURL: baseURL, - Context: ctx, - OperationID: "getchatfiles", - OAuth2Scopes: nil, - SecuritySource: s.sdkConfiguration.Security, - } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "GetChatFilesRequest", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } - - timeout := o.Timeout - if timeout == nil { - timeout = s.sdkConfiguration.Timeout - } - - if timeout != nil { - var cancel context.CancelFunc - ctx, cancel = context.WithTimeout(ctx, *timeout) - defer cancel() - } - - req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) - if err != nil { - return nil, fmt.Errorf("error creating request: %w", err) - } - req.Header.Set("Accept", "application/json") - req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if reqContentType != "" { - req.Header.Set("Content-Type", reqContentType) - } - - if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { - return nil, fmt.Errorf("error populating query params: %w", err) - } - - if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { - return nil, err - } - - for k, v := range o.SetHeaders { - req.Header.Set(k, v) - } - - globalRetryConfig := s.sdkConfiguration.RetryConfig - retryConfig := o.Retries - if retryConfig == nil { - if globalRetryConfig != nil { - retryConfig = globalRetryConfig - } - } - - var httpRes *http.Response - if retryConfig != nil { - httpRes, err = utils.Retry(ctx, utils.Retries{ - Config: retryConfig, - StatusCodes: []string{ - "429", - "500", - "502", - "503", - "504", - }, - }, func() (*http.Response, error) { - if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { - copyBody, err := req.GetBody() - - if err != nil { - return nil, err - } - - req.Body = copyBody - } - - req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) - if err != nil { - if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { - return nil, err - } - - return nil, retry.Permanent(err) - } - - httpRes, err := s.sdkConfiguration.Client.Do(req) - if err != nil || httpRes == nil { - if err != nil { - err = fmt.Errorf("error sending request: %w", err) - } else { - err = fmt.Errorf("error sending request: no response") - } - - _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) - } - return httpRes, err - }) - - if err != nil { - return nil, err - } else { - httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) - if err != nil { - return nil, err - } - } - } else { - req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) - if err != nil { - return nil, err - } - - httpRes, err = s.sdkConfiguration.Client.Do(req) - if err != nil || httpRes == nil { - if err != nil { - err = fmt.Errorf("error sending request: %w", err) - } else { - err = fmt.Errorf("error sending request: no response") - } - - _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) - return nil, err - } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { - _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) - if err != nil { - return nil, err - } else if _httpRes != nil { - httpRes = _httpRes - } - } else { - httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) - if err != nil { - return nil, err - } - } - } - - res := &operations.GetchatfilesResponse{ - HTTPMeta: components.HTTPMetadata{ - Request: req, - Response: httpRes, - }, - } - - switch { - case httpRes.StatusCode == 200: - switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - - var out components.GetChatFilesResponse - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { - return nil, err - } - - res.GetChatFilesResponse = &out - default: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) - } - case httpRes.StatusCode == 400: - fallthrough - case httpRes.StatusCode == 401: - fallthrough - case httpRes.StatusCode == 403: - fallthrough - case httpRes.StatusCode == 429: - fallthrough - case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) - case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) - default: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) - } - - return res, nil - -} - -// DeleteFiles - Delete files uploaded by a user for chat -// Delete files uploaded by a user for Chat. -func (s *Chat) DeleteFiles(ctx context.Context, deleteChatFilesRequest components.DeleteChatFilesRequest, locale *string, timezoneOffset *int64, opts ...operations.Option) (*operations.DeletechatfilesResponse, error) { - request := operations.DeletechatfilesRequest{ - Locale: locale, - TimezoneOffset: timezoneOffset, - DeleteChatFilesRequest: deleteChatFilesRequest, - } - - o := operations.Options{} - supportedOptions := []string{ - operations.SupportedOptionRetries, - operations.SupportedOptionTimeout, - } - - for _, opt := range opts { - if err := opt(&o, supportedOptions...); err != nil { - return nil, fmt.Errorf("error applying option: %w", err) - } - } - - var baseURL string - if o.ServerURL == nil { - baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - } else { - baseURL = *o.ServerURL - } - opURL, err := url.JoinPath(baseURL, "/rest/api/v1/deletechatfiles") - if err != nil { - return nil, fmt.Errorf("error generating URL: %w", err) - } - - hookCtx := hooks.HookContext{ - SDK: s.rootSDK, - SDKConfiguration: s.sdkConfiguration, - BaseURL: baseURL, - Context: ctx, - OperationID: "deletechatfiles", - OAuth2Scopes: nil, - SecuritySource: s.sdkConfiguration.Security, - } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "DeleteChatFilesRequest", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } - - timeout := o.Timeout - if timeout == nil { - timeout = s.sdkConfiguration.Timeout - } - - if timeout != nil { - var cancel context.CancelFunc - ctx, cancel = context.WithTimeout(ctx, *timeout) - defer cancel() - } - - req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) - if err != nil { - return nil, fmt.Errorf("error creating request: %w", err) - } - req.Header.Set("Accept", "*/*") - req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if reqContentType != "" { - req.Header.Set("Content-Type", reqContentType) - } - - if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { - return nil, fmt.Errorf("error populating query params: %w", err) - } - - if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { - return nil, err - } - - for k, v := range o.SetHeaders { - req.Header.Set(k, v) - } - - globalRetryConfig := s.sdkConfiguration.RetryConfig - retryConfig := o.Retries - if retryConfig == nil { - if globalRetryConfig != nil { - retryConfig = globalRetryConfig - } - } - - var httpRes *http.Response - if retryConfig != nil { - httpRes, err = utils.Retry(ctx, utils.Retries{ - Config: retryConfig, - StatusCodes: []string{ - "429", - "500", - "502", - "503", - "504", - }, - }, func() (*http.Response, error) { - if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { - copyBody, err := req.GetBody() - - if err != nil { - return nil, err - } - - req.Body = copyBody - } - - req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) - if err != nil { - if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { - return nil, err - } - - return nil, retry.Permanent(err) - } - - httpRes, err := s.sdkConfiguration.Client.Do(req) - if err != nil || httpRes == nil { - if err != nil { - err = fmt.Errorf("error sending request: %w", err) - } else { - err = fmt.Errorf("error sending request: no response") - } - - _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) - } - return httpRes, err - }) - - if err != nil { - return nil, err - } else { - httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) - if err != nil { - return nil, err - } - } - } else { - req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) - if err != nil { - return nil, err - } - - httpRes, err = s.sdkConfiguration.Client.Do(req) - if err != nil || httpRes == nil { - if err != nil { - err = fmt.Errorf("error sending request: %w", err) - } else { - err = fmt.Errorf("error sending request: no response") - } - - _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) - return nil, err - } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { - _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) - if err != nil { - return nil, err - } else if _httpRes != nil { - httpRes = _httpRes - } - } else { - httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) - if err != nil { - return nil, err - } - } - } - - res := &operations.DeletechatfilesResponse{ - HTTPMeta: components.HTTPMetadata{ - Request: req, - Response: httpRes, - }, - } - - switch { - case httpRes.StatusCode == 200: - utils.DrainBody(httpRes) - case httpRes.StatusCode == 400: - fallthrough - case httpRes.StatusCode == 401: - fallthrough - case httpRes.StatusCode == 403: - fallthrough - case httpRes.StatusCode == 429: - fallthrough - case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) - case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) - default: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) - } - - return res, nil - -} - -// CreateStream - Chat -// Have a conversation with Glean AI. -func (s *Chat) CreateStream(ctx context.Context, chatRequest components.ChatRequest, timezoneOffset *int64, opts ...operations.Option) (*operations.ChatStreamResponse, error) { - request := operations.ChatStreamRequest{ - TimezoneOffset: timezoneOffset, - ChatRequest: chatRequest, - } - - o := operations.Options{} - supportedOptions := []string{ - operations.SupportedOptionRetries, - operations.SupportedOptionTimeout, - } - - for _, opt := range opts { - if err := opt(&o, supportedOptions...); err != nil { - return nil, fmt.Errorf("error applying option: %w", err) - } - } - - var baseURL string - if o.ServerURL == nil { - baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - } else { - baseURL = *o.ServerURL - } - opURL, err := url.JoinPath(baseURL, "/rest/api/v1/chat") - if err != nil { - return nil, fmt.Errorf("error generating URL: %w", err) - } - - hookCtx := hooks.HookContext{ - SDK: s.rootSDK, - SDKConfiguration: s.sdkConfiguration, - BaseURL: baseURL, - Context: ctx, - OperationID: "chatStream", - OAuth2Scopes: nil, - SecuritySource: s.sdkConfiguration.Security, - } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "ChatRequest", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } - - timeout := o.Timeout - if timeout == nil { - timeout = s.sdkConfiguration.Timeout - } - - if timeout != nil { - var cancel context.CancelFunc - ctx, cancel = context.WithTimeout(ctx, *timeout) - defer cancel() - } - - req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) - if err != nil { - return nil, fmt.Errorf("error creating request: %w", err) - } - req.Header.Set("Accept", "text/plain") - req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if reqContentType != "" { - req.Header.Set("Content-Type", reqContentType) - } - - if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { - return nil, fmt.Errorf("error populating query params: %w", err) - } - - if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { - return nil, err - } - - for k, v := range o.SetHeaders { - req.Header.Set(k, v) - } - - globalRetryConfig := s.sdkConfiguration.RetryConfig - retryConfig := o.Retries - if retryConfig == nil { - if globalRetryConfig != nil { - retryConfig = globalRetryConfig - } - } - - var httpRes *http.Response - if retryConfig != nil { - httpRes, err = utils.Retry(ctx, utils.Retries{ - Config: retryConfig, - StatusCodes: []string{ - "429", - "500", - "502", - "503", - "504", - }, - }, func() (*http.Response, error) { - if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { - copyBody, err := req.GetBody() - - if err != nil { - return nil, err - } - - req.Body = copyBody - } - - req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) - if err != nil { - if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { - return nil, err - } - - return nil, retry.Permanent(err) - } - - httpRes, err := s.sdkConfiguration.Client.Do(req) - if err != nil || httpRes == nil { - if err != nil { - err = fmt.Errorf("error sending request: %w", err) - } else { - err = fmt.Errorf("error sending request: no response") - } - - _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) - } - return httpRes, err - }) - - if err != nil { - return nil, err - } else { - httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) - if err != nil { - return nil, err - } - } - } else { - req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) - if err != nil { - return nil, err - } - - httpRes, err = s.sdkConfiguration.Client.Do(req) - if err != nil || httpRes == nil { - if err != nil { - err = fmt.Errorf("error sending request: %w", err) - } else { - err = fmt.Errorf("error sending request: no response") - } - - _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) - return nil, err - } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { - _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) - if err != nil { - return nil, err - } else if _httpRes != nil { - httpRes = _httpRes - } - } else { - httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) - if err != nil { - return nil, err - } - } - } - - res := &operations.ChatStreamResponse{ - HTTPMeta: components.HTTPMetadata{ - Request: req, - Response: httpRes, - }, - } - - switch { - case httpRes.StatusCode == 200: - switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `text/plain`): - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - - out := string(rawBody) - res.ChatRequestStream = &out - default: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) - } - case httpRes.StatusCode == 400: - fallthrough - case httpRes.StatusCode == 401: - fallthrough - case httpRes.StatusCode == 408: - fallthrough - case httpRes.StatusCode == 429: - fallthrough - case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: rawBody, err := utils.ConsumeRawBody(httpRes) if err != nil { diff --git a/client.go b/client.go index 2a68a93b..207a32f1 100644 --- a/client.go +++ b/client.go @@ -12,18 +12,18 @@ type Client struct { Announcements *Announcements Answers *Answers Authentication *ClientAuthentication - Chat *Chat - Agents *Agents + Chat *ClientChat + Agents *ClientAgents Collections *Collections Documents *ClientDocuments Insights *Insights Messages *Messages Pins *Pins Search *Search - Entities *Entities + Entities *ClientEntities Shortcuts *ClientShortcuts Verification *Verification - Tools *Tools + Tools *ClientTools Governance *ClientGovernance rootSDK *Glean @@ -40,18 +40,18 @@ func newClient(rootSDK *Glean, sdkConfig config.SDKConfiguration, hooks *hooks.H Announcements: newAnnouncements(rootSDK, sdkConfig, hooks), Answers: newAnswers(rootSDK, sdkConfig, hooks), Authentication: newClientAuthentication(rootSDK, sdkConfig, hooks), - Chat: newChat(rootSDK, sdkConfig, hooks), - Agents: newAgents(rootSDK, sdkConfig, hooks), + Chat: newClientChat(rootSDK, sdkConfig, hooks), + Agents: newClientAgents(rootSDK, sdkConfig, hooks), Collections: newCollections(rootSDK, sdkConfig, hooks), Documents: newClientDocuments(rootSDK, sdkConfig, hooks), Insights: newInsights(rootSDK, sdkConfig, hooks), Messages: newMessages(rootSDK, sdkConfig, hooks), Pins: newPins(rootSDK, sdkConfig, hooks), Search: newSearch(rootSDK, sdkConfig, hooks), - Entities: newEntities(rootSDK, sdkConfig, hooks), + Entities: newClientEntities(rootSDK, sdkConfig, hooks), Shortcuts: newClientShortcuts(rootSDK, sdkConfig, hooks), Verification: newVerification(rootSDK, sdkConfig, hooks), - Tools: newTools(rootSDK, sdkConfig, hooks), + Tools: newClientTools(rootSDK, sdkConfig, hooks), Governance: newClientGovernance(rootSDK, sdkConfig, hooks), } } diff --git a/clientagents.go b/clientagents.go new file mode 100644 index 00000000..8e2e226d --- /dev/null +++ b/clientagents.go @@ -0,0 +1,1243 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package apiclientgo + +import ( + "bytes" + "context" + "fmt" + "github.com/gleanwork/api-client-go/internal/config" + "github.com/gleanwork/api-client-go/internal/hooks" + "github.com/gleanwork/api-client-go/internal/utils" + "github.com/gleanwork/api-client-go/models/apierrors" + "github.com/gleanwork/api-client-go/models/components" + "github.com/gleanwork/api-client-go/models/operations" + "github.com/gleanwork/api-client-go/retry" + "net/http" + "net/url" +) + +type ClientAgents struct { + rootSDK *Glean + sdkConfiguration config.SDKConfiguration + hooks *hooks.Hooks +} + +func newClientAgents(rootSDK *Glean, sdkConfig config.SDKConfiguration, hooks *hooks.Hooks) *ClientAgents { + return &ClientAgents{ + rootSDK: rootSDK, + sdkConfiguration: sdkConfig, + hooks: hooks, + } +} + +// Retrieve an agent +// Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent Builder. +func (s *ClientAgents) Retrieve(ctx context.Context, agentID string, locale *string, timezoneOffset *int64, opts ...operations.Option) (*operations.GetAgentResponse, error) { + request := operations.GetAgentRequest{ + Locale: locale, + TimezoneOffset: timezoneOffset, + AgentID: agentID, + } + + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := utils.GenerateURL(ctx, baseURL, "/rest/api/v1/agents/{agent_id}", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "getAgent", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { + return nil, fmt.Errorf("error populating query params: %w", err) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.GetAgentResponse{ + HTTPMeta: components.HTTPMetadata{ + Request: req, + Response: httpRes, + }, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out components.Agent + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.Agent = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode == 404: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out apierrors.ErrorResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + out.HTTPMeta = components.HTTPMetadata{ + Request: req, + Response: httpRes, + } + return nil, &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode == 400: + fallthrough + case httpRes.StatusCode == 403: + fallthrough + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// RetrieveSchemas - List an agent's schemas +// Return [agent](https://developers.glean.com/agents/agents-api)'s input and output schemas. You can use these schemas to detect changes to an agent's input or output structure. +func (s *ClientAgents) RetrieveSchemas(ctx context.Context, agentID string, locale *string, timezoneOffset *int64, opts ...operations.Option) (*operations.GetAgentSchemasResponse, error) { + request := operations.GetAgentSchemasRequest{ + Locale: locale, + TimezoneOffset: timezoneOffset, + AgentID: agentID, + } + + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := utils.GenerateURL(ctx, baseURL, "/rest/api/v1/agents/{agent_id}/schemas", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "getAgentSchemas", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { + return nil, fmt.Errorf("error populating query params: %w", err) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.GetAgentSchemasResponse{ + HTTPMeta: components.HTTPMetadata{ + Request: req, + Response: httpRes, + }, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out components.AgentSchemas + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.AgentSchemas = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode == 404: + fallthrough + case httpRes.StatusCode == 422: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out apierrors.ErrorResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + out.HTTPMeta = components.HTTPMetadata{ + Request: req, + Response: httpRes, + } + return nil, &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode == 400: + fallthrough + case httpRes.StatusCode == 403: + fallthrough + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// List - Search agents +// Search for [agents](https://developers.glean.com/agents/agents-api) by agent name. +func (s *ClientAgents) List(ctx context.Context, request components.SearchAgentsRequest, opts ...operations.Option) (*operations.SearchAgentsResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := url.JoinPath(baseURL, "/rest/api/v1/agents/search") + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "searchAgents", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "Request", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.SearchAgentsResponse{ + HTTPMeta: components.HTTPMetadata{ + Request: req, + Response: httpRes, + }, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out components.SearchAgentsResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.SearchAgentsResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode == 404: + fallthrough + case httpRes.StatusCode == 422: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out apierrors.ErrorResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + out.HTTPMeta = components.HTTPMetadata{ + Request: req, + Response: httpRes, + } + return nil, &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode == 400: + fallthrough + case httpRes.StatusCode == 403: + fallthrough + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// RunStream - Create an agent run and stream the response +// Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the result as a stream of server-sent events (SSE). **Note**: If the agent uses an input form trigger, all form fields (including optional fields) must be included in the `input` object. +func (s *ClientAgents) RunStream(ctx context.Context, request components.AgentRunCreate, opts ...operations.Option) (*operations.CreateAndStreamRunResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := url.JoinPath(baseURL, "/rest/api/v1/agents/runs/stream") + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "createAndStreamRun", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "Request", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "text/event-stream") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.CreateAndStreamRunResponse{ + HTTPMeta: components.HTTPMetadata{ + Request: req, + Response: httpRes, + }, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `text/event-stream`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + out := string(rawBody) + res.Res = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode == 404: + fallthrough + case httpRes.StatusCode == 409: + fallthrough + case httpRes.StatusCode == 422: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out apierrors.ErrorResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + out.HTTPMeta = components.HTTPMetadata{ + Request: req, + Response: httpRes, + } + return nil, &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode == 400: + fallthrough + case httpRes.StatusCode == 403: + fallthrough + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// Run - Create an agent run and wait for the response +// Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the final response. **Note**: If the agent uses an input form trigger, all form fields (including optional fields) must be included in the `input` object. +func (s *ClientAgents) Run(ctx context.Context, request components.AgentRunCreate, opts ...operations.Option) (*operations.CreateAndWaitRunResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := url.JoinPath(baseURL, "/rest/api/v1/agents/runs/wait") + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "createAndWaitRun", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "Request", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.CreateAndWaitRunResponse{ + HTTPMeta: components.HTTPMetadata{ + Request: req, + Response: httpRes, + }, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out components.AgentRunWaitResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.AgentRunWaitResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode == 400: + fallthrough + case httpRes.StatusCode == 403: + fallthrough + case httpRes.StatusCode == 404: + fallthrough + case httpRes.StatusCode == 409: + fallthrough + case httpRes.StatusCode == 422: + fallthrough + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} diff --git a/clientchat.go b/clientchat.go new file mode 100644 index 00000000..ac1b01d0 --- /dev/null +++ b/clientchat.go @@ -0,0 +1,2258 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package apiclientgo + +import ( + "bytes" + "context" + "fmt" + "github.com/gleanwork/api-client-go/internal/config" + "github.com/gleanwork/api-client-go/internal/hooks" + "github.com/gleanwork/api-client-go/internal/utils" + "github.com/gleanwork/api-client-go/models/apierrors" + "github.com/gleanwork/api-client-go/models/components" + "github.com/gleanwork/api-client-go/models/operations" + "github.com/gleanwork/api-client-go/retry" + "net/http" + "net/url" +) + +type ClientChat struct { + rootSDK *Glean + sdkConfiguration config.SDKConfiguration + hooks *hooks.Hooks +} + +func newClientChat(rootSDK *Glean, sdkConfig config.SDKConfiguration, hooks *hooks.Hooks) *ClientChat { + return &ClientChat{ + rootSDK: rootSDK, + sdkConfiguration: sdkConfig, + hooks: hooks, + } +} + +// Create - Chat +// Have a conversation with Glean AI. +func (s *ClientChat) Create(ctx context.Context, chatRequest components.ChatRequest, locale *string, timezoneOffset *int64, opts ...operations.Option) (*operations.ChatResponse, error) { + request := operations.ChatRequest{ + Locale: locale, + TimezoneOffset: timezoneOffset, + ChatRequest: chatRequest, + } + + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := url.JoinPath(baseURL, "/rest/api/v1/chat") + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "chat", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "ChatRequest", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { + return nil, fmt.Errorf("error populating query params: %w", err) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.ChatResponse{ + HTTPMeta: components.HTTPMetadata{ + Request: req, + Response: httpRes, + }, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out components.ChatResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.ChatResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode == 400: + fallthrough + case httpRes.StatusCode == 401: + fallthrough + case httpRes.StatusCode == 408: + fallthrough + case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// DeleteAll - Deletes all saved Chats owned by a user +// Deletes all saved Chats a user has had and all their contained conversational content. +func (s *ClientChat) DeleteAll(ctx context.Context, locale *string, timezoneOffset *int64, opts ...operations.Option) (*operations.DeleteallchatsResponse, error) { + request := operations.DeleteallchatsRequest{ + Locale: locale, + TimezoneOffset: timezoneOffset, + } + + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := url.JoinPath(baseURL, "/rest/api/v1/deleteallchats") + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "deleteallchats", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "POST", opURL, nil) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "*/*") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { + return nil, fmt.Errorf("error populating query params: %w", err) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.DeleteallchatsResponse{ + HTTPMeta: components.HTTPMetadata{ + Request: req, + Response: httpRes, + }, + } + + switch { + case httpRes.StatusCode == 200: + utils.DrainBody(httpRes) + case httpRes.StatusCode == 400: + fallthrough + case httpRes.StatusCode == 401: + fallthrough + case httpRes.StatusCode == 403: + fallthrough + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// Delete - Deletes saved Chats +// Deletes saved Chats and all their contained conversational content. +func (s *ClientChat) Delete(ctx context.Context, deleteChatsRequest components.DeleteChatsRequest, locale *string, timezoneOffset *int64, opts ...operations.Option) (*operations.DeletechatsResponse, error) { + request := operations.DeletechatsRequest{ + Locale: locale, + TimezoneOffset: timezoneOffset, + DeleteChatsRequest: deleteChatsRequest, + } + + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := url.JoinPath(baseURL, "/rest/api/v1/deletechats") + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "deletechats", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "DeleteChatsRequest", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "*/*") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { + return nil, fmt.Errorf("error populating query params: %w", err) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.DeletechatsResponse{ + HTTPMeta: components.HTTPMetadata{ + Request: req, + Response: httpRes, + }, + } + + switch { + case httpRes.StatusCode == 200: + utils.DrainBody(httpRes) + case httpRes.StatusCode == 400: + fallthrough + case httpRes.StatusCode == 401: + fallthrough + case httpRes.StatusCode == 403: + fallthrough + case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// Retrieve - Retrieves a Chat +// Retrieves the chat history between Glean Assistant and the user for a given Chat. +func (s *ClientChat) Retrieve(ctx context.Context, getChatRequest components.GetChatRequest, locale *string, timezoneOffset *int64, opts ...operations.Option) (*operations.GetchatResponse, error) { + request := operations.GetchatRequest{ + Locale: locale, + TimezoneOffset: timezoneOffset, + GetChatRequest: getChatRequest, + } + + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := url.JoinPath(baseURL, "/rest/api/v1/getchat") + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "getchat", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "GetChatRequest", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { + return nil, fmt.Errorf("error populating query params: %w", err) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.GetchatResponse{ + HTTPMeta: components.HTTPMetadata{ + Request: req, + Response: httpRes, + }, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out components.GetChatResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.GetChatResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode == 400: + fallthrough + case httpRes.StatusCode == 401: + fallthrough + case httpRes.StatusCode == 403: + fallthrough + case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// List - Retrieves all saved Chats +// Retrieves all the saved Chats between Glean Assistant and the user. The returned Chats contain only metadata and no conversational content. +func (s *ClientChat) List(ctx context.Context, locale *string, timezoneOffset *int64, opts ...operations.Option) (*operations.ListchatsResponse, error) { + request := operations.ListchatsRequest{ + Locale: locale, + TimezoneOffset: timezoneOffset, + } + + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := url.JoinPath(baseURL, "/rest/api/v1/listchats") + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "listchats", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "POST", opURL, nil) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { + return nil, fmt.Errorf("error populating query params: %w", err) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.ListchatsResponse{ + HTTPMeta: components.HTTPMetadata{ + Request: req, + Response: httpRes, + }, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out components.ListChatsResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.ListChatsResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode == 401: + fallthrough + case httpRes.StatusCode == 403: + fallthrough + case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// RetrieveApplication - Gets the metadata for a custom Chat application +// Gets the Chat application details for the specified application ID. +func (s *ClientChat) RetrieveApplication(ctx context.Context, getChatApplicationRequest components.GetChatApplicationRequest, locale *string, timezoneOffset *int64, opts ...operations.Option) (*operations.GetchatapplicationResponse, error) { + request := operations.GetchatapplicationRequest{ + Locale: locale, + TimezoneOffset: timezoneOffset, + GetChatApplicationRequest: getChatApplicationRequest, + } + + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := url.JoinPath(baseURL, "/rest/api/v1/getchatapplication") + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "getchatapplication", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "GetChatApplicationRequest", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { + return nil, fmt.Errorf("error populating query params: %w", err) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.GetchatapplicationResponse{ + HTTPMeta: components.HTTPMetadata{ + Request: req, + Response: httpRes, + }, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out components.GetChatApplicationResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.GetChatApplicationResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode == 400: + fallthrough + case httpRes.StatusCode == 401: + fallthrough + case httpRes.StatusCode == 403: + fallthrough + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// UploadFiles - Upload files for Chat +// Upload files for Chat. +func (s *ClientChat) UploadFiles(ctx context.Context, uploadChatFilesRequest components.UploadChatFilesRequest, locale *string, timezoneOffset *int64, opts ...operations.Option) (*operations.UploadchatfilesResponse, error) { + request := operations.UploadchatfilesRequest{ + Locale: locale, + TimezoneOffset: timezoneOffset, + UploadChatFilesRequest: uploadChatFilesRequest, + } + + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := url.JoinPath(baseURL, "/rest/api/v1/uploadchatfiles") + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "uploadchatfiles", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "UploadChatFilesRequest", "multipart", `request:"mediaType=multipart/form-data"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { + return nil, fmt.Errorf("error populating query params: %w", err) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.UploadchatfilesResponse{ + HTTPMeta: components.HTTPMetadata{ + Request: req, + Response: httpRes, + }, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out components.UploadChatFilesResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.UploadChatFilesResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode == 400: + fallthrough + case httpRes.StatusCode == 401: + fallthrough + case httpRes.StatusCode == 403: + fallthrough + case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// RetrieveFiles - Get files uploaded by a user for Chat +// Get files uploaded by a user for Chat. +func (s *ClientChat) RetrieveFiles(ctx context.Context, getChatFilesRequest components.GetChatFilesRequest, locale *string, timezoneOffset *int64, opts ...operations.Option) (*operations.GetchatfilesResponse, error) { + request := operations.GetchatfilesRequest{ + Locale: locale, + TimezoneOffset: timezoneOffset, + GetChatFilesRequest: getChatFilesRequest, + } + + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := url.JoinPath(baseURL, "/rest/api/v1/getchatfiles") + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "getchatfiles", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "GetChatFilesRequest", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { + return nil, fmt.Errorf("error populating query params: %w", err) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.GetchatfilesResponse{ + HTTPMeta: components.HTTPMetadata{ + Request: req, + Response: httpRes, + }, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out components.GetChatFilesResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.GetChatFilesResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode == 400: + fallthrough + case httpRes.StatusCode == 401: + fallthrough + case httpRes.StatusCode == 403: + fallthrough + case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// DeleteFiles - Delete files uploaded by a user for chat +// Delete files uploaded by a user for Chat. +func (s *ClientChat) DeleteFiles(ctx context.Context, deleteChatFilesRequest components.DeleteChatFilesRequest, locale *string, timezoneOffset *int64, opts ...operations.Option) (*operations.DeletechatfilesResponse, error) { + request := operations.DeletechatfilesRequest{ + Locale: locale, + TimezoneOffset: timezoneOffset, + DeleteChatFilesRequest: deleteChatFilesRequest, + } + + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := url.JoinPath(baseURL, "/rest/api/v1/deletechatfiles") + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "deletechatfiles", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "DeleteChatFilesRequest", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "*/*") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { + return nil, fmt.Errorf("error populating query params: %w", err) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.DeletechatfilesResponse{ + HTTPMeta: components.HTTPMetadata{ + Request: req, + Response: httpRes, + }, + } + + switch { + case httpRes.StatusCode == 200: + utils.DrainBody(httpRes) + case httpRes.StatusCode == 400: + fallthrough + case httpRes.StatusCode == 401: + fallthrough + case httpRes.StatusCode == 403: + fallthrough + case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// CreateStream - Chat +// Have a conversation with Glean AI. +func (s *ClientChat) CreateStream(ctx context.Context, chatRequest components.ChatRequest, timezoneOffset *int64, opts ...operations.Option) (*operations.ChatStreamResponse, error) { + request := operations.ChatStreamRequest{ + TimezoneOffset: timezoneOffset, + ChatRequest: chatRequest, + } + + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := url.JoinPath(baseURL, "/rest/api/v1/chat") + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "chatStream", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "ChatRequest", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "text/plain") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { + return nil, fmt.Errorf("error populating query params: %w", err) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.ChatStreamResponse{ + HTTPMeta: components.HTTPMetadata{ + Request: req, + Response: httpRes, + }, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `text/plain`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + out := string(rawBody) + res.ChatRequestStream = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode == 400: + fallthrough + case httpRes.StatusCode == 401: + fallthrough + case httpRes.StatusCode == 408: + fallthrough + case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} diff --git a/cliententities.go b/cliententities.go new file mode 100644 index 00000000..5cea6c07 --- /dev/null +++ b/cliententities.go @@ -0,0 +1,488 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package apiclientgo + +import ( + "bytes" + "context" + "fmt" + "github.com/gleanwork/api-client-go/internal/config" + "github.com/gleanwork/api-client-go/internal/hooks" + "github.com/gleanwork/api-client-go/internal/utils" + "github.com/gleanwork/api-client-go/models/apierrors" + "github.com/gleanwork/api-client-go/models/components" + "github.com/gleanwork/api-client-go/models/operations" + "github.com/gleanwork/api-client-go/retry" + "net/http" + "net/url" +) + +type ClientEntities struct { + rootSDK *Glean + sdkConfiguration config.SDKConfiguration + hooks *hooks.Hooks +} + +func newClientEntities(rootSDK *Glean, sdkConfig config.SDKConfiguration, hooks *hooks.Hooks) *ClientEntities { + return &ClientEntities{ + rootSDK: rootSDK, + sdkConfiguration: sdkConfig, + hooks: hooks, + } +} + +// List entities +// List some set of details for all entities that fit the given criteria and return in the requested order. Does not support negation in filters, assumes relation type EQUALS. There is a limit of 10000 entities that can be retrieved via this endpoint, except when using FULL_DIRECTORY request type for people entities. +func (s *ClientEntities) List(ctx context.Context, listEntitiesRequest components.ListEntitiesRequest, locale *string, opts ...operations.Option) (*operations.ListentitiesResponse, error) { + request := operations.ListentitiesRequest{ + Locale: locale, + ListEntitiesRequest: listEntitiesRequest, + } + + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := url.JoinPath(baseURL, "/rest/api/v1/listentities") + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "listentities", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "ListEntitiesRequest", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { + return nil, fmt.Errorf("error populating query params: %w", err) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.ListentitiesResponse{ + HTTPMeta: components.HTTPMetadata{ + Request: req, + Response: httpRes, + }, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out components.ListEntitiesResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.ListEntitiesResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode == 400: + fallthrough + case httpRes.StatusCode == 401: + fallthrough + case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// ReadPeople - Read people +// Read people details for the given IDs. +func (s *ClientEntities) ReadPeople(ctx context.Context, peopleRequest components.PeopleRequest, locale *string, opts ...operations.Option) (*operations.PeopleResponse, error) { + request := operations.PeopleRequest{ + Locale: locale, + PeopleRequest: peopleRequest, + } + + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := url.JoinPath(baseURL, "/rest/api/v1/people") + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "people", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "PeopleRequest", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { + return nil, fmt.Errorf("error populating query params: %w", err) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.PeopleResponse{ + HTTPMeta: components.HTTPMetadata{ + Request: req, + Response: httpRes, + }, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out components.PeopleResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.PeopleResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode == 400: + fallthrough + case httpRes.StatusCode == 401: + fallthrough + case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} diff --git a/clienttools.go b/clienttools.go new file mode 100644 index 00000000..cd7e5379 --- /dev/null +++ b/clienttools.go @@ -0,0 +1,475 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package apiclientgo + +import ( + "bytes" + "context" + "fmt" + "github.com/gleanwork/api-client-go/internal/config" + "github.com/gleanwork/api-client-go/internal/hooks" + "github.com/gleanwork/api-client-go/internal/utils" + "github.com/gleanwork/api-client-go/models/apierrors" + "github.com/gleanwork/api-client-go/models/components" + "github.com/gleanwork/api-client-go/models/operations" + "github.com/gleanwork/api-client-go/retry" + "net/http" + "net/url" +) + +type ClientTools struct { + rootSDK *Glean + sdkConfiguration config.SDKConfiguration + hooks *hooks.Hooks +} + +func newClientTools(rootSDK *Glean, sdkConfig config.SDKConfiguration, hooks *hooks.Hooks) *ClientTools { + return &ClientTools{ + rootSDK: rootSDK, + sdkConfiguration: sdkConfig, + hooks: hooks, + } +} + +// List available tools +// Returns a filtered set of available tools based on optional tool name parameters. If no filters are provided, all available tools are returned. +func (s *ClientTools) List(ctx context.Context, toolNames []string, opts ...operations.Option) (*operations.GetRestAPIV1ToolsListResponse, error) { + request := operations.GetRestAPIV1ToolsListRequest{ + ToolNames: toolNames, + } + + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := url.JoinPath(baseURL, "/rest/api/v1/tools/list") + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "get_/rest/api/v1/tools/list", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { + return nil, fmt.Errorf("error populating query params: %w", err) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.GetRestAPIV1ToolsListResponse{ + HTTPMeta: components.HTTPMetadata{ + Request: req, + Response: httpRes, + }, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out components.ToolsListResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.ToolsListResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode == 400: + fallthrough + case httpRes.StatusCode == 401: + fallthrough + case httpRes.StatusCode == 404: + fallthrough + case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// Run - Execute the specified tool +// Execute the specified tool with provided parameters +func (s *ClientTools) Run(ctx context.Context, request components.ToolsCallRequest, opts ...operations.Option) (*operations.PostRestAPIV1ToolsCallResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := url.JoinPath(baseURL, "/rest/api/v1/tools/call") + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "post_/rest/api/v1/tools/call", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "Request", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.PostRestAPIV1ToolsCallResponse{ + HTTPMeta: components.HTTPMetadata{ + Request: req, + Response: httpRes, + }, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out components.ToolsCallResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.ToolsCallResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode == 400: + fallthrough + case httpRes.StatusCode == 401: + fallthrough + case httpRes.StatusCode == 404: + fallthrough + case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} diff --git a/custommetadata.go b/custommetadata.go new file mode 100644 index 00000000..27e8d61b --- /dev/null +++ b/custommetadata.go @@ -0,0 +1,1382 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package apiclientgo + +import ( + "bytes" + "context" + "fmt" + "github.com/gleanwork/api-client-go/internal/config" + "github.com/gleanwork/api-client-go/internal/hooks" + "github.com/gleanwork/api-client-go/internal/utils" + "github.com/gleanwork/api-client-go/models/apierrors" + "github.com/gleanwork/api-client-go/models/components" + "github.com/gleanwork/api-client-go/models/operations" + "github.com/gleanwork/api-client-go/retry" + "net/http" +) + +type CustomMetadata struct { + rootSDK *Glean + sdkConfiguration config.SDKConfiguration + hooks *hooks.Hooks +} + +func newCustomMetadata(rootSDK *Glean, sdkConfig config.SDKConfiguration, hooks *hooks.Hooks) *CustomMetadata { + return &CustomMetadata{ + rootSDK: rootSDK, + sdkConfiguration: sdkConfig, + hooks: hooks, + } +} + +// Upsert - Add or update custom metadata +// Associates custom metadata with a specific document. Custom metadata enables you to enrich documents with additional structured information that can be used for search, filtering, and faceting. +func (s *CustomMetadata) Upsert(ctx context.Context, docID string, groupName string, customMetadataPutRequest components.CustomMetadataPutRequest, opts ...operations.Option) (*operations.PutRestAPIIndexDocumentDocIDCustomMetadataGroupNameResponse, error) { + request := operations.PutRestAPIIndexDocumentDocIDCustomMetadataGroupNameRequest{ + DocID: docID, + GroupName: groupName, + CustomMetadataPutRequest: customMetadataPutRequest, + } + + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + baseURL := utils.ReplaceParameters(operations.PutRestAPIIndexDocumentDocIDCustomMetadataGroupNameServerList[0], map[string]string{ + "instance": "instance-name", + }) + if o.ServerURL != nil { + baseURL = *o.ServerURL + } + + opURL, err := utils.GenerateURL(ctx, baseURL, "/rest/api/index/document/{docId}/custom-metadata/{groupName}", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "put_/rest/api/index/document/{docId}/custom-metadata/{groupName}", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "CustomMetadataPutRequest", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.PutRestAPIIndexDocumentDocIDCustomMetadataGroupNameResponse{ + HTTPMeta: components.HTTPMetadata{ + Request: req, + Response: httpRes, + }, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out components.SuccessResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.SuccessResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode == 400: + fallthrough + case httpRes.StatusCode == 401: + fallthrough + case httpRes.StatusCode == 404: + fallthrough + case httpRes.StatusCode == 429: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out apierrors.ErrorInfoResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + out.HTTPMeta = components.HTTPMetadata{ + Request: req, + Response: httpRes, + } + return nil, &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode == 500: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out apierrors.ErrorInfoResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + out.HTTPMeta = components.HTTPMetadata{ + Request: req, + Response: httpRes, + } + return nil, &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// Delete - Remove custom metadata +// Removes all custom metadata for the specified metadata group from a document. +func (s *CustomMetadata) Delete(ctx context.Context, docID string, groupName string, opts ...operations.Option) (*operations.DeleteRestAPIIndexDocumentDocIDCustomMetadataGroupNameResponse, error) { + request := operations.DeleteRestAPIIndexDocumentDocIDCustomMetadataGroupNameRequest{ + DocID: docID, + GroupName: groupName, + } + + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + baseURL := utils.ReplaceParameters(operations.DeleteRestAPIIndexDocumentDocIDCustomMetadataGroupNameServerList[0], map[string]string{ + "instance": "instance-name", + }) + if o.ServerURL != nil { + baseURL = *o.ServerURL + } + + opURL, err := utils.GenerateURL(ctx, baseURL, "/rest/api/index/document/{docId}/custom-metadata/{groupName}", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "delete_/rest/api/index/document/{docId}/custom-metadata/{groupName}", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.DeleteRestAPIIndexDocumentDocIDCustomMetadataGroupNameResponse{ + HTTPMeta: components.HTTPMetadata{ + Request: req, + Response: httpRes, + }, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out components.SuccessResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.SuccessResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode == 400: + fallthrough + case httpRes.StatusCode == 401: + fallthrough + case httpRes.StatusCode == 404: + fallthrough + case httpRes.StatusCode == 429: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out apierrors.ErrorInfoResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + out.HTTPMeta = components.HTTPMetadata{ + Request: req, + Response: httpRes, + } + return nil, &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode == 500: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out apierrors.ErrorInfoResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + out.HTTPMeta = components.HTTPMetadata{ + Request: req, + Response: httpRes, + } + return nil, &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// GetSchema - Retrieve metadata schema +// Retrieves the current schema definition for a metadata group. +func (s *CustomMetadata) GetSchema(ctx context.Context, groupName string, opts ...operations.Option) (*operations.GetRestAPIIndexCustomMetadataSchemaGroupNameResponse, error) { + request := operations.GetRestAPIIndexCustomMetadataSchemaGroupNameRequest{ + GroupName: groupName, + } + + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + baseURL := utils.ReplaceParameters(operations.GetRestAPIIndexCustomMetadataSchemaGroupNameServerList[0], map[string]string{ + "instance": "instance-name", + }) + if o.ServerURL != nil { + baseURL = *o.ServerURL + } + + opURL, err := utils.GenerateURL(ctx, baseURL, "/rest/api/index/custom-metadata/schema/{groupName}", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "get_/rest/api/index/custom-metadata/schema/{groupName}", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.GetRestAPIIndexCustomMetadataSchemaGroupNameResponse{ + HTTPMeta: components.HTTPMetadata{ + Request: req, + Response: httpRes, + }, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out components.CustomMetadataSchema + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.CustomMetadataSchema = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode == 401: + fallthrough + case httpRes.StatusCode == 404: + fallthrough + case httpRes.StatusCode == 429: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out apierrors.ErrorInfoResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + out.HTTPMeta = components.HTTPMetadata{ + Request: req, + Response: httpRes, + } + return nil, &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode == 500: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out apierrors.ErrorInfoResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + out.HTTPMeta = components.HTTPMetadata{ + Request: req, + Response: httpRes, + } + return nil, &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// UpsertSchema - Create or update metadata schema +// Defines or updates the schema for a metadata group. Schemas should be defined before indexing metadata. +func (s *CustomMetadata) UpsertSchema(ctx context.Context, groupName string, customMetadataSchema components.CustomMetadataSchema, opts ...operations.Option) (*operations.PutRestAPIIndexCustomMetadataSchemaGroupNameResponse, error) { + request := operations.PutRestAPIIndexCustomMetadataSchemaGroupNameRequest{ + GroupName: groupName, + CustomMetadataSchema: customMetadataSchema, + } + + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + baseURL := utils.ReplaceParameters(operations.PutRestAPIIndexCustomMetadataSchemaGroupNameServerList[0], map[string]string{ + "instance": "instance-name", + }) + if o.ServerURL != nil { + baseURL = *o.ServerURL + } + + opURL, err := utils.GenerateURL(ctx, baseURL, "/rest/api/index/custom-metadata/schema/{groupName}", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "put_/rest/api/index/custom-metadata/schema/{groupName}", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "CustomMetadataSchema", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.PutRestAPIIndexCustomMetadataSchemaGroupNameResponse{ + HTTPMeta: components.HTTPMetadata{ + Request: req, + Response: httpRes, + }, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out components.SuccessResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.SuccessResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode == 400: + fallthrough + case httpRes.StatusCode == 401: + fallthrough + case httpRes.StatusCode == 409: + fallthrough + case httpRes.StatusCode == 429: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out apierrors.ErrorInfoResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + out.HTTPMeta = components.HTTPMetadata{ + Request: req, + Response: httpRes, + } + return nil, &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode == 500: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out apierrors.ErrorInfoResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + out.HTTPMeta = components.HTTPMetadata{ + Request: req, + Response: httpRes, + } + return nil, &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// DeleteSchema - Remove metadata schema +// Deletes the schema definition for a metadata group. This does not delete existing metadata values on documents. +func (s *CustomMetadata) DeleteSchema(ctx context.Context, groupName string, opts ...operations.Option) (*operations.DeleteRestAPIIndexCustomMetadataSchemaGroupNameResponse, error) { + request := operations.DeleteRestAPIIndexCustomMetadataSchemaGroupNameRequest{ + GroupName: groupName, + } + + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + baseURL := utils.ReplaceParameters(operations.DeleteRestAPIIndexCustomMetadataSchemaGroupNameServerList[0], map[string]string{ + "instance": "instance-name", + }) + if o.ServerURL != nil { + baseURL = *o.ServerURL + } + + opURL, err := utils.GenerateURL(ctx, baseURL, "/rest/api/index/custom-metadata/schema/{groupName}", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "delete_/rest/api/index/custom-metadata/schema/{groupName}", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.DeleteRestAPIIndexCustomMetadataSchemaGroupNameResponse{ + HTTPMeta: components.HTTPMetadata{ + Request: req, + Response: httpRes, + }, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out components.SuccessResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.SuccessResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode == 400: + fallthrough + case httpRes.StatusCode == 401: + fallthrough + case httpRes.StatusCode == 404: + fallthrough + case httpRes.StatusCode == 429: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out apierrors.ErrorInfoResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + out.HTTPMeta = components.HTTPMetadata{ + Request: req, + Response: httpRes, + } + return nil, &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode == 500: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out apierrors.ErrorInfoResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + out.HTTPMeta = components.HTTPMetadata{ + Request: req, + Response: httpRes, + } + return nil, &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} diff --git a/datasources.go b/datasources.go index 8995ca8d..5ce0c63e 100644 --- a/datasources.go +++ b/datasources.go @@ -522,3 +522,494 @@ func (s *Datasources) UpdateDatasourceInstanceConfiguration(ctx context.Context, return res, nil } + +// GetDatasourceCredentialStatus - Get datasource instance credential status +// Returns the current credential status for a datasource instance. Access is limited to callers with the ADMIN scope; the handler enforces this check. +func (s *Datasources) GetDatasourceCredentialStatus(ctx context.Context, datasourceInstanceID string, opts ...operations.Option) (*operations.GetDatasourceCredentialStatusResponse, error) { + request := operations.GetDatasourceCredentialStatusRequest{ + DatasourceInstanceID: datasourceInstanceID, + } + + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := utils.GenerateURL(ctx, baseURL, "/rest/api/v1/datasource/{datasourceInstanceId}/credentialstatus", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "getDatasourceCredentialStatus", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.GetDatasourceCredentialStatusResponse{ + HTTPMeta: components.HTTPMetadata{ + Request: req, + Response: httpRes, + }, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out components.DatasourceCredentialStatusResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.DatasourceCredentialStatusResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode == 400: + fallthrough + case httpRes.StatusCode == 403: + fallthrough + case httpRes.StatusCode == 404: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out apierrors.ErrorResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + out.HTTPMeta = components.HTTPMetadata{ + Request: req, + Response: httpRes, + } + return nil, &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode == 401: + fallthrough + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// RotateDatasourceCredentials - Rotate datasource instance credentials +// Rotates the credentials that a datasource instance uses to connect to its upstream system. Replaces the active credential material with the supplied values and returns the credential status after rotation. Access is limited to callers with the ADMIN scope; the handler enforces this check. +// Only keys recognized as credential material for the datasource type may be set in `credentials.values` (e.g. `clientSecret`, `apiToken`, `privateKey`, depending on the configured auth method). Unrecognized keys, or keys that correspond to non-credential configuration, cause a 400; other instance configuration must be updated via PATCH /configure/datasources/{datasourceId}/instances/{instanceId}. +func (s *Datasources) RotateDatasourceCredentials(ctx context.Context, datasourceInstanceID string, rotateDatasourceCredentialsRequest components.RotateDatasourceCredentialsRequest, opts ...operations.Option) (*operations.RotateDatasourceCredentialsResponse, error) { + request := operations.RotateDatasourceCredentialsRequest{ + DatasourceInstanceID: datasourceInstanceID, + RotateDatasourceCredentialsRequest: rotateDatasourceCredentialsRequest, + } + + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := utils.GenerateURL(ctx, baseURL, "/rest/api/v1/datasource/{datasourceInstanceId}/credentials", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "rotateDatasourceCredentials", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "RotateDatasourceCredentialsRequest", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.RotateDatasourceCredentialsResponse{ + HTTPMeta: components.HTTPMetadata{ + Request: req, + Response: httpRes, + }, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out components.DatasourceCredentialStatusResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.DatasourceCredentialStatusResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode == 400: + fallthrough + case httpRes.StatusCode == 403: + fallthrough + case httpRes.StatusCode == 404: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out apierrors.ErrorResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + out.HTTPMeta = components.HTTPMetadata{ + Request: req, + Response: httpRes, + } + return nil, &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode == 401: + fallthrough + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} diff --git a/docs/models/apierrors/errorinforesponse.md b/docs/models/apierrors/errorinforesponse.md new file mode 100644 index 00000000..e0ab1069 --- /dev/null +++ b/docs/models/apierrors/errorinforesponse.md @@ -0,0 +1,12 @@ +# ErrorInfoResponse + +Error response for custom metadata operations + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `Error` | `string` | :heavy_check_mark: | Error message describing what went wrong | +| `Message` | `*string` | :heavy_minus_sign: | Additional details about the error | +| `HTTPMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/components/actionauthtype.md b/docs/models/components/actionauthtype.md new file mode 100644 index 00000000..6d081537 --- /dev/null +++ b/docs/models/components/actionauthtype.md @@ -0,0 +1,29 @@ +# ActionAuthType + +Authentication mechanism used by an action pack. + - `AUTH_USER_OAUTH`: Requires per-user OAuth consent to the third-party tool. + - `AUTH_ADMIN`: Uses a service-account / admin-owned credential. End users do not authorize individually. + - `AUTH_NONE`: Action pack requires no authentication. + + +## Example Usage + +```go +import ( + "github.com/gleanwork/api-client-go/models/components" +) + +value := components.ActionAuthTypeAuthUserOauth + +// Open enum: custom values can be created with a direct type cast +custom := components.ActionAuthType("custom_value") +``` + + +## Values + +| Name | Value | +| ----------------------------- | ----------------------------- | +| `ActionAuthTypeAuthUserOauth` | AUTH_USER_OAUTH | +| `ActionAuthTypeAuthAdmin` | AUTH_ADMIN | +| `ActionAuthTypeAuthNone` | AUTH_NONE | \ No newline at end of file diff --git a/docs/models/components/actionpackauthstatus.md b/docs/models/components/actionpackauthstatus.md new file mode 100644 index 00000000..e6043d36 --- /dev/null +++ b/docs/models/components/actionpackauthstatus.md @@ -0,0 +1,9 @@ +# ActionPackAuthStatus + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `Authenticated` | `bool` | :heavy_check_mark: | Whether the calling user is already authenticated to the tool backing the action pack. | +| `AuthType` | [components.ActionAuthType](../../models/components/actionauthtype.md) | :heavy_check_mark: | Authentication mechanism used by an action pack.
- `AUTH_USER_OAUTH`: Requires per-user OAuth consent to the third-party tool.
- `AUTH_ADMIN`: Uses a service-account / admin-owned credential. End users do not authorize individually.
- `AUTH_NONE`: Action pack requires no authentication.
| \ No newline at end of file diff --git a/docs/models/components/actionpackauthstatusresponse.md b/docs/models/components/actionpackauthstatusresponse.md new file mode 100644 index 00000000..0f8322bc --- /dev/null +++ b/docs/models/components/actionpackauthstatusresponse.md @@ -0,0 +1,8 @@ +# ActionPackAuthStatusResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `ActionPack` | [components.ActionPackAuthStatus](../../models/components/actionpackauthstatus.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/components/addcollectionitemserrorerrortype.md b/docs/models/components/addcollectionitemserrorerrortype.md index ce551d15..0247c8a1 100644 --- a/docs/models/components/addcollectionitemserrorerrortype.md +++ b/docs/models/components/addcollectionitemserrorerrortype.md @@ -8,6 +8,9 @@ import ( ) value := components.AddCollectionItemsErrorErrorTypeExistingItem + +// Open enum: custom values can be created with a direct type cast +custom := components.AddCollectionItemsErrorErrorType("custom_value") ``` @@ -15,4 +18,5 @@ value := components.AddCollectionItemsErrorErrorTypeExistingItem | Name | Value | | ---------------------------------------------- | ---------------------------------------------- | -| `AddCollectionItemsErrorErrorTypeExistingItem` | EXISTING_ITEM | \ No newline at end of file +| `AddCollectionItemsErrorErrorTypeExistingItem` | EXISTING_ITEM | +| `AddCollectionItemsErrorErrorTypeCorruptItem` | CORRUPT_ITEM | \ No newline at end of file diff --git a/docs/models/components/agentsinsightsv2request.md b/docs/models/components/agentsinsightsv2request.md index e64a7eca..d1aab1f0 100644 --- a/docs/models/components/agentsinsightsv2request.md +++ b/docs/models/components/agentsinsightsv2request.md @@ -7,4 +7,5 @@ | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | | `AgentIds` | []`string` | :heavy_minus_sign: | IDs of the Agents for which Insights should be returned. An empty array signifies all. | | `Departments` | []`string` | :heavy_minus_sign: | Departments for which Insights are requested. | +| `ManagerEmails` | []`string` | :heavy_minus_sign: | Manager emails whose teams should be filtered for. Empty array means no filtering. | | `DayRange` | [*components.Period](../../models/components/period.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/agentsinsightsv2response.md b/docs/models/components/agentsinsightsv2response.md index a11910e3..d21013d2 100644 --- a/docs/models/components/agentsinsightsv2response.md +++ b/docs/models/components/agentsinsightsv2response.md @@ -5,13 +5,14 @@ | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `MonthlyActiveUsers` | `*int64` | :heavy_minus_sign: | Number of current Monthly Active Users, in the specified departments. | -| `WeeklyActiveUsers` | `*int64` | :heavy_minus_sign: | Number of current Weekly Active Users, in the specified departments. | +| `MonthlyActiveUsers` | `*int64` | :heavy_minus_sign: | Number of current Monthly Active Users. | +| `WeeklyActiveUsers` | `*int64` | :heavy_minus_sign: | Number of current Weekly Active Users. | | `MonthlyActiveUserTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | | `WeeklyActiveUserTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | | `DailyActiveUserTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | | `SharedAgentsCount` | `*int64` | :heavy_minus_sign: | Total number of shared agents. | | `TopAgentsInsights` | [][components.PerAgentInsight](../../models/components/peragentinsight.md) | :heavy_minus_sign: | N/A | +| `TopUseCasesInsights` | [][components.AgentUseCaseInsight](../../models/components/agentusecaseinsight.md) | :heavy_minus_sign: | N/A | | `AgentsUsageByDepartmentInsights` | [][components.AgentsUsageByDepartmentInsight](../../models/components/agentsusagebydepartmentinsight.md) | :heavy_minus_sign: | N/A | | `AgentUsersInsights` | [][components.AgentUsersInsight](../../models/components/agentusersinsight.md) | :heavy_minus_sign: | N/A | | `AgentsTimeSavedInsights` | [][components.AgentsTimeSavedInsight](../../models/components/agentstimesavedinsight.md) | :heavy_minus_sign: | Insights for agents time saved over the specified time period. | diff --git a/docs/models/components/agentusecaseinsight.md b/docs/models/components/agentusecaseinsight.md new file mode 100644 index 00000000..a784346a --- /dev/null +++ b/docs/models/components/agentusecaseinsight.md @@ -0,0 +1,15 @@ +# AgentUseCaseInsight + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `UseCase` | `*string` | :heavy_minus_sign: | Use case name | | +| `RunCount` | `*int64` | :heavy_minus_sign: | Total number of runs for this use case over the specified time period. | | +| `Trend` | `*float32` | :heavy_minus_sign: | Percentage change in runs compared to the previous equivalent time period. | | +| `TopDepartments` | `*string` | :heavy_minus_sign: | Comma-separated list of the top departments using this use case. | | +| `TopAgentID` | `*string` | :heavy_minus_sign: | ID of the most-used agent for this use case. | | +| `TopAgentName` | `*string` | :heavy_minus_sign: | Name of the most-used agent for this use case. | | +| `TopAgentIcon` | [*components.IconConfig](../../models/components/iconconfig.md) | :heavy_minus_sign: | Defines how to render an icon | {
"color": "#343CED",
"key": "person_icon",
"iconType": "GLYPH",
"name": "user"
} | +| `TopAgentIsDeleted` | `*bool` | :heavy_minus_sign: | Indicates whether the top agent has been deleted. | | \ No newline at end of file diff --git a/docs/models/components/announcement.md b/docs/models/components/announcement.md index 0237da07..95f8a64a 100644 --- a/docs/models/components/announcement.md +++ b/docs/models/components/announcement.md @@ -21,6 +21,7 @@ | `ViewURL` | `*string` | :heavy_minus_sign: | URL for viewing the announcement. It will be set to document URL for announcements from other datasources e.g. simpplr. Can only be written when channel="SOCIAL_FEED". | | | `DraftID` | `*int64` | :heavy_minus_sign: | The opaque id of the associated draft. | | | `Permissions` | [*components.ObjectPermissions](../../models/components/objectpermissions.md) | :heavy_minus_sign: | N/A | | +| `TrackingToken` | `*string` | :heavy_minus_sign: | An opaque token that represents this particular UGC. To be used for `/feedback` reporting. | | | `ID` | `*int64` | :heavy_minus_sign: | The opaque id of the announcement. | | | `Author` | [*components.Person](../../models/components/person.md) | :heavy_minus_sign: | N/A | {
"name": "George Clooney",
"obfuscatedId": "abc123"
} | | `CreateTimestamp` | `*int64` | :heavy_minus_sign: | Server Unix timestamp of the creation time (in seconds since epoch UTC). | | diff --git a/docs/models/components/answer.md b/docs/models/components/answer.md index 5f715b4c..b517e765 100644 --- a/docs/models/components/answer.md +++ b/docs/models/components/answer.md @@ -18,6 +18,7 @@ | `SourceDocumentSpec` | [*components.DocumentSpecUnion](../../models/components/documentspecunion.md) | :heavy_minus_sign: | N/A | | | `SourceType` | [*components.AnswerSourceType](../../models/components/answersourcetype.md) | :heavy_minus_sign: | N/A | | | `Permissions` | [*components.ObjectPermissions](../../models/components/objectpermissions.md) | :heavy_minus_sign: | N/A | | +| `TrackingToken` | `*string` | :heavy_minus_sign: | An opaque token that represents this particular UGC. To be used for `/feedback` reporting. | | | `CombinedAnswerText` | [*components.StructuredText](../../models/components/structuredtext.md) | :heavy_minus_sign: | N/A | | | `Likes` | [*components.AnswerLikes](../../models/components/answerlikes.md) | :heavy_minus_sign: | N/A | | | `Author` | [*components.Person](../../models/components/person.md) | :heavy_minus_sign: | N/A | {
"name": "George Clooney",
"obfuscatedId": "abc123"
} | diff --git a/docs/models/components/answerresult.md b/docs/models/components/answerresult.md index dae9fb1c..72e58ed4 100644 --- a/docs/models/components/answerresult.md +++ b/docs/models/components/answerresult.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `Answer` | [components.Answer](../../models/components/answer.md) | :heavy_check_mark: | N/A | -| `TrackingToken` | `*string` | :heavy_minus_sign: | An opaque token that represents this particular Answer. To be used for `/feedback` reporting. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `Answer` | [components.Answer](../../models/components/answer.md) | :heavy_check_mark: | N/A | +| ~~`TrackingToken`~~ | `*string` | :heavy_minus_sign: | : warning: ** DEPRECATED **: Deprecated on 2026-05-07, removal scheduled for 2027-01-15: Use `answer.trackingToken` instead..

Use `answer.trackingToken` instead. | \ No newline at end of file diff --git a/docs/models/components/assistantinsightsresponse.md b/docs/models/components/assistantinsightsresponse.md index e5f12213..6672fa1a 100644 --- a/docs/models/components/assistantinsightsresponse.md +++ b/docs/models/components/assistantinsightsresponse.md @@ -5,8 +5,8 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -| `MonthlyActiveUsers` | `*int64` | :heavy_minus_sign: | Number of current Monthly Active Users, in the specified departments. | -| `WeeklyActiveUsers` | `*int64` | :heavy_minus_sign: | Number of current Weekly Active Users, in the specified departments. | +| `MonthlyActiveUsers` | `*int64` | :heavy_minus_sign: | Number of current Monthly Active Users. | +| `WeeklyActiveUsers` | `*int64` | :heavy_minus_sign: | Number of current Weekly Active Users. | | `LastUpdatedTs` | `*int64` | :heavy_minus_sign: | Unix timestamp of the last update for the insights data in the response. | | `MonthlyActiveUserTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | | `WeeklyActiveUserTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | diff --git a/docs/models/components/authorizeactionpackrequest.md b/docs/models/components/authorizeactionpackrequest.md new file mode 100644 index 00000000..e4ee1e6c --- /dev/null +++ b/docs/models/components/authorizeactionpackrequest.md @@ -0,0 +1,8 @@ +# AuthorizeActionPackRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `ReturnURL` | `string` | :heavy_check_mark: | URL on the customer's domain to redirect the end user's browser back to after the third-party OAuth
callback completes. Must be present in the tenant's return URL allowlist.
| \ No newline at end of file diff --git a/docs/models/components/authorizeactionpackresponse.md b/docs/models/components/authorizeactionpackresponse.md new file mode 100644 index 00000000..7f0f7a5d --- /dev/null +++ b/docs/models/components/authorizeactionpackresponse.md @@ -0,0 +1,8 @@ +# AuthorizeActionPackResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `RedirectURL` | `string` | :heavy_check_mark: | URL that the customer UI should navigate the end user to in order to begin the third-party OAuth flow.
After the user consents, control returns to `returnUrl` from the request.
| \ No newline at end of file diff --git a/docs/models/components/breakdowntype.md b/docs/models/components/breakdowntype.md new file mode 100644 index 00000000..31893b0f --- /dev/null +++ b/docs/models/components/breakdowntype.md @@ -0,0 +1,23 @@ +# BreakdownType + +Type of breakdown to return. + +## Example Usage + +```go +import ( + "github.com/gleanwork/api-client-go/models/components" +) + +value := components.BreakdownTypeUsers +``` + + +## Values + +| Name | Value | +| ------------------------------- | ------------------------------- | +| `BreakdownTypeUsers` | USERS | +| `BreakdownTypeHostApplications` | HOST_APPLICATIONS | +| `BreakdownTypeTools` | TOOLS | +| `BreakdownTypeServers` | SERVERS | \ No newline at end of file diff --git a/docs/models/components/chatsuggestion.md b/docs/models/components/chatsuggestion.md index bc4cc178..1a604a54 100644 --- a/docs/models/components/chatsuggestion.md +++ b/docs/models/components/chatsuggestion.md @@ -6,4 +6,6 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | | `Query` | `*string` | :heavy_minus_sign: | The actionable chat query to run when the user selects this suggestion. | -| `Feature` | `*string` | :heavy_minus_sign: | Targeted Glean Chat feature for the suggestion. | \ No newline at end of file +| `Cta` | `*string` | :heavy_minus_sign: | Button text to show for the suggestion action. | +| `Feature` | `*string` | :heavy_minus_sign: | Targeted Glean Chat feature for the suggestion. | +| `SourceDocumentIds` | []`string` | :heavy_minus_sign: | Document IDs that grounded the suggestion. | \ No newline at end of file diff --git a/docs/models/components/collection.md b/docs/models/components/collection.md index c6127133..444c48c0 100644 --- a/docs/models/components/collection.md +++ b/docs/models/components/collection.md @@ -16,6 +16,7 @@ | `Thumbnail` | [*components.Thumbnail](../../models/components/thumbnail.md) | :heavy_minus_sign: | N/A | | | `AllowedDatasource` | `*string` | :heavy_minus_sign: | The datasource type this Collection can hold. | | | `Permissions` | [*components.ObjectPermissions](../../models/components/objectpermissions.md) | :heavy_minus_sign: | N/A | | +| `TrackingToken` | `*string` | :heavy_minus_sign: | An opaque token that represents this particular UGC. To be used for `/feedback` reporting. | | | `ID` | `int64` | :heavy_check_mark: | The unique ID of the Collection. | | | `CreateTime` | [*time.Time](https://pkg.go.dev/time#Time) | :heavy_minus_sign: | N/A | | | `UpdateTime` | [*time.Time](https://pkg.go.dev/time#Time) | :heavy_minus_sign: | N/A | | diff --git a/docs/models/components/collectionerrorerrorcode.md b/docs/models/components/collectionerrorerrorcode.md index bf6763d7..b1f25210 100644 --- a/docs/models/components/collectionerrorerrorcode.md +++ b/docs/models/components/collectionerrorerrorcode.md @@ -24,4 +24,5 @@ custom := components.CollectionErrorErrorCode("custom_value") | `CollectionErrorErrorCodeConcurrentHierarchyEdit` | CONCURRENT_HIERARCHY_EDIT | | `CollectionErrorErrorCodeHeightViolation` | HEIGHT_VIOLATION | | `CollectionErrorErrorCodeWidthViolation` | WIDTH_VIOLATION | -| `CollectionErrorErrorCodeNoPermissions` | NO_PERMISSIONS | \ No newline at end of file +| `CollectionErrorErrorCodeNoPermissions` | NO_PERMISSIONS | +| `CollectionErrorErrorCodeCorruptItem` | CORRUPT_ITEM | \ No newline at end of file diff --git a/docs/models/components/currentactiveusers.md b/docs/models/components/currentactiveusers.md index 61ea0b47..8bec3ed7 100644 --- a/docs/models/components/currentactiveusers.md +++ b/docs/models/components/currentactiveusers.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `MonthlyActiveUsers` | `*int64` | :heavy_minus_sign: | Number of current Monthly Active Users, in the specified departments. | -| `WeeklyActiveUsers` | `*int64` | :heavy_minus_sign: | Number of current Weekly Active Users, in the specified departments. | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | --------------------------------------- | +| `MonthlyActiveUsers` | `*int64` | :heavy_minus_sign: | Number of current Monthly Active Users. | +| `WeeklyActiveUsers` | `*int64` | :heavy_minus_sign: | Number of current Weekly Active Users. | \ No newline at end of file diff --git a/docs/models/components/custommetadatapropertydefinition.md b/docs/models/components/custommetadatapropertydefinition.md new file mode 100644 index 00000000..791a5470 --- /dev/null +++ b/docs/models/components/custommetadatapropertydefinition.md @@ -0,0 +1,12 @@ +# CustomMetadataPropertyDefinition + +The definition for a key within a Custom Metadata schema. Only the fields applicable to Custom Metadata are exposed. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | +| `Name` | `string` | :heavy_check_mark: | The name of the metadata key. | +| `PropertyType` | [components.CustomMetadataPropertyDefinitionPropertyType](../../models/components/custommetadatapropertydefinitionpropertytype.md) | :heavy_check_mark: | The type of metadata key. This governs the search and faceting behavior. | +| `SkipIndexing` | `*bool` | :heavy_minus_sign: | If true then the property will not be indexed for retrieval and ranking. | \ No newline at end of file diff --git a/docs/models/components/custommetadatapropertydefinitionpropertytype.md b/docs/models/components/custommetadatapropertydefinitionpropertytype.md new file mode 100644 index 00000000..f6cd9193 --- /dev/null +++ b/docs/models/components/custommetadatapropertydefinitionpropertytype.md @@ -0,0 +1,26 @@ +# CustomMetadataPropertyDefinitionPropertyType + +The type of metadata key. This governs the search and faceting behavior. + +## Example Usage + +```go +import ( + "github.com/gleanwork/api-client-go/models/components" +) + +value := components.CustomMetadataPropertyDefinitionPropertyTypeText + +// Open enum: custom values can be created with a direct type cast +custom := components.CustomMetadataPropertyDefinitionPropertyType("custom_value") +``` + + +## Values + +| Name | Value | +| ----------------------------------------------------------- | ----------------------------------------------------------- | +| `CustomMetadataPropertyDefinitionPropertyTypeText` | TEXT | +| `CustomMetadataPropertyDefinitionPropertyTypePicklist` | PICKLIST | +| `CustomMetadataPropertyDefinitionPropertyTypeTextlist` | TEXTLIST | +| `CustomMetadataPropertyDefinitionPropertyTypeMultipicklist` | MULTIPICKLIST | \ No newline at end of file diff --git a/docs/models/components/custommetadataputrequest.md b/docs/models/components/custommetadataputrequest.md new file mode 100644 index 00000000..26b4c176 --- /dev/null +++ b/docs/models/components/custommetadataputrequest.md @@ -0,0 +1,10 @@ +# CustomMetadataPutRequest + +Request body for adding or updating custom metadata on a document + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `CustomMetadata` | [][components.CustomProperty](../../models/components/customproperty.md) | :heavy_check_mark: | Array of custom metadata key-value pairs | \ No newline at end of file diff --git a/docs/models/components/custommetadataschema.md b/docs/models/components/custommetadataschema.md new file mode 100644 index 00000000..15c6f4cd --- /dev/null +++ b/docs/models/components/custommetadataschema.md @@ -0,0 +1,10 @@ +# CustomMetadataSchema + +Schema for custom metadata containing metadata key definitions + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `MetadataKeys` | [][components.CustomMetadataPropertyDefinition](../../models/components/custommetadatapropertydefinition.md) | :heavy_check_mark: | Array of metadata key definitions | \ No newline at end of file diff --git a/docs/models/components/datasourcecredentialstatus.md b/docs/models/components/datasourcecredentialstatus.md new file mode 100644 index 00000000..32064eed --- /dev/null +++ b/docs/models/components/datasourcecredentialstatus.md @@ -0,0 +1,28 @@ +# DatasourceCredentialStatus + +Lifecycle state of the credentials installed for a datasource instance. Mirrors the internal admin Status enum so the handler can surface the same health signals already tracked today. EXPIRING_SOON is represented as VALID_WITH_WARNINGS (with detail in `message`); EXPIRED is surfaced as INVALID plus a non-null `expiresAt` in the past. + + +## Example Usage + +```go +import ( + "github.com/gleanwork/api-client-go/models/components" +) + +value := components.DatasourceCredentialStatusValid + +// Open enum: custom values can be created with a direct type cast +custom := components.DatasourceCredentialStatus("custom_value") +``` + + +## Values + +| Name | Value | +| --------------------------------------------- | --------------------------------------------- | +| `DatasourceCredentialStatusValid` | VALID | +| `DatasourceCredentialStatusValidWithWarnings` | VALID_WITH_WARNINGS | +| `DatasourceCredentialStatusValidating` | VALIDATING | +| `DatasourceCredentialStatusInvalid` | INVALID | +| `DatasourceCredentialStatusMissing` | MISSING | \ No newline at end of file diff --git a/docs/models/components/datasourcecredentialstatusresponse.md b/docs/models/components/datasourcecredentialstatusresponse.md new file mode 100644 index 00000000..f170c73c --- /dev/null +++ b/docs/models/components/datasourcecredentialstatusresponse.md @@ -0,0 +1,13 @@ +# DatasourceCredentialStatusResponse + +Status of the credentials currently installed for a datasource instance. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Status` | [components.DatasourceCredentialStatus](../../models/components/datasourcecredentialstatus.md) | :heavy_check_mark: | Lifecycle state of the credentials installed for a datasource instance. Mirrors the internal admin Status enum so the handler can surface the same health signals already tracked today. EXPIRING_SOON is represented as VALID_WITH_WARNINGS (with detail in `message`); EXPIRED is surfaced as INVALID plus a non-null `expiresAt` in the past.
| +| `LastRotatedAt` | [*time.Time](https://pkg.go.dev/time#Time) | :heavy_minus_sign: | When the credentials were last rotated. Omitted when not known. | +| `ExpiresAt` | [*time.Time](https://pkg.go.dev/time#Time) | :heavy_minus_sign: | When the active credentials expire. Omitted when not known or not applicable to this credential type.
| +| `Message` | `*string` | :heavy_minus_sign: | Optional human-readable detail about the current credential status. | \ No newline at end of file diff --git a/docs/models/components/debugdocumentlifecyclerequest.md b/docs/models/components/debugdocumentlifecyclerequest.md new file mode 100644 index 00000000..f6a399f6 --- /dev/null +++ b/docs/models/components/debugdocumentlifecyclerequest.md @@ -0,0 +1,13 @@ +# DebugDocumentLifecycleRequest + +Describes the request body of the /debug/{datasource}/document/events API call. + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `ObjectType` | `string` | :heavy_check_mark: | Object type of the document to get lifecycle events for. | Article | +| `DocID` | `string` | :heavy_check_mark: | Glean Document ID within the datasource to get lifecycle events for. | art123 | +| `StartDate` | `*string` | :heavy_minus_sign: | The start date for events to be fetched. Cannot be more than 30 days (default 7 days) in the past. | 2025-05-01 | +| `MaxEvents` | `*int64` | :heavy_minus_sign: | Max number of events to be fetched. Cannot be more than 100 (default 20). | 50 | \ No newline at end of file diff --git a/docs/models/components/debugdocumentlifecycleresponse.md b/docs/models/components/debugdocumentlifecycleresponse.md new file mode 100644 index 00000000..b069f6b2 --- /dev/null +++ b/docs/models/components/debugdocumentlifecycleresponse.md @@ -0,0 +1,10 @@ +# DebugDocumentLifecycleResponse + +Describes the response body of the /debug/{datasource}/document/events API call + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `LifeCycleEvents` | [][components.LifeCycleEvent](../../models/components/lifecycleevent.md) | :heavy_minus_sign: | List of lifecycle events corresponding to the document | \ No newline at end of file diff --git a/docs/models/components/editcollectionresponse.md b/docs/models/components/editcollectionresponse.md index 44c0b569..a22d4e43 100644 --- a/docs/models/components/editcollectionresponse.md +++ b/docs/models/components/editcollectionresponse.md @@ -16,6 +16,7 @@ | `Thumbnail` | [*components.Thumbnail](../../models/components/thumbnail.md) | :heavy_minus_sign: | N/A | | | `AllowedDatasource` | `*string` | :heavy_minus_sign: | The datasource type this Collection can hold. | | | `Permissions` | [*components.ObjectPermissions](../../models/components/objectpermissions.md) | :heavy_minus_sign: | N/A | | +| `TrackingToken` | `*string` | :heavy_minus_sign: | An opaque token that represents this particular UGC. To be used for `/feedback` reporting. | | | `ID` | `int64` | :heavy_check_mark: | The unique ID of the Collection. | | | `CreateTime` | [*time.Time](https://pkg.go.dev/time#Time) | :heavy_minus_sign: | N/A | | | `UpdateTime` | [*time.Time](https://pkg.go.dev/time#Time) | :heavy_minus_sign: | N/A | | diff --git a/docs/models/components/editcollectionresponseerrorcode.md b/docs/models/components/editcollectionresponseerrorcode.md index fb85a2c1..e30f0433 100644 --- a/docs/models/components/editcollectionresponseerrorcode.md +++ b/docs/models/components/editcollectionresponseerrorcode.md @@ -24,4 +24,5 @@ custom := components.EditCollectionResponseErrorCode("custom_value") | `EditCollectionResponseErrorCodeConcurrentHierarchyEdit` | CONCURRENT_HIERARCHY_EDIT | | `EditCollectionResponseErrorCodeHeightViolation` | HEIGHT_VIOLATION | | `EditCollectionResponseErrorCodeWidthViolation` | WIDTH_VIOLATION | -| `EditCollectionResponseErrorCodeNoPermissions` | NO_PERMISSIONS | \ No newline at end of file +| `EditCollectionResponseErrorCodeNoPermissions` | NO_PERMISSIONS | +| `EditCollectionResponseErrorCodeCorruptItem` | CORRUPT_ITEM | \ No newline at end of file diff --git a/docs/models/components/editworkflowrequest.md b/docs/models/components/editworkflowrequest.md new file mode 100644 index 00000000..20014a64 --- /dev/null +++ b/docs/models/components/editworkflowrequest.md @@ -0,0 +1,9 @@ +# EditWorkflowRequest + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | +| `Name` | `*string` | :heavy_minus_sign: | The name of the workflow. | +| `ID` | `*string` | :heavy_minus_sign: | The workflow ID we want to update. | \ No newline at end of file diff --git a/docs/models/components/event.md b/docs/models/components/event.md deleted file mode 100644 index 97434fa6..00000000 --- a/docs/models/components/event.md +++ /dev/null @@ -1,51 +0,0 @@ -# Event - -The action the user took within a Glean client with respect to the object referred to by the given `trackingToken`. - -## Example Usage - -```go -import ( - "github.com/gleanwork/api-client-go/models/components" -) - -value := components.EventClick -``` - - -## Values - -| Name | Value | -| ------------------------------- | ------------------------------- | -| `EventClick` | CLICK | -| `EventContainerClick` | CONTAINER_CLICK | -| `EventCopyLink` | COPY_LINK | -| `EventCreate` | CREATE | -| `EventDismiss` | DISMISS | -| `EventDownvote` | DOWNVOTE | -| `EventEmail` | EMAIL | -| `EventExecute` | EXECUTE | -| `EventFilter` | FILTER | -| `EventFirstToken` | FIRST_TOKEN | -| `EventFocusIn` | FOCUS_IN | -| `EventLastToken` | LAST_TOKEN | -| `EventManualFeedback` | MANUAL_FEEDBACK | -| `EventManualFeedbackSideBySide` | MANUAL_FEEDBACK_SIDE_BY_SIDE | -| `EventFeedbackTimeSaved` | FEEDBACK_TIME_SAVED | -| `EventMarkAsRead` | MARK_AS_READ | -| `EventMessage` | MESSAGE | -| `EventMiddleClick` | MIDDLE_CLICK | -| `EventPageBlur` | PAGE_BLUR | -| `EventPageFocus` | PAGE_FOCUS | -| `EventPageLeave` | PAGE_LEAVE | -| `EventPreview` | PREVIEW | -| `EventRelatedClick` | RELATED_CLICK | -| `EventRightClick` | RIGHT_CLICK | -| `EventSectionClick` | SECTION_CLICK | -| `EventSeen` | SEEN | -| `EventSelect` | SELECT | -| `EventShare` | SHARE | -| `EventShowMore` | SHOW_MORE | -| `EventUpvote` | UPVOTE | -| `EventView` | VIEW | -| `EventVisible` | VISIBLE | \ No newline at end of file diff --git a/docs/models/components/feedback.md b/docs/models/components/feedback.md index b1fda3ec..a6c05095 100644 --- a/docs/models/components/feedback.md +++ b/docs/models/components/feedback.md @@ -8,7 +8,7 @@ | `ID` | `*string` | :heavy_minus_sign: | Universally unique identifier of the event. To allow for reliable retransmission, only the earliest received event of a given UUID is considered valid by the server and subsequent are ignored. | | `Category` | [*components.FeedbackCategory](../../models/components/feedbackcategory.md) | :heavy_minus_sign: | The feature category to which the feedback applies. These should be broad product areas such as Announcements, Answers, Search, etc. rather than specific components or UI treatments within those areas. | | `TrackingTokens` | []`string` | :heavy_check_mark: | A list of server-generated trackingTokens to which this event applies. | -| `Event` | [components.Event](../../models/components/event.md) | :heavy_check_mark: | The action the user took within a Glean client with respect to the object referred to by the given `trackingToken`. | +| `Event` | [components.FeedbackEvent](../../models/components/feedbackevent.md) | :heavy_check_mark: | The action the user took within a Glean client with respect to the object referred to by the given `trackingToken`. | | `Position` | `*int64` | :heavy_minus_sign: | Position of the element in the case that the client controls order (such as feed and autocomplete). | | `Payload` | `*string` | :heavy_minus_sign: | For type MANUAL_FEEDBACK, contains string of user feedback. For autocomplete, partial query string. For feed, string of user feedback in addition to manual feedback signals extracted from all suggested content. | | `SessionInfo` | [*components.SessionInfo](../../models/components/sessioninfo.md) | :heavy_minus_sign: | N/A | diff --git a/docs/models/components/feedbackcategory.md b/docs/models/components/feedbackcategory.md index 57fb2754..db09f6e5 100644 --- a/docs/models/components/feedbackcategory.md +++ b/docs/models/components/feedbackcategory.md @@ -18,6 +18,8 @@ value := components.FeedbackCategoryAnnouncement | Name | Value | | ------------------------------ | ------------------------------ | | `FeedbackCategoryAnnouncement` | ANNOUNCEMENT | +| `FeedbackCategoryAnswers` | ANSWERS | +| `FeedbackCategoryArtifacts` | ARTIFACTS | | `FeedbackCategoryAutocomplete` | AUTOCOMPLETE | | `FeedbackCategoryCollections` | COLLECTIONS | | `FeedbackCategoryFeed` | FEED | diff --git a/docs/models/components/feedbackevent.md b/docs/models/components/feedbackevent.md new file mode 100644 index 00000000..d22a6ef3 --- /dev/null +++ b/docs/models/components/feedbackevent.md @@ -0,0 +1,51 @@ +# FeedbackEvent + +The action the user took within a Glean client with respect to the object referred to by the given `trackingToken`. + +## Example Usage + +```go +import ( + "github.com/gleanwork/api-client-go/models/components" +) + +value := components.FeedbackEventClick +``` + + +## Values + +| Name | Value | +| --------------------------------------- | --------------------------------------- | +| `FeedbackEventClick` | CLICK | +| `FeedbackEventContainerClick` | CONTAINER_CLICK | +| `FeedbackEventCopyLink` | COPY_LINK | +| `FeedbackEventCreate` | CREATE | +| `FeedbackEventDismiss` | DISMISS | +| `FeedbackEventDownvote` | DOWNVOTE | +| `FeedbackEventEmail` | EMAIL | +| `FeedbackEventExecute` | EXECUTE | +| `FeedbackEventFilter` | FILTER | +| `FeedbackEventFirstToken` | FIRST_TOKEN | +| `FeedbackEventFocusIn` | FOCUS_IN | +| `FeedbackEventLastToken` | LAST_TOKEN | +| `FeedbackEventManualFeedback` | MANUAL_FEEDBACK | +| `FeedbackEventManualFeedbackSideBySide` | MANUAL_FEEDBACK_SIDE_BY_SIDE | +| `FeedbackEventFeedbackTimeSaved` | FEEDBACK_TIME_SAVED | +| `FeedbackEventMarkAsRead` | MARK_AS_READ | +| `FeedbackEventMessage` | MESSAGE | +| `FeedbackEventMiddleClick` | MIDDLE_CLICK | +| `FeedbackEventPageBlur` | PAGE_BLUR | +| `FeedbackEventPageFocus` | PAGE_FOCUS | +| `FeedbackEventPageLeave` | PAGE_LEAVE | +| `FeedbackEventPreview` | PREVIEW | +| `FeedbackEventRelatedClick` | RELATED_CLICK | +| `FeedbackEventRightClick` | RIGHT_CLICK | +| `FeedbackEventSectionClick` | SECTION_CLICK | +| `FeedbackEventSeen` | SEEN | +| `FeedbackEventSelect` | SELECT | +| `FeedbackEventShare` | SHARE | +| `FeedbackEventShowMore` | SHOW_MORE | +| `FeedbackEventUpvote` | UPVOTE | +| `FeedbackEventView` | VIEW | +| `FeedbackEventVisible` | VISIBLE | \ No newline at end of file diff --git a/docs/models/components/feedrequestcategory.md b/docs/models/components/feedrequestcategory.md index d9097f79..6983b14a 100644 --- a/docs/models/components/feedrequestcategory.md +++ b/docs/models/components/feedrequestcategory.md @@ -46,8 +46,13 @@ value := components.FeedRequestCategoryDocumentSuggestion | `FeedRequestCategoryStarterKit` | STARTER_KIT | | `FeedRequestCategoryMidDayCatchUp` | MID_DAY_CATCH_UP | | `FeedRequestCategoryQuerySuggestion` | QUERY_SUGGESTION | +| `FeedRequestCategoryCoworkCujPromo` | COWORK_CUJ_PROMO | | `FeedRequestCategoryWeeklyMeetings` | WEEKLY_MEETINGS | | `FeedRequestCategoryFollowUp` | FOLLOW_UP | | `FeedRequestCategoryMilestoneTimelineCheck` | MILESTONE_TIMELINE_CHECK | | `FeedRequestCategoryProjectDiscussionDigest` | PROJECT_DISCUSSION_DIGEST | -| `FeedRequestCategoryProjectNextStep` | PROJECT_NEXT_STEP | \ No newline at end of file +| `FeedRequestCategoryProjectFocusBlock` | PROJECT_FOCUS_BLOCK | +| `FeedRequestCategoryProjectNextStep` | PROJECT_NEXT_STEP | +| `FeedRequestCategoryDemoCard` | DEMO_CARD | +| `FeedRequestCategoryOooPlanner` | OOO_PLANNER | +| `FeedRequestCategoryOooCatchUp` | OOO_CATCH_UP | \ No newline at end of file diff --git a/docs/models/components/feedresultcategory.md b/docs/models/components/feedresultcategory.md index f5399635..d5f5dcef 100644 --- a/docs/models/components/feedresultcategory.md +++ b/docs/models/components/feedresultcategory.md @@ -51,8 +51,13 @@ custom := components.FeedResultCategory("custom_value") | `FeedResultCategoryStarterKit` | STARTER_KIT | | `FeedResultCategoryMidDayCatchUp` | MID_DAY_CATCH_UP | | `FeedResultCategoryQuerySuggestion` | QUERY_SUGGESTION | +| `FeedResultCategoryCoworkCujPromo` | COWORK_CUJ_PROMO | | `FeedResultCategoryWeeklyMeetings` | WEEKLY_MEETINGS | | `FeedResultCategoryFollowUp` | FOLLOW_UP | | `FeedResultCategoryMilestoneTimelineCheck` | MILESTONE_TIMELINE_CHECK | | `FeedResultCategoryProjectDiscussionDigest` | PROJECT_DISCUSSION_DIGEST | -| `FeedResultCategoryProjectNextStep` | PROJECT_NEXT_STEP | \ No newline at end of file +| `FeedResultCategoryProjectFocusBlock` | PROJECT_FOCUS_BLOCK | +| `FeedResultCategoryProjectNextStep` | PROJECT_NEXT_STEP | +| `FeedResultCategoryDemoCard` | DEMO_CARD | +| `FeedResultCategoryOooPlanner` | OOO_PLANNER | +| `FeedResultCategoryOooCatchUp` | OOO_CATCH_UP | \ No newline at end of file diff --git a/docs/models/components/getcollectionresponse.md b/docs/models/components/getcollectionresponse.md index 4d487649..7059ec0b 100644 --- a/docs/models/components/getcollectionresponse.md +++ b/docs/models/components/getcollectionresponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -| `Collection` | [*components.Collection](../../models/components/collection.md) | :heavy_minus_sign: | N/A | -| `RootCollection` | [*components.Collection](../../models/components/collection.md) | :heavy_minus_sign: | N/A | -| `TrackingToken` | `*string` | :heavy_minus_sign: | An opaque token that represents this particular Collection. To be used for `/feedback` reporting. | -| `Error` | [*components.CollectionError](../../models/components/collectionerror.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Collection` | [*components.Collection](../../models/components/collection.md) | :heavy_minus_sign: | N/A | +| `RootCollection` | [*components.Collection](../../models/components/collection.md) | :heavy_minus_sign: | N/A | +| `Error` | [*components.CollectionError](../../models/components/collectionerror.md) | :heavy_minus_sign: | N/A | +| ~~`TrackingToken`~~ | `*string` | :heavy_minus_sign: | : warning: ** DEPRECATED **: Deprecated on 2026-05-07, removal scheduled for 2027-01-15: Use `collection.trackingToken` instead..

Use `collection.trackingToken` instead. | \ No newline at end of file diff --git a/docs/models/components/insightsassistantrequest.md b/docs/models/components/insightsassistantrequest.md index 688b4dfa..f56cc4cf 100644 --- a/docs/models/components/insightsassistantrequest.md +++ b/docs/models/components/insightsassistantrequest.md @@ -3,7 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `Departments` | []`string` | :heavy_minus_sign: | Departments for which Insights are requested. | -| `DayRange` | [*components.Period](../../models/components/period.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `Departments` | []`string` | :heavy_minus_sign: | Departments for which Insights are requested. | +| `ManagerEmails` | []`string` | :heavy_minus_sign: | Manager emails whose teams should be filtered for. Empty array means no filtering. | +| `DayRange` | [*components.Period](../../models/components/period.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/insightschatsummary.md b/docs/models/components/insightschatsummary.md index 56a34c8c..b0780998 100644 --- a/docs/models/components/insightschatsummary.md +++ b/docs/models/components/insightschatsummary.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `MonthlyActiveUsers` | `*int64` | :heavy_minus_sign: | Number of current Monthly Active Users, in the specified departments. | -| `WeeklyActiveUsers` | `*int64` | :heavy_minus_sign: | Number of current Weekly Active Users, in the specified departments. | +| `MonthlyActiveUsers` | `*int64` | :heavy_minus_sign: | Number of current Monthly Active Users. | +| `WeeklyActiveUsers` | `*int64` | :heavy_minus_sign: | Number of current Weekly Active Users. | | `NumChats` | `*int64` | :heavy_minus_sign: | Total number of chats by users over the specified time period. | | `NumChatUsers` | `*int64` | :heavy_minus_sign: | Total number of distinct users who used Chat over the specified time period. | \ No newline at end of file diff --git a/docs/models/components/insightsoverviewrequest.md b/docs/models/components/insightsoverviewrequest.md index 1c56c012..a659575f 100644 --- a/docs/models/components/insightsoverviewrequest.md +++ b/docs/models/components/insightsoverviewrequest.md @@ -3,7 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `Departments` | []`string` | :heavy_minus_sign: | Departments for which Insights are requested. | -| `DayRange` | [*components.Period](../../models/components/period.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `Departments` | []`string` | :heavy_minus_sign: | Departments for which Insights are requested. | +| `ManagerEmails` | []`string` | :heavy_minus_sign: | Manager emails whose teams should be filtered for. Empty array means no filtering. | +| `DayRange` | [*components.Period](../../models/components/period.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/insightsoverviewresponse.md b/docs/models/components/insightsoverviewresponse.md index bb4cbf28..1e039c84 100644 --- a/docs/models/components/insightsoverviewresponse.md +++ b/docs/models/components/insightsoverviewresponse.md @@ -3,37 +3,42 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `MonthlyActiveUsers` | `*int64` | :heavy_minus_sign: | Number of current Monthly Active Users, in the specified departments. | -| `WeeklyActiveUsers` | `*int64` | :heavy_minus_sign: | Number of current Weekly Active Users, in the specified departments. | -| `Departments` | []`string` | :heavy_minus_sign: | Department name(s). | -| `EmployeeCount` | `*int64` | :heavy_minus_sign: | Number of current employees in the specified departments, according to the Org Chart. | -| `TotalSignups` | `*int64` | :heavy_minus_sign: | Number of current signed up employees in the specified departments, according to the Org Chart. | -| `SearchSummary` | [*components.InsightsSearchSummary](../../models/components/insightssearchsummary.md) | :heavy_minus_sign: | N/A | -| `ChatSummary` | [*components.InsightsChatSummary](../../models/components/insightschatsummary.md) | :heavy_minus_sign: | N/A | -| `SearchActiveUsers` | [*components.CurrentActiveUsers](../../models/components/currentactiveusers.md) | :heavy_minus_sign: | N/A | -| `AssistantActiveUsers` | [*components.CurrentActiveUsers](../../models/components/currentactiveusers.md) | :heavy_minus_sign: | N/A | -| `AgentsActiveUsers` | [*components.CurrentActiveUsers](../../models/components/currentactiveusers.md) | :heavy_minus_sign: | N/A | -| `ExtensionSummary` | [*components.CurrentActiveUsers](../../models/components/currentactiveusers.md) | :heavy_minus_sign: | N/A | -| `UgcSummary` | [*components.CurrentActiveUsers](../../models/components/currentactiveusers.md) | :heavy_minus_sign: | N/A | -| `LastUpdatedTs` | `*int64` | :heavy_minus_sign: | Unix timestamp of the last update for the insights data in the response. | -| `SearchSessionSatisfaction` | `*float32` | :heavy_minus_sign: | Search session satisfaction rate, over the specified time period in the specified departments. | -| `MonthlyActiveUserTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | -| `WeeklyActiveUserTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | -| `DailyActiveUserTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | -| `SearchMonthlyActiveUserTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | -| `SearchWeeklyActiveUserTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | -| `SearchDailyActiveUserTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | -| `AssistantMonthlyActiveUserTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | -| `AssistantWeeklyActiveUserTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | -| `AssistantDailyActiveUserTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | -| `AgentsMonthlyActiveUserTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | -| `AgentsWeeklyActiveUserTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | -| `AgentsDailyActiveUserTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | -| `SearchesTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | -| `AssistantInteractionsTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | -| `AgentRunsTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | -| `SearchDatasourceCounts` | map[string]`int64` | :heavy_minus_sign: | Counts of search result clicks, by datasource, over the specified time period in the specified departments. | -| `ChatDatasourceCounts` | map[string]`int64` | :heavy_minus_sign: | Counts of cited documents in chat, by datasource, over the specified time period in the specified departments. | -| `PerUserInsights` | [][components.PerUserInsight](../../models/components/peruserinsight.md) | :heavy_minus_sign: | Per-user insights, over the specified time period in the specified departments. All current users in the organization who have signed into Glean at least once are included. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `MonthlyActiveUsers` | `*int64` | :heavy_minus_sign: | Number of current Monthly Active Users. | +| `WeeklyActiveUsers` | `*int64` | :heavy_minus_sign: | Number of current Weekly Active Users. | +| `Departments` | []`string` | :heavy_minus_sign: | Department name(s). | +| `EmployeeCount` | `*int64` | :heavy_minus_sign: | Number of current employees in the specified departments, according to the Org Chart. | +| `TotalSignups` | `*int64` | :heavy_minus_sign: | Number of current signed up employees in the specified departments, according to the Org Chart. | +| `SearchSummary` | [*components.InsightsSearchSummary](../../models/components/insightssearchsummary.md) | :heavy_minus_sign: | N/A | +| `ChatSummary` | [*components.InsightsChatSummary](../../models/components/insightschatsummary.md) | :heavy_minus_sign: | N/A | +| `SearchActiveUsers` | [*components.CurrentActiveUsers](../../models/components/currentactiveusers.md) | :heavy_minus_sign: | N/A | +| `AssistantActiveUsers` | [*components.CurrentActiveUsers](../../models/components/currentactiveusers.md) | :heavy_minus_sign: | N/A | +| `AgentsActiveUsers` | [*components.CurrentActiveUsers](../../models/components/currentactiveusers.md) | :heavy_minus_sign: | N/A | +| `McpActiveUsers` | [*components.CurrentActiveUsers](../../models/components/currentactiveusers.md) | :heavy_minus_sign: | N/A | +| `ExtensionSummary` | [*components.CurrentActiveUsers](../../models/components/currentactiveusers.md) | :heavy_minus_sign: | N/A | +| `UgcSummary` | [*components.CurrentActiveUsers](../../models/components/currentactiveusers.md) | :heavy_minus_sign: | N/A | +| `LastUpdatedTs` | `*int64` | :heavy_minus_sign: | Unix timestamp of the last update for the insights data in the response. | +| ~~`SearchSessionSatisfaction`~~ | `*float32` | :heavy_minus_sign: | : warning: ** DEPRECATED **: Deprecated on 2026-05-13, removal scheduled for 2027-01-15: This property is no longer supported. Please contact Support for alternatives..

Search session satisfaction rate, over the specified time period in the specified departments. | +| `MonthlyActiveUserTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | +| `WeeklyActiveUserTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | +| `DailyActiveUserTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | +| `SearchMonthlyActiveUserTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | +| `SearchWeeklyActiveUserTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | +| `SearchDailyActiveUserTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | +| `AssistantMonthlyActiveUserTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | +| `AssistantWeeklyActiveUserTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | +| `AssistantDailyActiveUserTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | +| `AgentsMonthlyActiveUserTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | +| `AgentsWeeklyActiveUserTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | +| `AgentsDailyActiveUserTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | +| `McpMonthlyActiveUserTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | +| `McpWeeklyActiveUserTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | +| `McpDailyActiveUserTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | +| `SearchesTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | +| `AssistantInteractionsTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | +| `AgentRunsTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | +| `McpCallsTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | +| `SearchDatasourceCounts` | map[string]`int64` | :heavy_minus_sign: | Counts of search result clicks, by datasource, over the specified time period in the specified departments. | +| `ChatDatasourceCounts` | map[string]`int64` | :heavy_minus_sign: | Counts of cited documents in chat, by datasource, over the specified time period in the specified departments. | +| `PerUserInsights` | [][components.PerUserInsight](../../models/components/peruserinsight.md) | :heavy_minus_sign: | Per-user insights, over the specified time period in the specified departments. All current users in the organization who have signed into Glean at least once are included. | \ No newline at end of file diff --git a/docs/models/components/insightsrequest.md b/docs/models/components/insightsrequest.md index 40af7932..d3f06cc2 100644 --- a/docs/models/components/insightsrequest.md +++ b/docs/models/components/insightsrequest.md @@ -3,9 +3,11 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | -| `OverviewRequest` | [*components.InsightsOverviewRequest](../../models/components/insightsoverviewrequest.md) | :heavy_minus_sign: | N/A | -| `AssistantRequest` | [*components.InsightsAssistantRequest](../../models/components/insightsassistantrequest.md) | :heavy_minus_sign: | N/A | -| `AgentsRequest` | [*components.AgentsInsightsV2Request](../../models/components/agentsinsightsv2request.md) | :heavy_minus_sign: | N/A | -| `DisablePerUserInsights` | `*bool` | :heavy_minus_sign: | If true, suppresses the generation of per-user Insights in the response. Default is false. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `OverviewRequest` | [*components.InsightsOverviewRequest](../../models/components/insightsoverviewrequest.md) | :heavy_minus_sign: | N/A | +| `AssistantRequest` | [*components.InsightsAssistantRequest](../../models/components/insightsassistantrequest.md) | :heavy_minus_sign: | N/A | +| `AgentsRequest` | [*components.AgentsInsightsV2Request](../../models/components/agentsinsightsv2request.md) | :heavy_minus_sign: | N/A | +| `McpRequest` | [*components.McpInsightsRequest](../../models/components/mcpinsightsrequest.md) | :heavy_minus_sign: | N/A | +| `McpBreakdownRequest` | [*components.McpBreakdownInsightsRequest](../../models/components/mcpbreakdowninsightsrequest.md) | :heavy_minus_sign: | N/A | +| `DisablePerUserInsights` | `*bool` | :heavy_minus_sign: | If true, suppresses the generation of per-user Insights in the response. Default is false. | \ No newline at end of file diff --git a/docs/models/components/insightsresponse.md b/docs/models/components/insightsresponse.md index 3a6e4723..6bdb350e 100644 --- a/docs/models/components/insightsresponse.md +++ b/docs/models/components/insightsresponse.md @@ -3,9 +3,11 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -| `GleanAssist` | [*components.GleanAssistInsightsResponse](../../models/components/gleanassistinsightsresponse.md) | :heavy_minus_sign: | N/A | -| `OverviewResponse` | [*components.InsightsOverviewResponse](../../models/components/insightsoverviewresponse.md) | :heavy_minus_sign: | N/A | -| `AssistantResponse` | [*components.AssistantInsightsResponse](../../models/components/assistantinsightsresponse.md) | :heavy_minus_sign: | N/A | -| `AgentsResponse` | [*components.AgentsInsightsV2Response](../../models/components/agentsinsightsv2response.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| `GleanAssist` | [*components.GleanAssistInsightsResponse](../../models/components/gleanassistinsightsresponse.md) | :heavy_minus_sign: | N/A | +| `OverviewResponse` | [*components.InsightsOverviewResponse](../../models/components/insightsoverviewresponse.md) | :heavy_minus_sign: | N/A | +| `AssistantResponse` | [*components.AssistantInsightsResponse](../../models/components/assistantinsightsresponse.md) | :heavy_minus_sign: | N/A | +| `AgentsResponse` | [*components.AgentsInsightsV2Response](../../models/components/agentsinsightsv2response.md) | :heavy_minus_sign: | N/A | +| `McpResponse` | [*components.McpInsightsResponse](../../models/components/mcpinsightsresponse.md) | :heavy_minus_sign: | N/A | +| `McpBreakdownResponse` | [*components.McpBreakdownInsightsResponse](../../models/components/mcpbreakdowninsightsresponse.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/insightssearchsummary.md b/docs/models/components/insightssearchsummary.md index 6d03d3bb..b933e732 100644 --- a/docs/models/components/insightssearchsummary.md +++ b/docs/models/components/insightssearchsummary.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `MonthlyActiveUsers` | `*int64` | :heavy_minus_sign: | Number of current Monthly Active Users, in the specified departments. | -| `WeeklyActiveUsers` | `*int64` | :heavy_minus_sign: | Number of current Weekly Active Users, in the specified departments. | +| `MonthlyActiveUsers` | `*int64` | :heavy_minus_sign: | Number of current Monthly Active Users. | +| `WeeklyActiveUsers` | `*int64` | :heavy_minus_sign: | Number of current Weekly Active Users. | | `NumSearches` | `*int64` | :heavy_minus_sign: | Total number of searches by users over the specified time period. | | `NumSearchUsers` | `*int64` | :heavy_minus_sign: | Total number of distinct users who searched over the specified time period. | \ No newline at end of file diff --git a/docs/models/components/justificationtype.md b/docs/models/components/justificationtype.md index d36f2dd8..75855017 100644 --- a/docs/models/components/justificationtype.md +++ b/docs/models/components/justificationtype.md @@ -64,8 +64,13 @@ custom := components.JustificationType("custom_value") | `JustificationTypeActiveDiscussion` | ACTIVE_DISCUSSION | | `JustificationTypeMidDayCatchUp` | MID_DAY_CATCH_UP | | `JustificationTypeQuerySuggestion` | QUERY_SUGGESTION | +| `JustificationTypeCoworkCujPromo` | COWORK_CUJ_PROMO | | `JustificationTypeWeeklyMeetings` | WEEKLY_MEETINGS | | `JustificationTypeFollowUp` | FOLLOW_UP | | `JustificationTypeMilestoneTimelineCheck` | MILESTONE_TIMELINE_CHECK | | `JustificationTypeProjectDiscussionDigest` | PROJECT_DISCUSSION_DIGEST | -| `JustificationTypeProjectNextStep` | PROJECT_NEXT_STEP | \ No newline at end of file +| `JustificationTypeProjectFocusBlock` | PROJECT_FOCUS_BLOCK | +| `JustificationTypeProjectNextStep` | PROJECT_NEXT_STEP | +| `JustificationTypeDemoCard` | DEMO_CARD | +| `JustificationTypeOooPlanner` | OOO_PLANNER | +| `JustificationTypeOooCatchUp` | OOO_CATCH_UP | \ No newline at end of file diff --git a/docs/models/components/lifecycleevent.md b/docs/models/components/lifecycleevent.md new file mode 100644 index 00000000..27d0da8a --- /dev/null +++ b/docs/models/components/lifecycleevent.md @@ -0,0 +1,9 @@ +# LifeCycleEvent + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `Event` | [*components.LifeCycleEventEvent](../../models/components/lifecycleeventevent.md) | :heavy_minus_sign: | Type of event | INDEXED | +| `Timestamp` | `*string` | :heavy_minus_sign: | Timestamp of the event | 2021-08-06T17:58:01.000Z | \ No newline at end of file diff --git a/docs/models/components/lifecycleeventevent.md b/docs/models/components/lifecycleeventevent.md new file mode 100644 index 00000000..2cc08ebc --- /dev/null +++ b/docs/models/components/lifecycleeventevent.md @@ -0,0 +1,26 @@ +# LifeCycleEventEvent + +Type of event + +## Example Usage + +```go +import ( + "github.com/gleanwork/api-client-go/models/components" +) + +value := components.LifeCycleEventEventUploaded + +// Open enum: custom values can be created with a direct type cast +custom := components.LifeCycleEventEvent("custom_value") +``` + + +## Values + +| Name | Value | +| -------------------------------------- | -------------------------------------- | +| `LifeCycleEventEventUploaded` | UPLOADED | +| `LifeCycleEventEventIndexed` | INDEXED | +| `LifeCycleEventEventDeletionRequested` | DELETION_REQUESTED | +| `LifeCycleEventEventDeleted` | DELETED | \ No newline at end of file diff --git a/docs/models/components/mcpbreakdowninsightsrequest.md b/docs/models/components/mcpbreakdowninsightsrequest.md new file mode 100644 index 00000000..fdabe0b5 --- /dev/null +++ b/docs/models/components/mcpbreakdowninsightsrequest.md @@ -0,0 +1,15 @@ +# McpBreakdownInsightsRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `Departments` | []`string` | :heavy_minus_sign: | Departments for which Insights are requested. | +| `ManagerIds` | []`string` | :heavy_minus_sign: | Manager user IDs whose teams should be filtered for. Empty array means no filtering. | +| `ManagerEmails` | []`string` | :heavy_minus_sign: | Manager emails whose teams should be filtered for. Empty array means no filtering. | +| `DayRange` | [*components.Period](../../models/components/period.md) | :heavy_minus_sign: | N/A | +| `BreakdownType` | [*components.BreakdownType](../../models/components/breakdowntype.md) | :heavy_minus_sign: | Type of breakdown to return. | +| `HostApplications` | []`string` | :heavy_minus_sign: | Host applications to filter by. Empty array means all host applications. | +| `Tools` | []`string` | :heavy_minus_sign: | MCP tools to filter by. Empty array means all tools. | +| `Servers` | []`string` | :heavy_minus_sign: | MCP servers to filter by. Empty array means all servers. | \ No newline at end of file diff --git a/docs/models/components/mcpbreakdowninsightsresponse.md b/docs/models/components/mcpbreakdowninsightsresponse.md new file mode 100644 index 00000000..e358ff49 --- /dev/null +++ b/docs/models/components/mcpbreakdowninsightsresponse.md @@ -0,0 +1,11 @@ +# McpBreakdownInsightsResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `UsersBreakdown` | [][components.McpUserBreakdown](../../models/components/mcpuserbreakdown.md) | :heavy_minus_sign: | N/A | +| `HostApplicationsBreakdown` | [][components.McpHostApplicationBreakdown](../../models/components/mcphostapplicationbreakdown.md) | :heavy_minus_sign: | N/A | +| `ToolsBreakdown` | [][components.McpToolBreakdown](../../models/components/mcptoolbreakdown.md) | :heavy_minus_sign: | N/A | +| `ServersBreakdown` | [][components.McpServerBreakdown](../../models/components/mcpserverbreakdown.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/mcphostapplicationbreakdown.md b/docs/models/components/mcphostapplicationbreakdown.md new file mode 100644 index 00000000..8c5d2859 --- /dev/null +++ b/docs/models/components/mcphostapplicationbreakdown.md @@ -0,0 +1,10 @@ +# McpHostApplicationBreakdown + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `HostApplication` | `*string` | :heavy_minus_sign: | Host application name. | +| `TotalCalls` | `*int64` | :heavy_minus_sign: | Total number of MCP calls made from this host application in the specified time period. | +| `ActiveUsers` | `*int64` | :heavy_minus_sign: | Total number of active users from this host application in the specified time period. | \ No newline at end of file diff --git a/docs/models/components/mcpinsightsrequest.md b/docs/models/components/mcpinsightsrequest.md new file mode 100644 index 00000000..6dce6b6b --- /dev/null +++ b/docs/models/components/mcpinsightsrequest.md @@ -0,0 +1,11 @@ +# McpInsightsRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `Departments` | []`string` | :heavy_minus_sign: | Departments for which Insights are requested. | +| `ManagerIds` | []`string` | :heavy_minus_sign: | Manager user IDs whose teams should be filtered for. Empty array means no filtering. | +| `ManagerEmails` | []`string` | :heavy_minus_sign: | Manager emails whose teams should be filtered for. Empty array means no filtering. | +| `DayRange` | [*components.Period](../../models/components/period.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/mcpinsightsresponse.md b/docs/models/components/mcpinsightsresponse.md new file mode 100644 index 00000000..4afb6a8f --- /dev/null +++ b/docs/models/components/mcpinsightsresponse.md @@ -0,0 +1,15 @@ +# McpInsightsResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | +| `MonthlyActiveUsers` | `*int64` | :heavy_minus_sign: | Number of current Monthly Active Users. | +| `WeeklyActiveUsers` | `*int64` | :heavy_minus_sign: | Number of current Weekly Active Users. | +| `DailyActiveUsers` | `*int64` | :heavy_minus_sign: | Number of current Daily Active Users. | +| `MonthlyActiveUserTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | +| `WeeklyActiveUserTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | +| `DailyActiveUserTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | +| `OverallDailyActiveUserTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | +| `TopHostApplicationsActiveUserTimeseries` | [][components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/mcpserverbreakdown.md b/docs/models/components/mcpserverbreakdown.md new file mode 100644 index 00000000..9677d944 --- /dev/null +++ b/docs/models/components/mcpserverbreakdown.md @@ -0,0 +1,11 @@ +# McpServerBreakdown + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `Server` | `*string` | :heavy_minus_sign: | MCP server name. | +| `TotalCalls` | `*int64` | :heavy_minus_sign: | Total number of MCP calls for this server in the specified time period. | +| `ActiveUsers` | `*int64` | :heavy_minus_sign: | Total number of active users for this server in the specified time period. | +| `HostApplications` | []`string` | :heavy_minus_sign: | Host applications using this server in the specified time period. | \ No newline at end of file diff --git a/docs/models/components/mcptoolbreakdown.md b/docs/models/components/mcptoolbreakdown.md new file mode 100644 index 00000000..300244d4 --- /dev/null +++ b/docs/models/components/mcptoolbreakdown.md @@ -0,0 +1,11 @@ +# McpToolBreakdown + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `Tool` | `*string` | :heavy_minus_sign: | MCP tool name. | +| `TotalCalls` | `*int64` | :heavy_minus_sign: | Total number of MCP calls for this tool in the specified time period. | +| `ActiveUsers` | `*int64` | :heavy_minus_sign: | Total number of active users for this tool in the specified time period. | +| `HostApplications` | []`string` | :heavy_minus_sign: | Host applications using this tool in the specified time period. | \ No newline at end of file diff --git a/docs/models/components/mcpuserbreakdown.md b/docs/models/components/mcpuserbreakdown.md new file mode 100644 index 00000000..69098742 --- /dev/null +++ b/docs/models/components/mcpuserbreakdown.md @@ -0,0 +1,12 @@ +# McpUserBreakdown + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | +| `Person` | [*components.Person](../../models/components/person.md) | :heavy_minus_sign: | N/A | {
"name": "George Clooney",
"obfuscatedId": "abc123"
} | +| `TotalCalls` | `*int64` | :heavy_minus_sign: | Total number of MCP calls made by this user in the specified time period. | | +| `HostApplications` | []`string` | :heavy_minus_sign: | Host applications used by this user in the specified time period. | | +| `Tools` | []`string` | :heavy_minus_sign: | MCP tools used by this user in the specified time period. | | +| `Servers` | []`string` | :heavy_minus_sign: | MCP servers used by this user in the specified time period. | | \ No newline at end of file diff --git a/docs/models/components/peragentinsight.md b/docs/models/components/peragentinsight.md index e2c0065e..354520f3 100644 --- a/docs/models/components/peragentinsight.md +++ b/docs/models/components/peragentinsight.md @@ -12,4 +12,5 @@ | `UserCount` | `*int64` | :heavy_minus_sign: | Total number of users for this agent over the specified time period. | | | `RunCount` | `*int64` | :heavy_minus_sign: | Total number of runs for this agent over the specified time period. | | | `UpvoteCount` | `*int64` | :heavy_minus_sign: | Total number of upvotes for this agent over the specified time period. | | -| `DownvoteCount` | `*int64` | :heavy_minus_sign: | Total number of downvotes for this agent over the specified time period. | | \ No newline at end of file +| `DownvoteCount` | `*int64` | :heavy_minus_sign: | Total number of downvotes for this agent over the specified time period. | | +| `Owner` | [*components.Person](../../models/components/person.md) | :heavy_minus_sign: | N/A | {
"name": "George Clooney",
"obfuscatedId": "abc123"
} | \ No newline at end of file diff --git a/docs/models/components/peruserinsight.md b/docs/models/components/peruserinsight.md index de71852e..2ce264de 100644 --- a/docs/models/components/peruserinsight.md +++ b/docs/models/components/peruserinsight.md @@ -13,4 +13,5 @@ | `NumDaysActive` | `*int64` | :heavy_minus_sign: | Total number of days this user was an Active User over the specified time period. | | | `NumSummarizations` | `*int64` | :heavy_minus_sign: | Total number of summarized items by this user over the specified time period. | | | `NumAiAnswers` | `*int64` | :heavy_minus_sign: | Total number of AI Answers interacted with by this user over the specified time period. | | -| `NumAgentRuns` | `*int64` | :heavy_minus_sign: | Total number of agent runs for this user over the specified time period. | | \ No newline at end of file +| `NumAgentRuns` | `*int64` | :heavy_minus_sign: | Total number of agent runs for this user over the specified time period. | | +| `NumMcpCalls` | `*int64` | :heavy_minus_sign: | Total number of MCP calls for this user over the specified time period. | | \ No newline at end of file diff --git a/docs/models/components/propertydefinition.md b/docs/models/components/propertydefinition.md index be8b6c18..171a802c 100644 --- a/docs/models/components/propertydefinition.md +++ b/docs/models/components/propertydefinition.md @@ -8,7 +8,7 @@ | `Name` | `*string` | :heavy_minus_sign: | The name of the property in the `DocumentMetadata` (e.g. 'createTime', 'updateTime', 'author', 'container'). In the future, this will support custom properties too. | | `DisplayLabel` | `*string` | :heavy_minus_sign: | The user friendly label for the property. | | `DisplayLabelPlural` | `*string` | :heavy_minus_sign: | The user friendly label for the property that will be used if a plural context. | -| `PropertyType` | [*components.PropertyType](../../models/components/propertytype.md) | :heavy_minus_sign: | The type of custom property - this governs the search and faceting behavior. Note that MULTIPICKLIST is not yet supported. | +| `PropertyType` | [*components.PropertyDefinitionPropertyType](../../models/components/propertydefinitionpropertytype.md) | :heavy_minus_sign: | The type of custom property - this governs the search and faceting behavior. Note that MULTIPICKLIST is not yet supported. | | `UIOptions` | [*components.UIOptions](../../models/components/uioptions.md) | :heavy_minus_sign: | N/A | | `HideUIFacet` | `*bool` | :heavy_minus_sign: | If true then the property will not show up as a facet in the UI. | | `UIFacetOrder` | `*int64` | :heavy_minus_sign: | Will be used to set the order of facets in the UI, if present. If set for one facet, must be set for all non-hidden UI facets. Must take on an integer value from 1 (shown at the top) to N (shown last), where N is the number of non-hidden UI facets. These facets will be ordered below the built-in "Type" and "Tag" operators. | diff --git a/docs/models/components/propertydefinitionpropertytype.md b/docs/models/components/propertydefinitionpropertytype.md new file mode 100644 index 00000000..68016aa8 --- /dev/null +++ b/docs/models/components/propertydefinitionpropertytype.md @@ -0,0 +1,29 @@ +# PropertyDefinitionPropertyType + +The type of custom property - this governs the search and faceting behavior. Note that MULTIPICKLIST is not yet supported. + +## Example Usage + +```go +import ( + "github.com/gleanwork/api-client-go/models/components" +) + +value := components.PropertyDefinitionPropertyTypeText + +// Open enum: custom values can be created with a direct type cast +custom := components.PropertyDefinitionPropertyType("custom_value") +``` + + +## Values + +| Name | Value | +| --------------------------------------------- | --------------------------------------------- | +| `PropertyDefinitionPropertyTypeText` | TEXT | +| `PropertyDefinitionPropertyTypeDate` | DATE | +| `PropertyDefinitionPropertyTypeInt` | INT | +| `PropertyDefinitionPropertyTypeUserid` | USERID | +| `PropertyDefinitionPropertyTypePicklist` | PICKLIST | +| `PropertyDefinitionPropertyTypeTextlist` | TEXTLIST | +| `PropertyDefinitionPropertyTypeMultipicklist` | MULTIPICKLIST | \ No newline at end of file diff --git a/docs/models/components/propertytype.md b/docs/models/components/propertytype.md deleted file mode 100644 index e18f41f2..00000000 --- a/docs/models/components/propertytype.md +++ /dev/null @@ -1,29 +0,0 @@ -# PropertyType - -The type of custom property - this governs the search and faceting behavior. Note that MULTIPICKLIST is not yet supported. - -## Example Usage - -```go -import ( - "github.com/gleanwork/api-client-go/models/components" -) - -value := components.PropertyTypeText - -// Open enum: custom values can be created with a direct type cast -custom := components.PropertyType("custom_value") -``` - - -## Values - -| Name | Value | -| --------------------------- | --------------------------- | -| `PropertyTypeText` | TEXT | -| `PropertyTypeDate` | DATE | -| `PropertyTypeInt` | INT | -| `PropertyTypeUserid` | USERID | -| `PropertyTypePicklist` | PICKLIST | -| `PropertyTypeTextlist` | TEXTLIST | -| `PropertyTypeMultipicklist` | MULTIPICKLIST | \ No newline at end of file diff --git a/docs/models/components/rotatedatasourcecredentialsrequest.md b/docs/models/components/rotatedatasourcecredentialsrequest.md new file mode 100644 index 00000000..1ad91df1 --- /dev/null +++ b/docs/models/components/rotatedatasourcecredentialsrequest.md @@ -0,0 +1,12 @@ +# RotateDatasourceCredentialsRequest + +Request to rotate the credentials used by a datasource instance. Replaces the active credential material with the supplied values. +`credentials.values` must contain only keys recognized as credential material for the datasource type (for example `clientSecret` for OAuth, `apiToken` for API-token auth, `privateKey` for certificate auth). Unrecognized keys, or keys that correspond to non-credential configuration, cause a 400; use the configure endpoint to change non-credential config. + + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `Credentials` | [components.DatasourceInstanceConfiguration](../../models/components/datasourceinstanceconfiguration.md) | :heavy_check_mark: | Configuration for a datasource instance | \ No newline at end of file diff --git a/docs/models/components/successresponse.md b/docs/models/components/successresponse.md new file mode 100644 index 00000000..ed7a255f --- /dev/null +++ b/docs/models/components/successresponse.md @@ -0,0 +1,10 @@ +# SuccessResponse + +Success response for custom metadata operations + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | +| `Success` | `*bool` | :heavy_minus_sign: | Indicates if the operation was successful | \ No newline at end of file diff --git a/docs/models/components/ugctype.md b/docs/models/components/ugctype.md index ab33bae4..be5ae7ff 100644 --- a/docs/models/components/ugctype.md +++ b/docs/models/components/ugctype.md @@ -35,4 +35,6 @@ custom := components.UgcType("custom_value") | `UgcTypeShortcutsType` | SHORTCUTS_TYPE | | `UgcTypeSlideType` | SLIDE_TYPE | | `UgcTypeSpreadsheetType` | SPREADSHEET_TYPE | +| `UgcTypeInlineHTMLType` | INLINE_HTML_TYPE | +| `UgcTypePodcastType` | PODCAST_TYPE | | `UgcTypeWorkflowsType` | WORKFLOWS_TYPE | \ No newline at end of file diff --git a/docs/models/components/workflow.md b/docs/models/components/workflow.md index 4987bf11..c6b0e34b 100644 --- a/docs/models/components/workflow.md +++ b/docs/models/components/workflow.md @@ -3,13 +3,17 @@ ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | -| `Name` | `*string` | :heavy_minus_sign: | The name of the workflow. | | -| `Author` | [*components.Person](../../models/components/person.md) | :heavy_minus_sign: | N/A | {
"name": "George Clooney",
"obfuscatedId": "abc123"
} | -| `CreateTimestamp` | `*int64` | :heavy_minus_sign: | Server Unix timestamp of the creation time. | | -| `LastUpdateTimestamp` | `*int64` | :heavy_minus_sign: | Server Unix timestamp of the last update time. | | -| `LastDraftSavedAt` | `*int64` | :heavy_minus_sign: | Server Unix timestamp of the last time the draft was saved. | | -| `LastUpdatedBy` | [*components.Person](../../models/components/person.md) | :heavy_minus_sign: | N/A | {
"name": "George Clooney",
"obfuscatedId": "abc123"
} | -| `Permissions` | [*components.ObjectPermissions](../../models/components/objectpermissions.md) | :heavy_minus_sign: | N/A | | -| `ID` | `*string` | :heavy_minus_sign: | The ID of the workflow. | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | +| `Name` | `*string` | :heavy_minus_sign: | The name of the workflow. | | +| `Author` | [*components.Person](../../models/components/person.md) | :heavy_minus_sign: | N/A | {
"name": "George Clooney",
"obfuscatedId": "abc123"
} | +| `CreateTimestamp` | `*int64` | :heavy_minus_sign: | Server Unix timestamp of the creation time. | | +| `LastUpdateTimestamp` | `*int64` | :heavy_minus_sign: | Server Unix timestamp of the last update time. | | +| `LastDraftSavedAt` | `*int64` | :heavy_minus_sign: | Server Unix timestamp of the last time the draft was saved. | | +| `LastDraftSavedBy` | [*components.Person](../../models/components/person.md) | :heavy_minus_sign: | N/A | {
"name": "George Clooney",
"obfuscatedId": "abc123"
} | +| `LastDraftGitAuthorID` | `*string` | :heavy_minus_sign: | ID of the VCS user (e.g. GitHub username) who last saved the draft. Set only by the draft save path via the external Git integration API. | | +| `LastUpdatedBy` | [*components.Person](../../models/components/person.md) | :heavy_minus_sign: | N/A | {
"name": "George Clooney",
"obfuscatedId": "abc123"
} | +| `Permissions` | [*components.ObjectPermissions](../../models/components/objectpermissions.md) | :heavy_minus_sign: | N/A | | +| `ID` | `*string` | :heavy_minus_sign: | The ID of the workflow. | | +| `Verified` | `*bool` | :heavy_minus_sign: | When present, indicates this workflow is admin-verified. Set via the dedicated admin settings endpoint, not by regular edits. | | +| `ShowOrganizationAsAuthor` | `*bool` | :heavy_minus_sign: | When true, displays organization name instead of author name in agent card. Set via the dedicated admin settings endpoint, not by regular edits. | | \ No newline at end of file diff --git a/docs/models/operations/authorizeactionpackrequest.md b/docs/models/operations/authorizeactionpackrequest.md new file mode 100644 index 00000000..793a8bb4 --- /dev/null +++ b/docs/models/operations/authorizeactionpackrequest.md @@ -0,0 +1,9 @@ +# AuthorizeActionPackRequest + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `ActionPackID` | `string` | :heavy_check_mark: | ID of the action pack to query or authorize. | +| `AuthorizeActionPackRequest` | [components.AuthorizeActionPackRequest](../../models/components/authorizeactionpackrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/authorizeactionpackresponse.md b/docs/models/operations/authorizeactionpackresponse.md new file mode 100644 index 00000000..8909797b --- /dev/null +++ b/docs/models/operations/authorizeactionpackresponse.md @@ -0,0 +1,9 @@ +# AuthorizeActionPackResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `HTTPMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `AuthorizeActionPackResponse` | [*components.AuthorizeActionPackResponse](../../models/components/authorizeactionpackresponse.md) | :heavy_minus_sign: | Successful operation | \ No newline at end of file diff --git a/docs/models/operations/deleterestapiindexcustommetadataschemagroupnamerequest.md b/docs/models/operations/deleterestapiindexcustommetadataschemagroupnamerequest.md new file mode 100644 index 00000000..b9f2943a --- /dev/null +++ b/docs/models/operations/deleterestapiindexcustommetadataschemagroupnamerequest.md @@ -0,0 +1,8 @@ +# DeleteRestAPIIndexCustomMetadataSchemaGroupNameRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- | +| `GroupName` | `string` | :heavy_check_mark: | Name of the metadata group schema | \ No newline at end of file diff --git a/docs/models/operations/deleterestapiindexcustommetadataschemagroupnameresponse.md b/docs/models/operations/deleterestapiindexcustommetadataschemagroupnameresponse.md new file mode 100644 index 00000000..aca67bb0 --- /dev/null +++ b/docs/models/operations/deleterestapiindexcustommetadataschemagroupnameresponse.md @@ -0,0 +1,9 @@ +# DeleteRestAPIIndexCustomMetadataSchemaGroupNameResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | +| `HTTPMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `SuccessResponse` | [*components.SuccessResponse](../../models/components/successresponse.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/models/operations/deleterestapiindexdocumentdocidcustommetadatagroupnamerequest.md b/docs/models/operations/deleterestapiindexdocumentdocidcustommetadatagroupnamerequest.md new file mode 100644 index 00000000..4d55f6a8 --- /dev/null +++ b/docs/models/operations/deleterestapiindexdocumentdocidcustommetadatagroupnamerequest.md @@ -0,0 +1,9 @@ +# DeleteRestAPIIndexDocumentDocIDCustomMetadataGroupNameRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | +| `DocID` | `string` | :heavy_check_mark: | Unique Glean identifier of the document | +| `GroupName` | `string` | :heavy_check_mark: | Name of the metadata group as specified while adding schema | \ No newline at end of file diff --git a/docs/models/operations/deleterestapiindexdocumentdocidcustommetadatagroupnameresponse.md b/docs/models/operations/deleterestapiindexdocumentdocidcustommetadatagroupnameresponse.md new file mode 100644 index 00000000..104f0d91 --- /dev/null +++ b/docs/models/operations/deleterestapiindexdocumentdocidcustommetadatagroupnameresponse.md @@ -0,0 +1,9 @@ +# DeleteRestAPIIndexDocumentDocIDCustomMetadataGroupNameResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | +| `HTTPMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `SuccessResponse` | [*components.SuccessResponse](../../models/components/successresponse.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/models/operations/editagentrequest.md b/docs/models/operations/editagentrequest.md new file mode 100644 index 00000000..5d80e1c0 --- /dev/null +++ b/docs/models/operations/editagentrequest.md @@ -0,0 +1,11 @@ +# EditAgentRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Locale` | `*string` | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `TimezoneOffset` | `*int64` | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `AgentID` | `string` | :heavy_check_mark: | The ID of the agent. | +| `EditWorkflowRequest` | [components.EditWorkflowRequest](../../models/components/editworkflowrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/editagentresponse.md b/docs/models/operations/editagentresponse.md new file mode 100644 index 00000000..6cbfcbab --- /dev/null +++ b/docs/models/operations/editagentresponse.md @@ -0,0 +1,8 @@ +# EditAgentResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `HTTPMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getactionpackauthstatusrequest.md b/docs/models/operations/getactionpackauthstatusrequest.md new file mode 100644 index 00000000..9cd8ba0c --- /dev/null +++ b/docs/models/operations/getactionpackauthstatusrequest.md @@ -0,0 +1,8 @@ +# GetActionPackAuthStatusRequest + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | +| `ActionPackID` | `string` | :heavy_check_mark: | ID of the action pack to query or authorize. | \ No newline at end of file diff --git a/docs/models/operations/getactionpackauthstatusresponse.md b/docs/models/operations/getactionpackauthstatusresponse.md new file mode 100644 index 00000000..a28a749f --- /dev/null +++ b/docs/models/operations/getactionpackauthstatusresponse.md @@ -0,0 +1,9 @@ +# GetActionPackAuthStatusResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| `HTTPMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `ActionPackAuthStatusResponse` | [*components.ActionPackAuthStatusResponse](../../models/components/actionpackauthstatusresponse.md) | :heavy_minus_sign: | Successful operation | \ No newline at end of file diff --git a/docs/models/operations/getchatfilerequest.md b/docs/models/operations/getchatfilerequest.md new file mode 100644 index 00000000..043ed1cd --- /dev/null +++ b/docs/models/operations/getchatfilerequest.md @@ -0,0 +1,9 @@ +# GetChatFileRequest + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | +| `FileID` | `string` | :heavy_check_mark: | Identifier of the chat file to download. | +| `Preview` | `*bool` | :heavy_minus_sign: | When true and the file is a PDF, the response is served inline (Content-Disposition: inline) instead of as an attachment.
| \ No newline at end of file diff --git a/docs/models/operations/getchatfileresponse.md b/docs/models/operations/getchatfileresponse.md new file mode 100644 index 00000000..b44240b4 --- /dev/null +++ b/docs/models/operations/getchatfileresponse.md @@ -0,0 +1,9 @@ +# GetChatFileResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `HTTPMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `ResponseStream` | `io.ReadCloser` | :heavy_minus_sign: | File content. | \ No newline at end of file diff --git a/docs/models/operations/getdatasourcecredentialstatusrequest.md b/docs/models/operations/getdatasourcecredentialstatusrequest.md new file mode 100644 index 00000000..ece87dbd --- /dev/null +++ b/docs/models/operations/getdatasourcecredentialstatusrequest.md @@ -0,0 +1,8 @@ +# GetDatasourceCredentialStatusRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `DatasourceInstanceID` | `string` | :heavy_check_mark: | The full datasource instance identifier (e.g. o365sharepoint_abc123) | o365sharepoint_abc123 | \ No newline at end of file diff --git a/docs/models/operations/getdatasourcecredentialstatusresponse.md b/docs/models/operations/getdatasourcecredentialstatusresponse.md new file mode 100644 index 00000000..8701f911 --- /dev/null +++ b/docs/models/operations/getdatasourcecredentialstatusresponse.md @@ -0,0 +1,9 @@ +# GetDatasourceCredentialStatusResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | +| `HTTPMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `DatasourceCredentialStatusResponse` | [*components.DatasourceCredentialStatusResponse](../../models/components/datasourcecredentialstatusresponse.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/models/operations/getpersonphotorequest.md b/docs/models/operations/getpersonphotorequest.md new file mode 100644 index 00000000..5bcaccb8 --- /dev/null +++ b/docs/models/operations/getpersonphotorequest.md @@ -0,0 +1,9 @@ +# GetPersonPhotoRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `PersonID` | `string` | :heavy_check_mark: | The obfuscated ID of the person whose photo to retrieve. | +| `Ds` | `*string` | :heavy_minus_sign: | Optional datasource override for crawled photos (e.g. AZURE, GDRIVE, OKTA). When omitted, the datasource is derived from the person's stored photo URL or the deployment's primary person datasource.
| \ No newline at end of file diff --git a/docs/models/operations/getpersonphotoresponse.md b/docs/models/operations/getpersonphotoresponse.md new file mode 100644 index 00000000..82cb5abe --- /dev/null +++ b/docs/models/operations/getpersonphotoresponse.md @@ -0,0 +1,11 @@ +# GetPersonPhotoResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `HTTPMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `TwoHundredImagePngResponseStream` | `io.ReadCloser` | :heavy_minus_sign: | Photo bytes returned successfully. | +| `TwoHundredImageJpegResponseStream` | `io.ReadCloser` | :heavy_minus_sign: | Photo bytes returned successfully. | +| `Headers` | map[string][]`string` | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getrestapiindexcustommetadataschemagroupnamerequest.md b/docs/models/operations/getrestapiindexcustommetadataschemagroupnamerequest.md new file mode 100644 index 00000000..256538c4 --- /dev/null +++ b/docs/models/operations/getrestapiindexcustommetadataschemagroupnamerequest.md @@ -0,0 +1,8 @@ +# GetRestAPIIndexCustomMetadataSchemaGroupNameRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- | +| `GroupName` | `string` | :heavy_check_mark: | Name of the metadata group schema | \ No newline at end of file diff --git a/docs/models/operations/getrestapiindexcustommetadataschemagroupnameresponse.md b/docs/models/operations/getrestapiindexcustommetadataschemagroupnameresponse.md new file mode 100644 index 00000000..32e7bee9 --- /dev/null +++ b/docs/models/operations/getrestapiindexcustommetadataschemagroupnameresponse.md @@ -0,0 +1,9 @@ +# GetRestAPIIndexCustomMetadataSchemaGroupNameResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | +| `HTTPMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `CustomMetadataSchema` | [*components.CustomMetadataSchema](../../models/components/custommetadataschema.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/models/operations/postapiindexv1debugdatasourcedocumenteventsrequest.md b/docs/models/operations/postapiindexv1debugdatasourcedocumenteventsrequest.md new file mode 100644 index 00000000..db3b97ac --- /dev/null +++ b/docs/models/operations/postapiindexv1debugdatasourcedocumenteventsrequest.md @@ -0,0 +1,9 @@ +# PostAPIIndexV1DebugDatasourceDocumentEventsRequest + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `Datasource` | `string` | :heavy_check_mark: | The datasource to which the document belongs | +| `DebugDocumentLifecycleRequest` | [components.DebugDocumentLifecycleRequest](../../models/components/debugdocumentlifecyclerequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/postapiindexv1debugdatasourcedocumenteventsresponse.md b/docs/models/operations/postapiindexv1debugdatasourcedocumenteventsresponse.md new file mode 100644 index 00000000..c5515025 --- /dev/null +++ b/docs/models/operations/postapiindexv1debugdatasourcedocumenteventsresponse.md @@ -0,0 +1,9 @@ +# PostAPIIndexV1DebugDatasourceDocumentEventsResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| `HTTPMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `DebugDocumentLifecycleResponse` | [*components.DebugDocumentLifecycleResponse](../../models/components/debugdocumentlifecycleresponse.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/models/operations/putrestapiindexcustommetadataschemagroupnamerequest.md b/docs/models/operations/putrestapiindexcustommetadataschemagroupnamerequest.md new file mode 100644 index 00000000..a4f1916b --- /dev/null +++ b/docs/models/operations/putrestapiindexcustommetadataschemagroupnamerequest.md @@ -0,0 +1,9 @@ +# PutRestAPIIndexCustomMetadataSchemaGroupNameRequest + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `GroupName` | `string` | :heavy_check_mark: | Name of the metadata group schema | +| `CustomMetadataSchema` | [components.CustomMetadataSchema](../../models/components/custommetadataschema.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/putrestapiindexcustommetadataschemagroupnameresponse.md b/docs/models/operations/putrestapiindexcustommetadataschemagroupnameresponse.md new file mode 100644 index 00000000..d166f9db --- /dev/null +++ b/docs/models/operations/putrestapiindexcustommetadataschemagroupnameresponse.md @@ -0,0 +1,9 @@ +# PutRestAPIIndexCustomMetadataSchemaGroupNameResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | +| `HTTPMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `SuccessResponse` | [*components.SuccessResponse](../../models/components/successresponse.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/models/operations/putrestapiindexdocumentdocidcustommetadatagroupnamerequest.md b/docs/models/operations/putrestapiindexdocumentdocidcustommetadatagroupnamerequest.md new file mode 100644 index 00000000..aa189734 --- /dev/null +++ b/docs/models/operations/putrestapiindexdocumentdocidcustommetadatagroupnamerequest.md @@ -0,0 +1,10 @@ +# PutRestAPIIndexDocumentDocIDCustomMetadataGroupNameRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `DocID` | `string` | :heavy_check_mark: | Unique Glean identifier of the document | +| `GroupName` | `string` | :heavy_check_mark: | Name of the metadata group as specified while adding schema | +| `CustomMetadataPutRequest` | [components.CustomMetadataPutRequest](../../models/components/custommetadataputrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/putrestapiindexdocumentdocidcustommetadatagroupnameresponse.md b/docs/models/operations/putrestapiindexdocumentdocidcustommetadatagroupnameresponse.md new file mode 100644 index 00000000..c39efd24 --- /dev/null +++ b/docs/models/operations/putrestapiindexdocumentdocidcustommetadatagroupnameresponse.md @@ -0,0 +1,9 @@ +# PutRestAPIIndexDocumentDocIDCustomMetadataGroupNameResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | +| `HTTPMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `SuccessResponse` | [*components.SuccessResponse](../../models/components/successresponse.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/models/operations/rotatedatasourcecredentialsrequest.md b/docs/models/operations/rotatedatasourcecredentialsrequest.md new file mode 100644 index 00000000..d839b2b0 --- /dev/null +++ b/docs/models/operations/rotatedatasourcecredentialsrequest.md @@ -0,0 +1,9 @@ +# RotateDatasourceCredentialsRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | +| `DatasourceInstanceID` | `string` | :heavy_check_mark: | The full datasource instance identifier (e.g. o365sharepoint_abc123) | o365sharepoint_abc123 | +| `RotateDatasourceCredentialsRequest` | [components.RotateDatasourceCredentialsRequest](../../models/components/rotatedatasourcecredentialsrequest.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/rotatedatasourcecredentialsresponse.md b/docs/models/operations/rotatedatasourcecredentialsresponse.md new file mode 100644 index 00000000..466825e1 --- /dev/null +++ b/docs/models/operations/rotatedatasourcecredentialsresponse.md @@ -0,0 +1,9 @@ +# RotateDatasourceCredentialsResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | +| `HTTPMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `DatasourceCredentialStatusResponse` | [*components.DatasourceCredentialStatusResponse](../../models/components/datasourcecredentialstatusresponse.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdks/activity/README.md b/docs/sdks/activity/README.md index aa7cf463..018ef72b 100644 --- a/docs/sdks/activity/README.md +++ b/docs/sdks/activity/README.md @@ -115,7 +115,7 @@ func main() { TrackingTokens: []string{ "trackingTokens", }, - Event: components.EventView, + Event: components.FeedbackEventView, }) if err != nil { log.Fatal(err) diff --git a/docs/sdks/agents/README.md b/docs/sdks/agents/README.md index 5e6578d7..d34e421e 100644 --- a/docs/sdks/agents/README.md +++ b/docs/sdks/agents/README.md @@ -1,22 +1,18 @@ -# Client.Agents +# Agents ## Overview ### Available Operations -* [Retrieve](#retrieve) - Retrieve an agent -* [RetrieveSchemas](#retrieveschemas) - List an agent's schemas -* [List](#list) - Search agents -* [RunStream](#runstream) - Create an agent run and stream the response -* [Run](#run) - Create an agent run and wait for the response +* [EditAgent](#editagent) - Edit an agent -## Retrieve +## EditAgent -Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent Builder. +Creates a draft or publishes an [agent](https://developers.glean.com/agents/agents-api). Use `isDraft=true` to save a draft, or `isDraft=false` (or omit) to publish immediately. Only draft and publish modes are supported. ### Example Usage - + ```go package main @@ -24,6 +20,7 @@ import( "context" "os" apiclientgo "github.com/gleanwork/api-client-go" + "github.com/gleanwork/api-client-go/models/components" "log" ) @@ -34,11 +31,11 @@ func main() { apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), ) - res, err := s.Client.Agents.Retrieve(ctx, "", nil, nil) + res, err := s.Agents.EditAgent(ctx, "", components.EditWorkflowRequest{}, nil, nil) if err != nil { log.Fatal(err) } - if res.Agent != nil { + if res != nil { // handle response } } @@ -50,249 +47,18 @@ func main() { | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | | `agentID` | `string` | :heavy_check_mark: | The ID of the agent. | +| `editWorkflowRequest` | [components.EditWorkflowRequest](../../models/components/editworkflowrequest.md) | :heavy_check_mark: | N/A | | `locale` | `*string` | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | | `timezoneOffset` | `*int64` | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | | `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.GetAgentResponse](../../models/operations/getagentresponse.md), error** +**[*operations.EditAgentResponse](../../models/operations/editagentresponse.md), error** ### Errors | Error Type | Status Code | Content Type | | ----------------------- | ----------------------- | ----------------------- | | apierrors.ErrorResponse | 404 | application/json | -| apierrors.APIError | 4XX, 5XX | \*/\* | - -## RetrieveSchemas - -Return [agent](https://developers.glean.com/agents/agents-api)'s input and output schemas. You can use these schemas to detect changes to an agent's input or output structure. - -### Example Usage - - -```go -package main - -import( - "context" - "os" - apiclientgo "github.com/gleanwork/api-client-go" - "log" -) - -func main() { - ctx := context.Background() - - s := apiclientgo.New( - apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), - ) - - res, err := s.Client.Agents.RetrieveSchemas(ctx, "", nil, nil) - if err != nil { - log.Fatal(err) - } - if res.AgentSchemas != nil { - // handle response - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `agentID` | `string` | :heavy_check_mark: | The ID of the agent. | -| `locale` | `*string` | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | -| `timezoneOffset` | `*int64` | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | - -### Response - -**[*operations.GetAgentSchemasResponse](../../models/operations/getagentschemasresponse.md), error** - -### Errors - -| Error Type | Status Code | Content Type | -| ----------------------- | ----------------------- | ----------------------- | -| apierrors.ErrorResponse | 404, 422 | application/json | -| apierrors.APIError | 4XX, 5XX | \*/\* | - -## List - -Search for [agents](https://developers.glean.com/agents/agents-api) by agent name. - -### Example Usage - - -```go -package main - -import( - "context" - "os" - apiclientgo "github.com/gleanwork/api-client-go" - "github.com/gleanwork/api-client-go/models/components" - "log" -) - -func main() { - ctx := context.Background() - - s := apiclientgo.New( - apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), - ) - - res, err := s.Client.Agents.List(ctx, components.SearchAgentsRequest{ - Name: apiclientgo.Pointer("HR Policy Agent"), - }) - if err != nil { - log.Fatal(err) - } - if res.SearchAgentsResponse != nil { - // handle response - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [components.SearchAgentsRequest](../../models/components/searchagentsrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | - -### Response - -**[*operations.SearchAgentsResponse](../../models/operations/searchagentsresponse.md), error** - -### Errors - -| Error Type | Status Code | Content Type | -| ----------------------- | ----------------------- | ----------------------- | -| apierrors.ErrorResponse | 404, 422 | application/json | -| apierrors.APIError | 4XX, 5XX | \*/\* | - -## RunStream - -Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the result as a stream of server-sent events (SSE). **Note**: If the agent uses an input form trigger, all form fields (including optional fields) must be included in the `input` object. - -### Example Usage - - -```go -package main - -import( - "context" - "os" - apiclientgo "github.com/gleanwork/api-client-go" - "github.com/gleanwork/api-client-go/models/components" - "log" -) - -func main() { - ctx := context.Background() - - s := apiclientgo.New( - apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), - ) - - res, err := s.Client.Agents.RunStream(ctx, components.AgentRunCreate{ - AgentID: "", - Messages: []components.Message{ - components.Message{ - Role: apiclientgo.Pointer("USER"), - }, - }, - }) - if err != nil { - log.Fatal(err) - } - if res.Res != nil { - // handle response - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [components.AgentRunCreate](../../models/components/agentruncreate.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | - -### Response - -**[*operations.CreateAndStreamRunResponse](../../models/operations/createandstreamrunresponse.md), error** - -### Errors - -| Error Type | Status Code | Content Type | -| ----------------------- | ----------------------- | ----------------------- | -| apierrors.ErrorResponse | 404, 409, 422 | application/json | -| apierrors.APIError | 4XX, 5XX | \*/\* | - -## Run - -Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the final response. **Note**: If the agent uses an input form trigger, all form fields (including optional fields) must be included in the `input` object. - -### Example Usage - - -```go -package main - -import( - "context" - "os" - apiclientgo "github.com/gleanwork/api-client-go" - "github.com/gleanwork/api-client-go/models/components" - "log" -) - -func main() { - ctx := context.Background() - - s := apiclientgo.New( - apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), - ) - - res, err := s.Client.Agents.Run(ctx, components.AgentRunCreate{ - AgentID: "", - Messages: []components.Message{ - components.Message{ - Role: apiclientgo.Pointer("USER"), - }, - }, - }) - if err != nil { - log.Fatal(err) - } - if res.AgentRunWaitResponse != nil { - // handle response - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [components.AgentRunCreate](../../models/components/agentruncreate.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | - -### Response - -**[*operations.CreateAndWaitRunResponse](../../models/operations/createandwaitrunresponse.md), error** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------ | ------------------ | ------------------ | -| apierrors.APIError | 4XX, 5XX | \*/\* | \ No newline at end of file +| apierrors.APIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/chat/README.md b/docs/sdks/chat/README.md index 51f25cab..3d6d575c 100644 --- a/docs/sdks/chat/README.md +++ b/docs/sdks/chat/README.md @@ -1,53296 +1,19 @@ -# Client.Chat +# Chat ## Overview ### Available Operations -* [Create](#create) - Chat -* [DeleteAll](#deleteall) - Deletes all saved Chats owned by a user -* [Delete](#delete) - Deletes saved Chats -* [Retrieve](#retrieve) - Retrieves a Chat -* [List](#list) - Retrieves all saved Chats -* [RetrieveApplication](#retrieveapplication) - Gets the metadata for a custom Chat application -* [UploadFiles](#uploadfiles) - Upload files for Chat -* [RetrieveFiles](#retrievefiles) - Get files uploaded by a user for Chat -* [DeleteFiles](#deletefiles) - Delete files uploaded by a user for chat -* [CreateStream](#createstream) - Chat +* [GetChatFile](#getchatfile) - Download a chat file -## Create +## GetChatFile -Have a conversation with Glean AI. +Download the raw content of a file generated or uploaded during a chat session (for example, an image produced by the assistant). Returns the file bytes with a Content-Type header matching the file's MIME type. -### Example Usage: citationResponse - - -```go -package main - -import( - "context" - "os" - apiclientgo "github.com/gleanwork/api-client-go" - "github.com/gleanwork/api-client-go/types" - "github.com/gleanwork/api-client-go/models/components" - "log" -) - -func main() { - ctx := context.Background() - - s := apiclientgo.New( - apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), - ) - - res, err := s.Client.Chat.Create(ctx, components.ChatRequest{ - Messages: []components.ChatMessage{ - components.ChatMessage{ - Citations: []components.ChatMessageCitation{ - components.ChatMessageCitation{ - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - SourceFile: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - SourcePerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - ReferenceRanges: []components.ReferenceRange{ - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.ChatMessageCitation{ - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - SourceFile: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - SourcePerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - ReferenceRanges: []components.ReferenceRange{ - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.ChatMessageCitation{ - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - SourceFile: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - SourcePerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - ReferenceRanges: []components.ReferenceRange{ - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - Fragments: []components.ChatMessageFragment{ - components.ChatMessageFragment{ - StructuredResults: []components.StructuredResult{ - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - }, - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - File: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - Action: &components.ToolInfo{ - Metadata: &components.ToolMetadata{ - Type: components.ToolMetadataTypeRetrieval, - Name: "", - DisplayName: "Avis_Gislason87", - DisplayDescription: "", - ObjectName: apiclientgo.Pointer("[\"HR ticket\",\"Email\",\"Chat message\"]"), - }, - }, - }, - components.ChatMessageFragment{ - StructuredResults: []components.StructuredResult{ - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - }, - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - File: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - Action: &components.ToolInfo{ - Metadata: &components.ToolMetadata{ - Type: components.ToolMetadataTypeRetrieval, - Name: "", - DisplayName: "Avis_Gislason87", - DisplayDescription: "", - ObjectName: apiclientgo.Pointer("[\"HR ticket\",\"Email\",\"Chat message\"]"), - }, - }, - }, - }, - }, - components.ChatMessage{ - Citations: []components.ChatMessageCitation{ - components.ChatMessageCitation{ - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - SourceFile: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - SourcePerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - ReferenceRanges: []components.ReferenceRange{ - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.ChatMessageCitation{ - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - SourceFile: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - SourcePerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - ReferenceRanges: []components.ReferenceRange{ - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.ChatMessageCitation{ - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - SourceFile: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - SourcePerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - ReferenceRanges: []components.ReferenceRange{ - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - Fragments: []components.ChatMessageFragment{ - components.ChatMessageFragment{ - StructuredResults: []components.StructuredResult{ - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - }, - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - File: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - Action: &components.ToolInfo{ - Metadata: &components.ToolMetadata{ - Type: components.ToolMetadataTypeRetrieval, - Name: "", - DisplayName: "Avis_Gislason87", - DisplayDescription: "", - ObjectName: apiclientgo.Pointer("[\"HR ticket\",\"Email\",\"Chat message\"]"), - }, - }, - }, - components.ChatMessageFragment{ - StructuredResults: []components.StructuredResult{ - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - }, - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - File: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - Action: &components.ToolInfo{ - Metadata: &components.ToolMetadata{ - Type: components.ToolMetadataTypeRetrieval, - Name: "", - DisplayName: "Avis_Gislason87", - DisplayDescription: "", - ObjectName: apiclientgo.Pointer("[\"HR ticket\",\"Email\",\"Chat message\"]"), - }, - }, - }, - }, - }, - components.ChatMessage{ - Citations: []components.ChatMessageCitation{ - components.ChatMessageCitation{ - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - SourceFile: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - SourcePerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - ReferenceRanges: []components.ReferenceRange{ - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.ChatMessageCitation{ - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - SourceFile: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - SourcePerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - ReferenceRanges: []components.ReferenceRange{ - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.ChatMessageCitation{ - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - SourceFile: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - SourcePerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - ReferenceRanges: []components.ReferenceRange{ - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - Fragments: []components.ChatMessageFragment{ - components.ChatMessageFragment{ - StructuredResults: []components.StructuredResult{ - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - }, - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - File: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - Action: &components.ToolInfo{ - Metadata: &components.ToolMetadata{ - Type: components.ToolMetadataTypeRetrieval, - Name: "", - DisplayName: "Avis_Gislason87", - DisplayDescription: "", - ObjectName: apiclientgo.Pointer("[\"HR ticket\",\"Email\",\"Chat message\"]"), - }, - }, - }, - components.ChatMessageFragment{ - StructuredResults: []components.StructuredResult{ - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - }, - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - File: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - Action: &components.ToolInfo{ - Metadata: &components.ToolMetadata{ - Type: components.ToolMetadataTypeRetrieval, - Name: "", - DisplayName: "Avis_Gislason87", - DisplayDescription: "", - ObjectName: apiclientgo.Pointer("[\"HR ticket\",\"Email\",\"Chat message\"]"), - }, - }, - }, - }, - }, - }, - TimeoutMillis: apiclientgo.Pointer[int64](30000), - }, nil, nil) - if err != nil { - log.Fatal(err) - } - if res.ChatResponse != nil { - // handle response - } -} -``` -### Example Usage: defaultExample - - -```go -package main - -import( - "context" - "os" - apiclientgo "github.com/gleanwork/api-client-go" - "github.com/gleanwork/api-client-go/models/components" - "log" -) - -func main() { - ctx := context.Background() - - s := apiclientgo.New( - apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), - ) - - res, err := s.Client.Chat.Create(ctx, components.ChatRequest{ - Messages: []components.ChatMessage{ - components.ChatMessage{ - Fragments: []components.ChatMessageFragment{ - components.ChatMessageFragment{ - Text: apiclientgo.Pointer("What are the company holidays this year?"), - }, - }, - }, - }, - }, nil, nil) - if err != nil { - log.Fatal(err) - } - if res.ChatResponse != nil { - // handle response - } -} -``` -### Example Usage: gptAgentExample - - -```go -package main - -import( - "context" - "os" - apiclientgo "github.com/gleanwork/api-client-go" - "github.com/gleanwork/api-client-go/models/components" - "log" -) - -func main() { - ctx := context.Background() - - s := apiclientgo.New( - apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), - ) - - res, err := s.Client.Chat.Create(ctx, components.ChatRequest{ - Messages: []components.ChatMessage{ - components.ChatMessage{ - Fragments: []components.ChatMessageFragment{ - components.ChatMessageFragment{ - Text: apiclientgo.Pointer("Who was the first person to land on the moon?"), - }, - }, - }, - }, - AgentConfig: &components.AgentConfig{ - Agent: components.AgentEnumGpt.ToPointer(), - }, - }, nil, nil) - if err != nil { - log.Fatal(err) - } - if res.ChatResponse != nil { - // handle response - } -} -``` -### Example Usage: streamingExample - - -```go -package main - -import( - "context" - "os" - apiclientgo "github.com/gleanwork/api-client-go" - "github.com/gleanwork/api-client-go/types" - "github.com/gleanwork/api-client-go/models/components" - "log" -) - -func main() { - ctx := context.Background() - - s := apiclientgo.New( - apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), - ) - - res, err := s.Client.Chat.Create(ctx, components.ChatRequest{ - Messages: []components.ChatMessage{ - components.ChatMessage{ - Citations: []components.ChatMessageCitation{ - components.ChatMessageCitation{ - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - SourceFile: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - SourcePerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - ReferenceRanges: []components.ReferenceRange{ - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.ChatMessageCitation{ - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - SourceFile: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - SourcePerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - ReferenceRanges: []components.ReferenceRange{ - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.ChatMessageCitation{ - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - SourceFile: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - SourcePerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - ReferenceRanges: []components.ReferenceRange{ - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - Fragments: []components.ChatMessageFragment{ - components.ChatMessageFragment{ - StructuredResults: []components.StructuredResult{ - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - }, - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - File: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - Action: &components.ToolInfo{ - Metadata: &components.ToolMetadata{ - Type: components.ToolMetadataTypeRetrieval, - Name: "", - DisplayName: "Avis_Gislason87", - DisplayDescription: "", - ObjectName: apiclientgo.Pointer("[\"HR ticket\",\"Email\",\"Chat message\"]"), - }, - }, - }, - components.ChatMessageFragment{ - StructuredResults: []components.StructuredResult{ - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - }, - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - File: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - Action: &components.ToolInfo{ - Metadata: &components.ToolMetadata{ - Type: components.ToolMetadataTypeRetrieval, - Name: "", - DisplayName: "Avis_Gislason87", - DisplayDescription: "", - ObjectName: apiclientgo.Pointer("[\"HR ticket\",\"Email\",\"Chat message\"]"), - }, - }, - }, - }, - }, - components.ChatMessage{ - Citations: []components.ChatMessageCitation{ - components.ChatMessageCitation{ - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - SourceFile: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - SourcePerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - ReferenceRanges: []components.ReferenceRange{ - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.ChatMessageCitation{ - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - SourceFile: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - SourcePerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - ReferenceRanges: []components.ReferenceRange{ - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.ChatMessageCitation{ - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - SourceFile: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - SourcePerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - ReferenceRanges: []components.ReferenceRange{ - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - Fragments: []components.ChatMessageFragment{ - components.ChatMessageFragment{ - StructuredResults: []components.StructuredResult{ - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - }, - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - File: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - Action: &components.ToolInfo{ - Metadata: &components.ToolMetadata{ - Type: components.ToolMetadataTypeRetrieval, - Name: "", - DisplayName: "Avis_Gislason87", - DisplayDescription: "", - ObjectName: apiclientgo.Pointer("[\"HR ticket\",\"Email\",\"Chat message\"]"), - }, - }, - }, - components.ChatMessageFragment{ - StructuredResults: []components.StructuredResult{ - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - }, - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - File: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - Action: &components.ToolInfo{ - Metadata: &components.ToolMetadata{ - Type: components.ToolMetadataTypeRetrieval, - Name: "", - DisplayName: "Avis_Gislason87", - DisplayDescription: "", - ObjectName: apiclientgo.Pointer("[\"HR ticket\",\"Email\",\"Chat message\"]"), - }, - }, - }, - }, - }, - components.ChatMessage{ - Citations: []components.ChatMessageCitation{ - components.ChatMessageCitation{ - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - SourceFile: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - SourcePerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - ReferenceRanges: []components.ReferenceRange{ - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.ChatMessageCitation{ - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - SourceFile: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - SourcePerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - ReferenceRanges: []components.ReferenceRange{ - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.ChatMessageCitation{ - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - SourceFile: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - SourcePerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - ReferenceRanges: []components.ReferenceRange{ - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - Fragments: []components.ChatMessageFragment{ - components.ChatMessageFragment{ - StructuredResults: []components.StructuredResult{ - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - }, - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - File: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - Action: &components.ToolInfo{ - Metadata: &components.ToolMetadata{ - Type: components.ToolMetadataTypeRetrieval, - Name: "", - DisplayName: "Avis_Gislason87", - DisplayDescription: "", - ObjectName: apiclientgo.Pointer("[\"HR ticket\",\"Email\",\"Chat message\"]"), - }, - }, - }, - components.ChatMessageFragment{ - StructuredResults: []components.StructuredResult{ - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - }, - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - File: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - Action: &components.ToolInfo{ - Metadata: &components.ToolMetadata{ - Type: components.ToolMetadataTypeRetrieval, - Name: "", - DisplayName: "Avis_Gislason87", - DisplayDescription: "", - ObjectName: apiclientgo.Pointer("[\"HR ticket\",\"Email\",\"Chat message\"]"), - }, - }, - }, - }, - }, - }, - TimeoutMillis: apiclientgo.Pointer[int64](30000), - }, nil, nil) - if err != nil { - log.Fatal(err) - } - if res.ChatResponse != nil { - // handle response - } -} -``` -### Example Usage: updateResponse - - -```go -package main - -import( - "context" - "os" - apiclientgo "github.com/gleanwork/api-client-go" - "github.com/gleanwork/api-client-go/types" - "github.com/gleanwork/api-client-go/models/components" - "log" -) - -func main() { - ctx := context.Background() - - s := apiclientgo.New( - apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), - ) - - res, err := s.Client.Chat.Create(ctx, components.ChatRequest{ - Messages: []components.ChatMessage{ - components.ChatMessage{ - Citations: []components.ChatMessageCitation{ - components.ChatMessageCitation{ - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - SourceFile: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - SourcePerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - ReferenceRanges: []components.ReferenceRange{ - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.ChatMessageCitation{ - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - SourceFile: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - SourcePerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - ReferenceRanges: []components.ReferenceRange{ - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.ChatMessageCitation{ - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - SourceFile: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - SourcePerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - ReferenceRanges: []components.ReferenceRange{ - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - Fragments: []components.ChatMessageFragment{ - components.ChatMessageFragment{ - StructuredResults: []components.StructuredResult{ - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - }, - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - File: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - Action: &components.ToolInfo{ - Metadata: &components.ToolMetadata{ - Type: components.ToolMetadataTypeRetrieval, - Name: "", - DisplayName: "Avis_Gislason87", - DisplayDescription: "", - ObjectName: apiclientgo.Pointer("[\"HR ticket\",\"Email\",\"Chat message\"]"), - }, - }, - }, - components.ChatMessageFragment{ - StructuredResults: []components.StructuredResult{ - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - }, - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - File: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - Action: &components.ToolInfo{ - Metadata: &components.ToolMetadata{ - Type: components.ToolMetadataTypeRetrieval, - Name: "", - DisplayName: "Avis_Gislason87", - DisplayDescription: "", - ObjectName: apiclientgo.Pointer("[\"HR ticket\",\"Email\",\"Chat message\"]"), - }, - }, - }, - }, - }, - components.ChatMessage{ - Citations: []components.ChatMessageCitation{ - components.ChatMessageCitation{ - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - SourceFile: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - SourcePerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - ReferenceRanges: []components.ReferenceRange{ - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.ChatMessageCitation{ - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - SourceFile: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - SourcePerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - ReferenceRanges: []components.ReferenceRange{ - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.ChatMessageCitation{ - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - SourceFile: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - SourcePerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - ReferenceRanges: []components.ReferenceRange{ - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - Fragments: []components.ChatMessageFragment{ - components.ChatMessageFragment{ - StructuredResults: []components.StructuredResult{ - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - }, - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - File: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - Action: &components.ToolInfo{ - Metadata: &components.ToolMetadata{ - Type: components.ToolMetadataTypeRetrieval, - Name: "", - DisplayName: "Avis_Gislason87", - DisplayDescription: "", - ObjectName: apiclientgo.Pointer("[\"HR ticket\",\"Email\",\"Chat message\"]"), - }, - }, - }, - components.ChatMessageFragment{ - StructuredResults: []components.StructuredResult{ - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - }, - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - File: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - Action: &components.ToolInfo{ - Metadata: &components.ToolMetadata{ - Type: components.ToolMetadataTypeRetrieval, - Name: "", - DisplayName: "Avis_Gislason87", - DisplayDescription: "", - ObjectName: apiclientgo.Pointer("[\"HR ticket\",\"Email\",\"Chat message\"]"), - }, - }, - }, - }, - }, - components.ChatMessage{ - Citations: []components.ChatMessageCitation{ - components.ChatMessageCitation{ - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - SourceFile: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - SourcePerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - ReferenceRanges: []components.ReferenceRange{ - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.ChatMessageCitation{ - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - SourceFile: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - SourcePerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - ReferenceRanges: []components.ReferenceRange{ - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.ChatMessageCitation{ - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - SourceFile: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - SourcePerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - ReferenceRanges: []components.ReferenceRange{ - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 260313, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - Fragments: []components.ChatMessageFragment{ - components.ChatMessageFragment{ - StructuredResults: []components.StructuredResult{ - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - }, - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - File: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - Action: &components.ToolInfo{ - Metadata: &components.ToolMetadata{ - Type: components.ToolMetadataTypeRetrieval, - Name: "", - DisplayName: "Avis_Gislason87", - DisplayDescription: "", - ObjectName: apiclientgo.Pointer("[\"HR ticket\",\"Email\",\"Chat message\"]"), - }, - }, - }, - components.ChatMessageFragment{ - StructuredResults: []components.StructuredResult{ - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: apiclientgo.Pointer("New York City"), - Industry: apiclientgo.Pointer("Finances"), - About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - }, - CustomEntity: &components.CustomEntity{ - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - Answer: &components.Answer{ - ID: 3, - DocID: apiclientgo.Pointer("ANSWERS_answer_3"), - Question: apiclientgo.Pointer("Why is the sky blue?"), - BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - CombinedAnswerText: &components.StructuredText{ - Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - StructuredList: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - LikedByUser: true, - NumLikes: 412487, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 587641, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 633695, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - components.Collection{ - Name: "", - Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 345790, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 765696, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 444084, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Code: &components.Code{ - RepoName: apiclientgo.Pointer("scio"), - FileName: apiclientgo.Pointer("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: apiclientgo.Pointer("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: apiclientgo.Pointer("mimeType"), - Snippet: apiclientgo.Pointer("snippet"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 367849, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: apiclientgo.Pointer("datasource"), - ObjectType: apiclientgo.Pointer("Feature Request"), - Container: apiclientgo.Pointer("container"), - ParentID: apiclientgo.Pointer("JIRA_EN-1337"), - MimeType: apiclientgo.Pointer("mimeType"), - DocumentID: apiclientgo.Pointer("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: apiclientgo.Pointer("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - }, - }, - }, - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: apiclientgo.Pointer("Mortimer's PRs"), - Datasource: apiclientgo.Pointer("github"), - }, - File: &components.ChatFile{ - ID: apiclientgo.Pointer("FILE_1234"), - URL: apiclientgo.Pointer("www.google.com"), - Name: apiclientgo.Pointer("sample.pdf"), - }, - Action: &components.ToolInfo{ - Metadata: &components.ToolMetadata{ - Type: components.ToolMetadataTypeRetrieval, - Name: "", - DisplayName: "Avis_Gislason87", - DisplayDescription: "", - ObjectName: apiclientgo.Pointer("[\"HR ticket\",\"Email\",\"Chat message\"]"), - }, - }, - }, - }, - }, - }, - TimeoutMillis: apiclientgo.Pointer[int64](30000), - }, nil, nil) - if err != nil { - log.Fatal(err) - } - if res.ChatResponse != nil { - // handle response - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `chatRequest` | [components.ChatRequest](../../models/components/chatrequest.md) | :heavy_check_mark: | Includes chat history for Glean AI to respond to. | -| `locale` | `*string` | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | -| `timezoneOffset` | `*int64` | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | - -### Response - -**[*operations.ChatResponse](../../models/operations/chatresponse.md), error** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------ | ------------------ | ------------------ | -| apierrors.APIError | 4XX, 5XX | \*/\* | - -## DeleteAll - -Deletes all saved Chats a user has had and all their contained conversational content. - -### Example Usage - - -```go -package main - -import( - "context" - "os" - apiclientgo "github.com/gleanwork/api-client-go" - "log" -) - -func main() { - ctx := context.Background() - - s := apiclientgo.New( - apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), - ) - - res, err := s.Client.Chat.DeleteAll(ctx, nil, nil) - if err != nil { - log.Fatal(err) - } - if res != nil { - // handle response - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `locale` | `*string` | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | -| `timezoneOffset` | `*int64` | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | - -### Response - -**[*operations.DeleteallchatsResponse](../../models/operations/deleteallchatsresponse.md), error** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------ | ------------------ | ------------------ | -| apierrors.APIError | 4XX, 5XX | \*/\* | - -## Delete - -Deletes saved Chats and all their contained conversational content. - -### Example Usage - - -```go -package main - -import( - "context" - "os" - apiclientgo "github.com/gleanwork/api-client-go" - "github.com/gleanwork/api-client-go/models/components" - "log" -) - -func main() { - ctx := context.Background() - - s := apiclientgo.New( - apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), - ) - - res, err := s.Client.Chat.Delete(ctx, components.DeleteChatsRequest{ - Ids: []string{}, - }, nil, nil) - if err != nil { - log.Fatal(err) - } - if res != nil { - // handle response - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `deleteChatsRequest` | [components.DeleteChatsRequest](../../models/components/deletechatsrequest.md) | :heavy_check_mark: | N/A | -| `locale` | `*string` | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | -| `timezoneOffset` | `*int64` | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | - -### Response - -**[*operations.DeletechatsResponse](../../models/operations/deletechatsresponse.md), error** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------ | ------------------ | ------------------ | -| apierrors.APIError | 4XX, 5XX | \*/\* | - -## Retrieve - -Retrieves the chat history between Glean Assistant and the user for a given Chat. - -### Example Usage - - -```go -package main - -import( - "context" - "os" - apiclientgo "github.com/gleanwork/api-client-go" - "github.com/gleanwork/api-client-go/models/components" - "log" -) - -func main() { - ctx := context.Background() - - s := apiclientgo.New( - apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), - ) - - res, err := s.Client.Chat.Retrieve(ctx, components.GetChatRequest{ - ID: "", - }, nil, nil) - if err != nil { - log.Fatal(err) - } - if res.GetChatResponse != nil { - // handle response - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `getChatRequest` | [components.GetChatRequest](../../models/components/getchatrequest.md) | :heavy_check_mark: | N/A | -| `locale` | `*string` | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | -| `timezoneOffset` | `*int64` | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | - -### Response - -**[*operations.GetchatResponse](../../models/operations/getchatresponse.md), error** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------ | ------------------ | ------------------ | -| apierrors.APIError | 4XX, 5XX | \*/\* | - -## List - -Retrieves all the saved Chats between Glean Assistant and the user. The returned Chats contain only metadata and no conversational content. - -### Example Usage - - -```go -package main - -import( - "context" - "os" - apiclientgo "github.com/gleanwork/api-client-go" - "log" -) - -func main() { - ctx := context.Background() - - s := apiclientgo.New( - apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), - ) - - res, err := s.Client.Chat.List(ctx, nil, nil) - if err != nil { - log.Fatal(err) - } - if res.ListChatsResponse != nil { - // handle response - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `locale` | `*string` | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | -| `timezoneOffset` | `*int64` | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | - -### Response - -**[*operations.ListchatsResponse](../../models/operations/listchatsresponse.md), error** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------ | ------------------ | ------------------ | -| apierrors.APIError | 4XX, 5XX | \*/\* | - -## RetrieveApplication - -Gets the Chat application details for the specified application ID. - -### Example Usage - - -```go -package main - -import( - "context" - "os" - apiclientgo "github.com/gleanwork/api-client-go" - "github.com/gleanwork/api-client-go/models/components" - "log" -) - -func main() { - ctx := context.Background() - - s := apiclientgo.New( - apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), - ) - - res, err := s.Client.Chat.RetrieveApplication(ctx, components.GetChatApplicationRequest{ - ID: "", - }, nil, nil) - if err != nil { - log.Fatal(err) - } - if res.GetChatApplicationResponse != nil { - // handle response - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `getChatApplicationRequest` | [components.GetChatApplicationRequest](../../models/components/getchatapplicationrequest.md) | :heavy_check_mark: | N/A | -| `locale` | `*string` | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | -| `timezoneOffset` | `*int64` | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | - -### Response - -**[*operations.GetchatapplicationResponse](../../models/operations/getchatapplicationresponse.md), error** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------ | ------------------ | ------------------ | -| apierrors.APIError | 4XX, 5XX | \*/\* | - -## UploadFiles - -Upload files for Chat. - -### Example Usage - - -```go -package main - -import( - "context" - "os" - apiclientgo "github.com/gleanwork/api-client-go" - "github.com/gleanwork/api-client-go/models/components" - "log" -) - -func main() { - ctx := context.Background() - - s := apiclientgo.New( - apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), - ) - - example, fileErr := os.Open("example.file") - if fileErr != nil { - panic(fileErr) - } - - res, err := s.Client.Chat.UploadFiles(ctx, components.UploadChatFilesRequest{ - Files: []components.File{ - components.File{ - FileName: "example.file", - Content: example, - }, - }, - }, nil, nil) - if err != nil { - log.Fatal(err) - } - if res.UploadChatFilesResponse != nil { - // handle response - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `uploadChatFilesRequest` | [components.UploadChatFilesRequest](../../models/components/uploadchatfilesrequest.md) | :heavy_check_mark: | N/A | -| `locale` | `*string` | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | -| `timezoneOffset` | `*int64` | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | - -### Response - -**[*operations.UploadchatfilesResponse](../../models/operations/uploadchatfilesresponse.md), error** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------ | ------------------ | ------------------ | -| apierrors.APIError | 4XX, 5XX | \*/\* | - -## RetrieveFiles - -Get files uploaded by a user for Chat. - -### Example Usage - - -```go -package main - -import( - "context" - "os" - apiclientgo "github.com/gleanwork/api-client-go" - "github.com/gleanwork/api-client-go/models/components" - "log" -) - -func main() { - ctx := context.Background() - - s := apiclientgo.New( - apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), - ) - - res, err := s.Client.Chat.RetrieveFiles(ctx, components.GetChatFilesRequest{ - FileIds: []string{ - "", - }, - }, nil, nil) - if err != nil { - log.Fatal(err) - } - if res.GetChatFilesResponse != nil { - // handle response - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `getChatFilesRequest` | [components.GetChatFilesRequest](../../models/components/getchatfilesrequest.md) | :heavy_check_mark: | N/A | -| `locale` | `*string` | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | -| `timezoneOffset` | `*int64` | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | - -### Response - -**[*operations.GetchatfilesResponse](../../models/operations/getchatfilesresponse.md), error** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------ | ------------------ | ------------------ | -| apierrors.APIError | 4XX, 5XX | \*/\* | - -## DeleteFiles - -Delete files uploaded by a user for Chat. ### Example Usage - -```go -package main - -import( - "context" - "os" - apiclientgo "github.com/gleanwork/api-client-go" - "github.com/gleanwork/api-client-go/models/components" - "log" -) - -func main() { - ctx := context.Background() - - s := apiclientgo.New( - apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), - ) - - res, err := s.Client.Chat.DeleteFiles(ctx, components.DeleteChatFilesRequest{ - FileIds: []string{ - "", - "", - "", - }, - }, nil, nil) - if err != nil { - log.Fatal(err) - } - if res != nil { - // handle response - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `deleteChatFilesRequest` | [components.DeleteChatFilesRequest](../../models/components/deletechatfilesrequest.md) | :heavy_check_mark: | N/A | -| `locale` | `*string` | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | -| `timezoneOffset` | `*int64` | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | - -### Response - -**[*operations.DeletechatfilesResponse](../../models/operations/deletechatfilesresponse.md), error** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------ | ------------------ | ------------------ | -| apierrors.APIError | 4XX, 5XX | \*/\* | - -## CreateStream - -Have a conversation with Glean AI. - -### Example Usage: citationResponse - - -```go -package main - -import( - "context" - "os" - apiclientgo "github.com/gleanwork/api-client-go" - "github.com/gleanwork/api-client-go/models/components" - "log" -) - -func main() { - ctx := context.Background() - - s := apiclientgo.New( - apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), - ) - - res, err := s.Client.Chat.CreateStream(ctx, components.ChatRequest{ - Messages: []components.ChatMessage{}, - TimeoutMillis: apiclientgo.Pointer[int64](30000), - }, nil) - if err != nil { - log.Fatal(err) - } - if res.ChatRequestStream != nil { - // handle response - } -} -``` -### Example Usage: defaultExample - - -```go -package main - -import( - "context" - "os" - apiclientgo "github.com/gleanwork/api-client-go" - "github.com/gleanwork/api-client-go/models/components" - "log" -) - -func main() { - ctx := context.Background() - - s := apiclientgo.New( - apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), - ) - - res, err := s.Client.Chat.CreateStream(ctx, components.ChatRequest{ - Messages: []components.ChatMessage{ - components.ChatMessage{ - Fragments: []components.ChatMessageFragment{ - components.ChatMessageFragment{ - Text: apiclientgo.Pointer("What are the company holidays this year?"), - }, - }, - }, - }, - }, nil) - if err != nil { - log.Fatal(err) - } - if res.ChatRequestStream != nil { - // handle response - } -} -``` -### Example Usage: gptAgentExample - - -```go -package main - -import( - "context" - "os" - apiclientgo "github.com/gleanwork/api-client-go" - "github.com/gleanwork/api-client-go/models/components" - "log" -) - -func main() { - ctx := context.Background() - - s := apiclientgo.New( - apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), - ) - - res, err := s.Client.Chat.CreateStream(ctx, components.ChatRequest{ - Messages: []components.ChatMessage{ - components.ChatMessage{ - Fragments: []components.ChatMessageFragment{ - components.ChatMessageFragment{ - Text: apiclientgo.Pointer("Who was the first person to land on the moon?"), - }, - }, - }, - }, - AgentConfig: &components.AgentConfig{ - Agent: components.AgentEnumGpt.ToPointer(), - }, - }, nil) - if err != nil { - log.Fatal(err) - } - if res.ChatRequestStream != nil { - // handle response - } -} -``` -### Example Usage: streamingExample - - -```go -package main - -import( - "context" - "os" - apiclientgo "github.com/gleanwork/api-client-go" - "github.com/gleanwork/api-client-go/models/components" - "log" -) - -func main() { - ctx := context.Background() - - s := apiclientgo.New( - apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), - ) - - res, err := s.Client.Chat.CreateStream(ctx, components.ChatRequest{ - Messages: []components.ChatMessage{}, - TimeoutMillis: apiclientgo.Pointer[int64](30000), - }, nil) - if err != nil { - log.Fatal(err) - } - if res.ChatRequestStream != nil { - // handle response - } -} -``` -### Example Usage: updateResponse - - + ```go package main @@ -53298,7 +21,6 @@ import( "context" "os" apiclientgo "github.com/gleanwork/api-client-go" - "github.com/gleanwork/api-client-go/models/components" "log" ) @@ -53309,14 +31,11 @@ func main() { apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), ) - res, err := s.Client.Chat.CreateStream(ctx, components.ChatRequest{ - Messages: []components.ChatMessage{}, - TimeoutMillis: apiclientgo.Pointer[int64](30000), - }, nil) + res, err := s.Chat.GetChatFile(ctx, "", nil) if err != nil { log.Fatal(err) } - if res.ChatRequestStream != nil { + if res.ResponseStream != nil { // handle response } } @@ -53324,16 +43,16 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `chatRequest` | [components.ChatRequest](../../models/components/chatrequest.md) | :heavy_check_mark: | Includes chat history for Glean AI to respond to. | -| `timezoneOffset` | `*int64` | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `fileID` | `string` | :heavy_check_mark: | Identifier of the chat file to download. | +| `preview` | `*bool` | :heavy_minus_sign: | When true and the file is a PDF, the response is served inline (Content-Disposition: inline) instead of as an attachment.
| +| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.ChatStreamResponse](../../models/operations/chatstreamresponse.md), error** +**[*operations.GetChatFileResponse](../../models/operations/getchatfileresponse.md), error** ### Errors diff --git a/docs/sdks/clientagents/README.md b/docs/sdks/clientagents/README.md new file mode 100644 index 00000000..5e6578d7 --- /dev/null +++ b/docs/sdks/clientagents/README.md @@ -0,0 +1,298 @@ +# Client.Agents + +## Overview + +### Available Operations + +* [Retrieve](#retrieve) - Retrieve an agent +* [RetrieveSchemas](#retrieveschemas) - List an agent's schemas +* [List](#list) - Search agents +* [RunStream](#runstream) - Create an agent run and stream the response +* [Run](#run) - Create an agent run and wait for the response + +## Retrieve + +Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent Builder. + +### Example Usage + + +```go +package main + +import( + "context" + "os" + apiclientgo "github.com/gleanwork/api-client-go" + "log" +) + +func main() { + ctx := context.Background() + + s := apiclientgo.New( + apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), + ) + + res, err := s.Client.Agents.Retrieve(ctx, "", nil, nil) + if err != nil { + log.Fatal(err) + } + if res.Agent != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `agentID` | `string` | :heavy_check_mark: | The ID of the agent. | +| `locale` | `*string` | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | `*int64` | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | + +### Response + +**[*operations.GetAgentResponse](../../models/operations/getagentresponse.md), error** + +### Errors + +| Error Type | Status Code | Content Type | +| ----------------------- | ----------------------- | ----------------------- | +| apierrors.ErrorResponse | 404 | application/json | +| apierrors.APIError | 4XX, 5XX | \*/\* | + +## RetrieveSchemas + +Return [agent](https://developers.glean.com/agents/agents-api)'s input and output schemas. You can use these schemas to detect changes to an agent's input or output structure. + +### Example Usage + + +```go +package main + +import( + "context" + "os" + apiclientgo "github.com/gleanwork/api-client-go" + "log" +) + +func main() { + ctx := context.Background() + + s := apiclientgo.New( + apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), + ) + + res, err := s.Client.Agents.RetrieveSchemas(ctx, "", nil, nil) + if err != nil { + log.Fatal(err) + } + if res.AgentSchemas != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `agentID` | `string` | :heavy_check_mark: | The ID of the agent. | +| `locale` | `*string` | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | `*int64` | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | + +### Response + +**[*operations.GetAgentSchemasResponse](../../models/operations/getagentschemasresponse.md), error** + +### Errors + +| Error Type | Status Code | Content Type | +| ----------------------- | ----------------------- | ----------------------- | +| apierrors.ErrorResponse | 404, 422 | application/json | +| apierrors.APIError | 4XX, 5XX | \*/\* | + +## List + +Search for [agents](https://developers.glean.com/agents/agents-api) by agent name. + +### Example Usage + + +```go +package main + +import( + "context" + "os" + apiclientgo "github.com/gleanwork/api-client-go" + "github.com/gleanwork/api-client-go/models/components" + "log" +) + +func main() { + ctx := context.Background() + + s := apiclientgo.New( + apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), + ) + + res, err := s.Client.Agents.List(ctx, components.SearchAgentsRequest{ + Name: apiclientgo.Pointer("HR Policy Agent"), + }) + if err != nil { + log.Fatal(err) + } + if res.SearchAgentsResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [components.SearchAgentsRequest](../../models/components/searchagentsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | + +### Response + +**[*operations.SearchAgentsResponse](../../models/operations/searchagentsresponse.md), error** + +### Errors + +| Error Type | Status Code | Content Type | +| ----------------------- | ----------------------- | ----------------------- | +| apierrors.ErrorResponse | 404, 422 | application/json | +| apierrors.APIError | 4XX, 5XX | \*/\* | + +## RunStream + +Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the result as a stream of server-sent events (SSE). **Note**: If the agent uses an input form trigger, all form fields (including optional fields) must be included in the `input` object. + +### Example Usage + + +```go +package main + +import( + "context" + "os" + apiclientgo "github.com/gleanwork/api-client-go" + "github.com/gleanwork/api-client-go/models/components" + "log" +) + +func main() { + ctx := context.Background() + + s := apiclientgo.New( + apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), + ) + + res, err := s.Client.Agents.RunStream(ctx, components.AgentRunCreate{ + AgentID: "", + Messages: []components.Message{ + components.Message{ + Role: apiclientgo.Pointer("USER"), + }, + }, + }) + if err != nil { + log.Fatal(err) + } + if res.Res != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [components.AgentRunCreate](../../models/components/agentruncreate.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | + +### Response + +**[*operations.CreateAndStreamRunResponse](../../models/operations/createandstreamrunresponse.md), error** + +### Errors + +| Error Type | Status Code | Content Type | +| ----------------------- | ----------------------- | ----------------------- | +| apierrors.ErrorResponse | 404, 409, 422 | application/json | +| apierrors.APIError | 4XX, 5XX | \*/\* | + +## Run + +Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the final response. **Note**: If the agent uses an input form trigger, all form fields (including optional fields) must be included in the `input` object. + +### Example Usage + + +```go +package main + +import( + "context" + "os" + apiclientgo "github.com/gleanwork/api-client-go" + "github.com/gleanwork/api-client-go/models/components" + "log" +) + +func main() { + ctx := context.Background() + + s := apiclientgo.New( + apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), + ) + + res, err := s.Client.Agents.Run(ctx, components.AgentRunCreate{ + AgentID: "", + Messages: []components.Message{ + components.Message{ + Role: apiclientgo.Pointer("USER"), + }, + }, + }) + if err != nil { + log.Fatal(err) + } + if res.AgentRunWaitResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [components.AgentRunCreate](../../models/components/agentruncreate.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | + +### Response + +**[*operations.CreateAndWaitRunResponse](../../models/operations/createandwaitrunresponse.md), error** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------ | ------------------ | ------------------ | +| apierrors.APIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/clientchat/README.md b/docs/sdks/clientchat/README.md new file mode 100644 index 00000000..51f25cab --- /dev/null +++ b/docs/sdks/clientchat/README.md @@ -0,0 +1,53342 @@ +# Client.Chat + +## Overview + +### Available Operations + +* [Create](#create) - Chat +* [DeleteAll](#deleteall) - Deletes all saved Chats owned by a user +* [Delete](#delete) - Deletes saved Chats +* [Retrieve](#retrieve) - Retrieves a Chat +* [List](#list) - Retrieves all saved Chats +* [RetrieveApplication](#retrieveapplication) - Gets the metadata for a custom Chat application +* [UploadFiles](#uploadfiles) - Upload files for Chat +* [RetrieveFiles](#retrievefiles) - Get files uploaded by a user for Chat +* [DeleteFiles](#deletefiles) - Delete files uploaded by a user for chat +* [CreateStream](#createstream) - Chat + +## Create + +Have a conversation with Glean AI. + +### Example Usage: citationResponse + + +```go +package main + +import( + "context" + "os" + apiclientgo "github.com/gleanwork/api-client-go" + "github.com/gleanwork/api-client-go/types" + "github.com/gleanwork/api-client-go/models/components" + "log" +) + +func main() { + ctx := context.Background() + + s := apiclientgo.New( + apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), + ) + + res, err := s.Client.Chat.Create(ctx, components.ChatRequest{ + Messages: []components.ChatMessage{ + components.ChatMessage{ + Citations: []components.ChatMessageCitation{ + components.ChatMessageCitation{ + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + SourceFile: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + SourcePerson: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + ReferenceRanges: []components.ReferenceRange{ + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.ChatMessageCitation{ + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + SourceFile: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + SourcePerson: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + ReferenceRanges: []components.ReferenceRange{ + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.ChatMessageCitation{ + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + SourceFile: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + SourcePerson: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + ReferenceRanges: []components.ReferenceRange{ + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + Fragments: []components.ChatMessageFragment{ + components.ChatMessageFragment{ + StructuredResults: []components.StructuredResult{ + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + }, + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + File: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + Action: &components.ToolInfo{ + Metadata: &components.ToolMetadata{ + Type: components.ToolMetadataTypeRetrieval, + Name: "", + DisplayName: "Avis_Gislason87", + DisplayDescription: "", + ObjectName: apiclientgo.Pointer("[\"HR ticket\",\"Email\",\"Chat message\"]"), + }, + }, + }, + components.ChatMessageFragment{ + StructuredResults: []components.StructuredResult{ + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + }, + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + File: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + Action: &components.ToolInfo{ + Metadata: &components.ToolMetadata{ + Type: components.ToolMetadataTypeRetrieval, + Name: "", + DisplayName: "Avis_Gislason87", + DisplayDescription: "", + ObjectName: apiclientgo.Pointer("[\"HR ticket\",\"Email\",\"Chat message\"]"), + }, + }, + }, + }, + }, + components.ChatMessage{ + Citations: []components.ChatMessageCitation{ + components.ChatMessageCitation{ + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + SourceFile: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + SourcePerson: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + ReferenceRanges: []components.ReferenceRange{ + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.ChatMessageCitation{ + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + SourceFile: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + SourcePerson: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + ReferenceRanges: []components.ReferenceRange{ + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.ChatMessageCitation{ + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + SourceFile: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + SourcePerson: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + ReferenceRanges: []components.ReferenceRange{ + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + Fragments: []components.ChatMessageFragment{ + components.ChatMessageFragment{ + StructuredResults: []components.StructuredResult{ + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + }, + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + File: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + Action: &components.ToolInfo{ + Metadata: &components.ToolMetadata{ + Type: components.ToolMetadataTypeRetrieval, + Name: "", + DisplayName: "Avis_Gislason87", + DisplayDescription: "", + ObjectName: apiclientgo.Pointer("[\"HR ticket\",\"Email\",\"Chat message\"]"), + }, + }, + }, + components.ChatMessageFragment{ + StructuredResults: []components.StructuredResult{ + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + }, + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + File: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + Action: &components.ToolInfo{ + Metadata: &components.ToolMetadata{ + Type: components.ToolMetadataTypeRetrieval, + Name: "", + DisplayName: "Avis_Gislason87", + DisplayDescription: "", + ObjectName: apiclientgo.Pointer("[\"HR ticket\",\"Email\",\"Chat message\"]"), + }, + }, + }, + }, + }, + components.ChatMessage{ + Citations: []components.ChatMessageCitation{ + components.ChatMessageCitation{ + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + SourceFile: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + SourcePerson: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + ReferenceRanges: []components.ReferenceRange{ + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.ChatMessageCitation{ + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + SourceFile: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + SourcePerson: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + ReferenceRanges: []components.ReferenceRange{ + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.ChatMessageCitation{ + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + SourceFile: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + SourcePerson: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + ReferenceRanges: []components.ReferenceRange{ + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + Fragments: []components.ChatMessageFragment{ + components.ChatMessageFragment{ + StructuredResults: []components.StructuredResult{ + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + }, + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + File: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + Action: &components.ToolInfo{ + Metadata: &components.ToolMetadata{ + Type: components.ToolMetadataTypeRetrieval, + Name: "", + DisplayName: "Avis_Gislason87", + DisplayDescription: "", + ObjectName: apiclientgo.Pointer("[\"HR ticket\",\"Email\",\"Chat message\"]"), + }, + }, + }, + components.ChatMessageFragment{ + StructuredResults: []components.StructuredResult{ + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + }, + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + File: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + Action: &components.ToolInfo{ + Metadata: &components.ToolMetadata{ + Type: components.ToolMetadataTypeRetrieval, + Name: "", + DisplayName: "Avis_Gislason87", + DisplayDescription: "", + ObjectName: apiclientgo.Pointer("[\"HR ticket\",\"Email\",\"Chat message\"]"), + }, + }, + }, + }, + }, + }, + TimeoutMillis: apiclientgo.Pointer[int64](30000), + }, nil, nil) + if err != nil { + log.Fatal(err) + } + if res.ChatResponse != nil { + // handle response + } +} +``` +### Example Usage: defaultExample + + +```go +package main + +import( + "context" + "os" + apiclientgo "github.com/gleanwork/api-client-go" + "github.com/gleanwork/api-client-go/models/components" + "log" +) + +func main() { + ctx := context.Background() + + s := apiclientgo.New( + apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), + ) + + res, err := s.Client.Chat.Create(ctx, components.ChatRequest{ + Messages: []components.ChatMessage{ + components.ChatMessage{ + Fragments: []components.ChatMessageFragment{ + components.ChatMessageFragment{ + Text: apiclientgo.Pointer("What are the company holidays this year?"), + }, + }, + }, + }, + }, nil, nil) + if err != nil { + log.Fatal(err) + } + if res.ChatResponse != nil { + // handle response + } +} +``` +### Example Usage: gptAgentExample + + +```go +package main + +import( + "context" + "os" + apiclientgo "github.com/gleanwork/api-client-go" + "github.com/gleanwork/api-client-go/models/components" + "log" +) + +func main() { + ctx := context.Background() + + s := apiclientgo.New( + apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), + ) + + res, err := s.Client.Chat.Create(ctx, components.ChatRequest{ + Messages: []components.ChatMessage{ + components.ChatMessage{ + Fragments: []components.ChatMessageFragment{ + components.ChatMessageFragment{ + Text: apiclientgo.Pointer("Who was the first person to land on the moon?"), + }, + }, + }, + }, + AgentConfig: &components.AgentConfig{ + Agent: components.AgentEnumGpt.ToPointer(), + }, + }, nil, nil) + if err != nil { + log.Fatal(err) + } + if res.ChatResponse != nil { + // handle response + } +} +``` +### Example Usage: streamingExample + + +```go +package main + +import( + "context" + "os" + apiclientgo "github.com/gleanwork/api-client-go" + "github.com/gleanwork/api-client-go/types" + "github.com/gleanwork/api-client-go/models/components" + "log" +) + +func main() { + ctx := context.Background() + + s := apiclientgo.New( + apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), + ) + + res, err := s.Client.Chat.Create(ctx, components.ChatRequest{ + Messages: []components.ChatMessage{ + components.ChatMessage{ + Citations: []components.ChatMessageCitation{ + components.ChatMessageCitation{ + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + SourceFile: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + SourcePerson: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + ReferenceRanges: []components.ReferenceRange{ + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.ChatMessageCitation{ + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + SourceFile: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + SourcePerson: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + ReferenceRanges: []components.ReferenceRange{ + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.ChatMessageCitation{ + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + SourceFile: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + SourcePerson: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + ReferenceRanges: []components.ReferenceRange{ + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + Fragments: []components.ChatMessageFragment{ + components.ChatMessageFragment{ + StructuredResults: []components.StructuredResult{ + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + }, + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + File: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + Action: &components.ToolInfo{ + Metadata: &components.ToolMetadata{ + Type: components.ToolMetadataTypeRetrieval, + Name: "", + DisplayName: "Avis_Gislason87", + DisplayDescription: "", + ObjectName: apiclientgo.Pointer("[\"HR ticket\",\"Email\",\"Chat message\"]"), + }, + }, + }, + components.ChatMessageFragment{ + StructuredResults: []components.StructuredResult{ + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + }, + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + File: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + Action: &components.ToolInfo{ + Metadata: &components.ToolMetadata{ + Type: components.ToolMetadataTypeRetrieval, + Name: "", + DisplayName: "Avis_Gislason87", + DisplayDescription: "", + ObjectName: apiclientgo.Pointer("[\"HR ticket\",\"Email\",\"Chat message\"]"), + }, + }, + }, + }, + }, + components.ChatMessage{ + Citations: []components.ChatMessageCitation{ + components.ChatMessageCitation{ + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + SourceFile: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + SourcePerson: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + ReferenceRanges: []components.ReferenceRange{ + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.ChatMessageCitation{ + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + SourceFile: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + SourcePerson: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + ReferenceRanges: []components.ReferenceRange{ + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.ChatMessageCitation{ + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + SourceFile: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + SourcePerson: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + ReferenceRanges: []components.ReferenceRange{ + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + Fragments: []components.ChatMessageFragment{ + components.ChatMessageFragment{ + StructuredResults: []components.StructuredResult{ + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + }, + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + File: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + Action: &components.ToolInfo{ + Metadata: &components.ToolMetadata{ + Type: components.ToolMetadataTypeRetrieval, + Name: "", + DisplayName: "Avis_Gislason87", + DisplayDescription: "", + ObjectName: apiclientgo.Pointer("[\"HR ticket\",\"Email\",\"Chat message\"]"), + }, + }, + }, + components.ChatMessageFragment{ + StructuredResults: []components.StructuredResult{ + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + }, + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + File: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + Action: &components.ToolInfo{ + Metadata: &components.ToolMetadata{ + Type: components.ToolMetadataTypeRetrieval, + Name: "", + DisplayName: "Avis_Gislason87", + DisplayDescription: "", + ObjectName: apiclientgo.Pointer("[\"HR ticket\",\"Email\",\"Chat message\"]"), + }, + }, + }, + }, + }, + components.ChatMessage{ + Citations: []components.ChatMessageCitation{ + components.ChatMessageCitation{ + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + SourceFile: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + SourcePerson: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + ReferenceRanges: []components.ReferenceRange{ + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.ChatMessageCitation{ + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + SourceFile: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + SourcePerson: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + ReferenceRanges: []components.ReferenceRange{ + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.ChatMessageCitation{ + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + SourceFile: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + SourcePerson: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + ReferenceRanges: []components.ReferenceRange{ + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + Fragments: []components.ChatMessageFragment{ + components.ChatMessageFragment{ + StructuredResults: []components.StructuredResult{ + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + }, + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + File: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + Action: &components.ToolInfo{ + Metadata: &components.ToolMetadata{ + Type: components.ToolMetadataTypeRetrieval, + Name: "", + DisplayName: "Avis_Gislason87", + DisplayDescription: "", + ObjectName: apiclientgo.Pointer("[\"HR ticket\",\"Email\",\"Chat message\"]"), + }, + }, + }, + components.ChatMessageFragment{ + StructuredResults: []components.StructuredResult{ + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + }, + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + File: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + Action: &components.ToolInfo{ + Metadata: &components.ToolMetadata{ + Type: components.ToolMetadataTypeRetrieval, + Name: "", + DisplayName: "Avis_Gislason87", + DisplayDescription: "", + ObjectName: apiclientgo.Pointer("[\"HR ticket\",\"Email\",\"Chat message\"]"), + }, + }, + }, + }, + }, + }, + TimeoutMillis: apiclientgo.Pointer[int64](30000), + }, nil, nil) + if err != nil { + log.Fatal(err) + } + if res.ChatResponse != nil { + // handle response + } +} +``` +### Example Usage: updateResponse + + +```go +package main + +import( + "context" + "os" + apiclientgo "github.com/gleanwork/api-client-go" + "github.com/gleanwork/api-client-go/types" + "github.com/gleanwork/api-client-go/models/components" + "log" +) + +func main() { + ctx := context.Background() + + s := apiclientgo.New( + apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), + ) + + res, err := s.Client.Chat.Create(ctx, components.ChatRequest{ + Messages: []components.ChatMessage{ + components.ChatMessage{ + Citations: []components.ChatMessageCitation{ + components.ChatMessageCitation{ + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + SourceFile: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + SourcePerson: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + ReferenceRanges: []components.ReferenceRange{ + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.ChatMessageCitation{ + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + SourceFile: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + SourcePerson: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + ReferenceRanges: []components.ReferenceRange{ + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.ChatMessageCitation{ + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + SourceFile: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + SourcePerson: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + ReferenceRanges: []components.ReferenceRange{ + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + Fragments: []components.ChatMessageFragment{ + components.ChatMessageFragment{ + StructuredResults: []components.StructuredResult{ + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + }, + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + File: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + Action: &components.ToolInfo{ + Metadata: &components.ToolMetadata{ + Type: components.ToolMetadataTypeRetrieval, + Name: "", + DisplayName: "Avis_Gislason87", + DisplayDescription: "", + ObjectName: apiclientgo.Pointer("[\"HR ticket\",\"Email\",\"Chat message\"]"), + }, + }, + }, + components.ChatMessageFragment{ + StructuredResults: []components.StructuredResult{ + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + }, + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + File: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + Action: &components.ToolInfo{ + Metadata: &components.ToolMetadata{ + Type: components.ToolMetadataTypeRetrieval, + Name: "", + DisplayName: "Avis_Gislason87", + DisplayDescription: "", + ObjectName: apiclientgo.Pointer("[\"HR ticket\",\"Email\",\"Chat message\"]"), + }, + }, + }, + }, + }, + components.ChatMessage{ + Citations: []components.ChatMessageCitation{ + components.ChatMessageCitation{ + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + SourceFile: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + SourcePerson: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + ReferenceRanges: []components.ReferenceRange{ + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.ChatMessageCitation{ + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + SourceFile: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + SourcePerson: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + ReferenceRanges: []components.ReferenceRange{ + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.ChatMessageCitation{ + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + SourceFile: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + SourcePerson: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + ReferenceRanges: []components.ReferenceRange{ + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + Fragments: []components.ChatMessageFragment{ + components.ChatMessageFragment{ + StructuredResults: []components.StructuredResult{ + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + }, + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + File: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + Action: &components.ToolInfo{ + Metadata: &components.ToolMetadata{ + Type: components.ToolMetadataTypeRetrieval, + Name: "", + DisplayName: "Avis_Gislason87", + DisplayDescription: "", + ObjectName: apiclientgo.Pointer("[\"HR ticket\",\"Email\",\"Chat message\"]"), + }, + }, + }, + components.ChatMessageFragment{ + StructuredResults: []components.StructuredResult{ + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + }, + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + File: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + Action: &components.ToolInfo{ + Metadata: &components.ToolMetadata{ + Type: components.ToolMetadataTypeRetrieval, + Name: "", + DisplayName: "Avis_Gislason87", + DisplayDescription: "", + ObjectName: apiclientgo.Pointer("[\"HR ticket\",\"Email\",\"Chat message\"]"), + }, + }, + }, + }, + }, + components.ChatMessage{ + Citations: []components.ChatMessageCitation{ + components.ChatMessageCitation{ + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + SourceFile: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + SourcePerson: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + ReferenceRanges: []components.ReferenceRange{ + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.ChatMessageCitation{ + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + SourceFile: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + SourcePerson: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + ReferenceRanges: []components.ReferenceRange{ + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.ChatMessageCitation{ + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + SourceFile: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + SourcePerson: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + ReferenceRanges: []components.ReferenceRange{ + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + components.ReferenceRange{ + TextRange: &components.TextRange{ + StartIndex: 260313, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + Fragments: []components.ChatMessageFragment{ + components.ChatMessageFragment{ + StructuredResults: []components.StructuredResult{ + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + }, + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + File: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + Action: &components.ToolInfo{ + Metadata: &components.ToolMetadata{ + Type: components.ToolMetadataTypeRetrieval, + Name: "", + DisplayName: "Avis_Gislason87", + DisplayDescription: "", + ObjectName: apiclientgo.Pointer("[\"HR ticket\",\"Email\",\"Chat message\"]"), + }, + }, + }, + components.ChatMessageFragment{ + StructuredResults: []components.StructuredResult{ + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + components.StructuredResult{ + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Customer: &components.Customer{ + ID: "", + Company: components.Company{ + Name: "", + Location: apiclientgo.Pointer("New York City"), + Industry: apiclientgo.Pointer("Finances"), + About: apiclientgo.Pointer("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), + }, + Poc: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Notes: apiclientgo.Pointer("CIO is interested in trying out the product."), + }, + Team: &components.Team{ + ID: "", + Name: "", + Members: []components.PersonToTeamRelationship{ + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.PersonToTeamRelationship{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + CustomFields: []components.CustomFieldData{ + components.CustomFieldData{ + Label: "", + Values: []components.CustomFieldValue{ + components.CreateCustomFieldValueCustomFieldValueStr( + components.CustomFieldValueStr{}, + ), + }, + }, + }, + DatasourceProfiles: []components.DatasourceProfile{ + components.DatasourceProfile{ + Datasource: "github", + Handle: "", + }, + }, + }, + CustomEntity: &components.CustomEntity{ + Roles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleAnswerModerator, + }, + }, + }, + Answer: &components.Answer{ + ID: 3, + DocID: apiclientgo.Pointer("ANSWERS_answer_3"), + Question: apiclientgo.Pointer("Why is the sky blue?"), + BodyText: apiclientgo.Pointer("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."), + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + AddedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleEditor, + }, + }, + RemovedRoles: []components.UserRoleSpecification{ + components.UserRoleSpecification{ + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Role: components.UserRoleOwner, + }, + }, + CombinedAnswerText: &components.StructuredText{ + Text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", + StructuredList: []components.StructuredTextItem{ + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + components.StructuredTextItem{ + Link: apiclientgo.Pointer("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Text: apiclientgo.Pointer("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), + }, + }, + }, + Likes: &components.AnswerLikes{ + LikedBy: []components.AnswerLike{ + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + components.AnswerLike{ + User: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + LikedByUser: true, + NumLikes: 412487, + }, + Author: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Verification: &components.Verification{ + State: components.StateVerified, + Metadata: &components.VerificationMetadata{ + LastVerifier: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Reminders: []components.Reminder{ + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 587641, + }, + }, + LastReminder: &components.Reminder{ + Assignee: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Requestor: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + RemindAt: 633695, + }, + CandidateVerifiers: []components.Person{ + components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + Collections: []components.Collection{ + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + components.Collection{ + Name: "", + Description: "vicinity officially eek fondly hmph clinking um ah circa well-groomed", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 345790, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Items: []components.CollectionItem{ + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + components.CollectionItem{ + CollectionID: 765696, + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ItemType: components.CollectionItemItemTypeURL, + }, + }, + }, + }, + SourceDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + ExtractedQnA: &components.ExtractedQnA{ + QuestionResult: &components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + Meeting: &components.Meeting{ + Attendees: &components.CalendarAttendees{ + People: []components.CalendarAttendee{ + components.CalendarAttendee{ + Person: components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + }, + }, + }, + Collection: &components.Collection{ + Name: "", + Description: "governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey", + AudienceFilters: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + ID: 444084, + Creator: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + Code: &components.Code{ + RepoName: apiclientgo.Pointer("scio"), + FileName: apiclientgo.Pointer("README.md"), + }, + Shortcut: &components.Shortcut{ + InputAlias: "", + CreatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + UpdatedBy: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + DestinationDocument: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + QuerySuggestions: &components.QuerySuggestionList{ + Suggestions: []components.QuerySuggestion{ + components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + }, + Person: &components.Person{ + Name: "George Clooney", + ObfuscatedID: "abc123", + }, + }, + RelatedDocuments: []components.RelatedDocuments{ + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + components.RelatedDocuments{ + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + Results: []components.SearchResult{ + components.SearchResult{ + Title: apiclientgo.Pointer("title"), + URL: "https://example.com/foo/bar", + NativeAppURL: apiclientgo.Pointer("slack://foo/bar"), + Snippets: []components.SearchResultSnippet{ + components.SearchResultSnippet{ + MimeType: apiclientgo.Pointer("mimeType"), + Snippet: apiclientgo.Pointer("snippet"), + }, + }, + }, + }, + }, + }, + RelatedQuestion: &components.RelatedQuestion{ + Ranges: []components.TextRange{ + components.TextRange{ + StartIndex: 367849, + Document: &components.Document{ + Metadata: &components.DocumentMetadata{ + Datasource: apiclientgo.Pointer("datasource"), + ObjectType: apiclientgo.Pointer("Feature Request"), + Container: apiclientgo.Pointer("container"), + ParentID: apiclientgo.Pointer("JIRA_EN-1337"), + MimeType: apiclientgo.Pointer("mimeType"), + DocumentID: apiclientgo.Pointer("documentId"), + CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), + Author: &components.Person{ + Name: "name", + ObfuscatedID: "", + }, + Components: []string{ + "Backend", + "Networking", + }, + Status: apiclientgo.Pointer("[\"Done\"]"), + CustomData: map[string]components.CustomDataValue{ + "someCustomField": components.CustomDataValue{}, + }, + }, + }, + }, + }, + }, + }, + }, + QuerySuggestion: &components.QuerySuggestion{ + Query: "app:github type:pull author:mortimer", + Label: apiclientgo.Pointer("Mortimer's PRs"), + Datasource: apiclientgo.Pointer("github"), + }, + File: &components.ChatFile{ + ID: apiclientgo.Pointer("FILE_1234"), + URL: apiclientgo.Pointer("www.google.com"), + Name: apiclientgo.Pointer("sample.pdf"), + }, + Action: &components.ToolInfo{ + Metadata: &components.ToolMetadata{ + Type: components.ToolMetadataTypeRetrieval, + Name: "", + DisplayName: "Avis_Gislason87", + DisplayDescription: "", + ObjectName: apiclientgo.Pointer("[\"HR ticket\",\"Email\",\"Chat message\"]"), + }, + }, + }, + }, + }, + }, + TimeoutMillis: apiclientgo.Pointer[int64](30000), + }, nil, nil) + if err != nil { + log.Fatal(err) + } + if res.ChatResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `chatRequest` | [components.ChatRequest](../../models/components/chatrequest.md) | :heavy_check_mark: | Includes chat history for Glean AI to respond to. | +| `locale` | `*string` | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | `*int64` | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | + +### Response + +**[*operations.ChatResponse](../../models/operations/chatresponse.md), error** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------ | ------------------ | ------------------ | +| apierrors.APIError | 4XX, 5XX | \*/\* | + +## DeleteAll + +Deletes all saved Chats a user has had and all their contained conversational content. + +### Example Usage + + +```go +package main + +import( + "context" + "os" + apiclientgo "github.com/gleanwork/api-client-go" + "log" +) + +func main() { + ctx := context.Background() + + s := apiclientgo.New( + apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), + ) + + res, err := s.Client.Chat.DeleteAll(ctx, nil, nil) + if err != nil { + log.Fatal(err) + } + if res != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `locale` | `*string` | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | `*int64` | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | + +### Response + +**[*operations.DeleteallchatsResponse](../../models/operations/deleteallchatsresponse.md), error** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------ | ------------------ | ------------------ | +| apierrors.APIError | 4XX, 5XX | \*/\* | + +## Delete + +Deletes saved Chats and all their contained conversational content. + +### Example Usage + + +```go +package main + +import( + "context" + "os" + apiclientgo "github.com/gleanwork/api-client-go" + "github.com/gleanwork/api-client-go/models/components" + "log" +) + +func main() { + ctx := context.Background() + + s := apiclientgo.New( + apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), + ) + + res, err := s.Client.Chat.Delete(ctx, components.DeleteChatsRequest{ + Ids: []string{}, + }, nil, nil) + if err != nil { + log.Fatal(err) + } + if res != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `deleteChatsRequest` | [components.DeleteChatsRequest](../../models/components/deletechatsrequest.md) | :heavy_check_mark: | N/A | +| `locale` | `*string` | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | `*int64` | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | + +### Response + +**[*operations.DeletechatsResponse](../../models/operations/deletechatsresponse.md), error** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------ | ------------------ | ------------------ | +| apierrors.APIError | 4XX, 5XX | \*/\* | + +## Retrieve + +Retrieves the chat history between Glean Assistant and the user for a given Chat. + +### Example Usage + + +```go +package main + +import( + "context" + "os" + apiclientgo "github.com/gleanwork/api-client-go" + "github.com/gleanwork/api-client-go/models/components" + "log" +) + +func main() { + ctx := context.Background() + + s := apiclientgo.New( + apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), + ) + + res, err := s.Client.Chat.Retrieve(ctx, components.GetChatRequest{ + ID: "", + }, nil, nil) + if err != nil { + log.Fatal(err) + } + if res.GetChatResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `getChatRequest` | [components.GetChatRequest](../../models/components/getchatrequest.md) | :heavy_check_mark: | N/A | +| `locale` | `*string` | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | `*int64` | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | + +### Response + +**[*operations.GetchatResponse](../../models/operations/getchatresponse.md), error** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------ | ------------------ | ------------------ | +| apierrors.APIError | 4XX, 5XX | \*/\* | + +## List + +Retrieves all the saved Chats between Glean Assistant and the user. The returned Chats contain only metadata and no conversational content. + +### Example Usage + + +```go +package main + +import( + "context" + "os" + apiclientgo "github.com/gleanwork/api-client-go" + "log" +) + +func main() { + ctx := context.Background() + + s := apiclientgo.New( + apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), + ) + + res, err := s.Client.Chat.List(ctx, nil, nil) + if err != nil { + log.Fatal(err) + } + if res.ListChatsResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `locale` | `*string` | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | `*int64` | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | + +### Response + +**[*operations.ListchatsResponse](../../models/operations/listchatsresponse.md), error** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------ | ------------------ | ------------------ | +| apierrors.APIError | 4XX, 5XX | \*/\* | + +## RetrieveApplication + +Gets the Chat application details for the specified application ID. + +### Example Usage + + +```go +package main + +import( + "context" + "os" + apiclientgo "github.com/gleanwork/api-client-go" + "github.com/gleanwork/api-client-go/models/components" + "log" +) + +func main() { + ctx := context.Background() + + s := apiclientgo.New( + apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), + ) + + res, err := s.Client.Chat.RetrieveApplication(ctx, components.GetChatApplicationRequest{ + ID: "", + }, nil, nil) + if err != nil { + log.Fatal(err) + } + if res.GetChatApplicationResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `getChatApplicationRequest` | [components.GetChatApplicationRequest](../../models/components/getchatapplicationrequest.md) | :heavy_check_mark: | N/A | +| `locale` | `*string` | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | `*int64` | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | + +### Response + +**[*operations.GetchatapplicationResponse](../../models/operations/getchatapplicationresponse.md), error** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------ | ------------------ | ------------------ | +| apierrors.APIError | 4XX, 5XX | \*/\* | + +## UploadFiles + +Upload files for Chat. + +### Example Usage + + +```go +package main + +import( + "context" + "os" + apiclientgo "github.com/gleanwork/api-client-go" + "github.com/gleanwork/api-client-go/models/components" + "log" +) + +func main() { + ctx := context.Background() + + s := apiclientgo.New( + apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), + ) + + example, fileErr := os.Open("example.file") + if fileErr != nil { + panic(fileErr) + } + + res, err := s.Client.Chat.UploadFiles(ctx, components.UploadChatFilesRequest{ + Files: []components.File{ + components.File{ + FileName: "example.file", + Content: example, + }, + }, + }, nil, nil) + if err != nil { + log.Fatal(err) + } + if res.UploadChatFilesResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `uploadChatFilesRequest` | [components.UploadChatFilesRequest](../../models/components/uploadchatfilesrequest.md) | :heavy_check_mark: | N/A | +| `locale` | `*string` | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | `*int64` | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | + +### Response + +**[*operations.UploadchatfilesResponse](../../models/operations/uploadchatfilesresponse.md), error** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------ | ------------------ | ------------------ | +| apierrors.APIError | 4XX, 5XX | \*/\* | + +## RetrieveFiles + +Get files uploaded by a user for Chat. + +### Example Usage + + +```go +package main + +import( + "context" + "os" + apiclientgo "github.com/gleanwork/api-client-go" + "github.com/gleanwork/api-client-go/models/components" + "log" +) + +func main() { + ctx := context.Background() + + s := apiclientgo.New( + apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), + ) + + res, err := s.Client.Chat.RetrieveFiles(ctx, components.GetChatFilesRequest{ + FileIds: []string{ + "", + }, + }, nil, nil) + if err != nil { + log.Fatal(err) + } + if res.GetChatFilesResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `getChatFilesRequest` | [components.GetChatFilesRequest](../../models/components/getchatfilesrequest.md) | :heavy_check_mark: | N/A | +| `locale` | `*string` | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | `*int64` | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | + +### Response + +**[*operations.GetchatfilesResponse](../../models/operations/getchatfilesresponse.md), error** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------ | ------------------ | ------------------ | +| apierrors.APIError | 4XX, 5XX | \*/\* | + +## DeleteFiles + +Delete files uploaded by a user for Chat. + +### Example Usage + + +```go +package main + +import( + "context" + "os" + apiclientgo "github.com/gleanwork/api-client-go" + "github.com/gleanwork/api-client-go/models/components" + "log" +) + +func main() { + ctx := context.Background() + + s := apiclientgo.New( + apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), + ) + + res, err := s.Client.Chat.DeleteFiles(ctx, components.DeleteChatFilesRequest{ + FileIds: []string{ + "", + "", + "", + }, + }, nil, nil) + if err != nil { + log.Fatal(err) + } + if res != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `deleteChatFilesRequest` | [components.DeleteChatFilesRequest](../../models/components/deletechatfilesrequest.md) | :heavy_check_mark: | N/A | +| `locale` | `*string` | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | `*int64` | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | + +### Response + +**[*operations.DeletechatfilesResponse](../../models/operations/deletechatfilesresponse.md), error** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------ | ------------------ | ------------------ | +| apierrors.APIError | 4XX, 5XX | \*/\* | + +## CreateStream + +Have a conversation with Glean AI. + +### Example Usage: citationResponse + + +```go +package main + +import( + "context" + "os" + apiclientgo "github.com/gleanwork/api-client-go" + "github.com/gleanwork/api-client-go/models/components" + "log" +) + +func main() { + ctx := context.Background() + + s := apiclientgo.New( + apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), + ) + + res, err := s.Client.Chat.CreateStream(ctx, components.ChatRequest{ + Messages: []components.ChatMessage{}, + TimeoutMillis: apiclientgo.Pointer[int64](30000), + }, nil) + if err != nil { + log.Fatal(err) + } + if res.ChatRequestStream != nil { + // handle response + } +} +``` +### Example Usage: defaultExample + + +```go +package main + +import( + "context" + "os" + apiclientgo "github.com/gleanwork/api-client-go" + "github.com/gleanwork/api-client-go/models/components" + "log" +) + +func main() { + ctx := context.Background() + + s := apiclientgo.New( + apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), + ) + + res, err := s.Client.Chat.CreateStream(ctx, components.ChatRequest{ + Messages: []components.ChatMessage{ + components.ChatMessage{ + Fragments: []components.ChatMessageFragment{ + components.ChatMessageFragment{ + Text: apiclientgo.Pointer("What are the company holidays this year?"), + }, + }, + }, + }, + }, nil) + if err != nil { + log.Fatal(err) + } + if res.ChatRequestStream != nil { + // handle response + } +} +``` +### Example Usage: gptAgentExample + + +```go +package main + +import( + "context" + "os" + apiclientgo "github.com/gleanwork/api-client-go" + "github.com/gleanwork/api-client-go/models/components" + "log" +) + +func main() { + ctx := context.Background() + + s := apiclientgo.New( + apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), + ) + + res, err := s.Client.Chat.CreateStream(ctx, components.ChatRequest{ + Messages: []components.ChatMessage{ + components.ChatMessage{ + Fragments: []components.ChatMessageFragment{ + components.ChatMessageFragment{ + Text: apiclientgo.Pointer("Who was the first person to land on the moon?"), + }, + }, + }, + }, + AgentConfig: &components.AgentConfig{ + Agent: components.AgentEnumGpt.ToPointer(), + }, + }, nil) + if err != nil { + log.Fatal(err) + } + if res.ChatRequestStream != nil { + // handle response + } +} +``` +### Example Usage: streamingExample + + +```go +package main + +import( + "context" + "os" + apiclientgo "github.com/gleanwork/api-client-go" + "github.com/gleanwork/api-client-go/models/components" + "log" +) + +func main() { + ctx := context.Background() + + s := apiclientgo.New( + apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), + ) + + res, err := s.Client.Chat.CreateStream(ctx, components.ChatRequest{ + Messages: []components.ChatMessage{}, + TimeoutMillis: apiclientgo.Pointer[int64](30000), + }, nil) + if err != nil { + log.Fatal(err) + } + if res.ChatRequestStream != nil { + // handle response + } +} +``` +### Example Usage: updateResponse + + +```go +package main + +import( + "context" + "os" + apiclientgo "github.com/gleanwork/api-client-go" + "github.com/gleanwork/api-client-go/models/components" + "log" +) + +func main() { + ctx := context.Background() + + s := apiclientgo.New( + apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), + ) + + res, err := s.Client.Chat.CreateStream(ctx, components.ChatRequest{ + Messages: []components.ChatMessage{}, + TimeoutMillis: apiclientgo.Pointer[int64](30000), + }, nil) + if err != nil { + log.Fatal(err) + } + if res.ChatRequestStream != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `chatRequest` | [components.ChatRequest](../../models/components/chatrequest.md) | :heavy_check_mark: | Includes chat history for Glean AI to respond to. | +| `timezoneOffset` | `*int64` | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | + +### Response + +**[*operations.ChatStreamResponse](../../models/operations/chatstreamresponse.md), error** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------ | ------------------ | ------------------ | +| apierrors.APIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/cliententities/README.md b/docs/sdks/cliententities/README.md new file mode 100644 index 00000000..822790f6 --- /dev/null +++ b/docs/sdks/cliententities/README.md @@ -0,0 +1,138 @@ +# Client.Entities + +## Overview + +### Available Operations + +* [List](#list) - List entities +* [ReadPeople](#readpeople) - Read people + +## List + +List some set of details for all entities that fit the given criteria and return in the requested order. Does not support negation in filters, assumes relation type EQUALS. There is a limit of 10000 entities that can be retrieved via this endpoint, except when using FULL_DIRECTORY request type for people entities. + +### Example Usage + + +```go +package main + +import( + "context" + "os" + apiclientgo "github.com/gleanwork/api-client-go" + "github.com/gleanwork/api-client-go/models/components" + "log" +) + +func main() { + ctx := context.Background() + + s := apiclientgo.New( + apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), + ) + + res, err := s.Client.Entities.List(ctx, components.ListEntitiesRequest{ + Filter: []components.FacetFilter{ + components.FacetFilter{ + FieldName: apiclientgo.Pointer("type"), + Values: []components.FacetFilterValue{ + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Spreadsheet"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + components.FacetFilterValue{ + Value: apiclientgo.Pointer("Presentation"), + RelationType: components.RelationTypeEquals.ToPointer(), + }, + }, + }, + }, + PageSize: apiclientgo.Pointer[int64](100), + }, nil) + if err != nil { + log.Fatal(err) + } + if res.ListEntitiesResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `listEntitiesRequest` | [components.ListEntitiesRequest](../../models/components/listentitiesrequest.md) | :heavy_check_mark: | List people request | +| `locale` | `*string` | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | + +### Response + +**[*operations.ListentitiesResponse](../../models/operations/listentitiesresponse.md), error** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------ | ------------------ | ------------------ | +| apierrors.APIError | 4XX, 5XX | \*/\* | + +## ReadPeople + +Read people details for the given IDs. + +### Example Usage + + +```go +package main + +import( + "context" + "os" + apiclientgo "github.com/gleanwork/api-client-go" + "github.com/gleanwork/api-client-go/models/components" + "log" +) + +func main() { + ctx := context.Background() + + s := apiclientgo.New( + apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), + ) + + res, err := s.Client.Entities.ReadPeople(ctx, components.PeopleRequest{ + ObfuscatedIds: []string{ + "abc123", + "abc456", + }, + }, nil) + if err != nil { + log.Fatal(err) + } + if res.PeopleResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | | +| `peopleRequest` | [components.PeopleRequest](../../models/components/peoplerequest.md) | :heavy_check_mark: | People request | {
"obfuscatedIds": [
"abc123",
"abc456"
]
} | +| `locale` | `*string` | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | | +| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | | + +### Response + +**[*operations.PeopleResponse](../../models/operations/peopleresponse.md), error** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------ | ------------------ | ------------------ | +| apierrors.APIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/clienttools/README.md b/docs/sdks/clienttools/README.md new file mode 100644 index 00000000..ed260d41 --- /dev/null +++ b/docs/sdks/clienttools/README.md @@ -0,0 +1,121 @@ +# Client.Tools + +## Overview + +### Available Operations + +* [List](#list) - List available tools +* [Run](#run) - Execute the specified tool + +## List + +Returns a filtered set of available tools based on optional tool name parameters. If no filters are provided, all available tools are returned. + +### Example Usage + + +```go +package main + +import( + "context" + "os" + apiclientgo "github.com/gleanwork/api-client-go" + "log" +) + +func main() { + ctx := context.Background() + + s := apiclientgo.New( + apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), + ) + + res, err := s.Client.Tools.List(ctx, nil) + if err != nil { + log.Fatal(err) + } + if res.ToolsListResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `toolNames` | []`string` | :heavy_minus_sign: | Optional array of tool names to filter by | +| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | + +### Response + +**[*operations.GetRestAPIV1ToolsListResponse](../../models/operations/getrestapiv1toolslistresponse.md), error** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------ | ------------------ | ------------------ | +| apierrors.APIError | 4XX, 5XX | \*/\* | + +## Run + +Execute the specified tool with provided parameters + +### Example Usage + + +```go +package main + +import( + "context" + "os" + apiclientgo "github.com/gleanwork/api-client-go" + "github.com/gleanwork/api-client-go/models/components" + "log" +) + +func main() { + ctx := context.Background() + + s := apiclientgo.New( + apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), + ) + + res, err := s.Client.Tools.Run(ctx, components.ToolsCallRequest{ + Name: "", + Parameters: map[string]components.ToolsCallParameter{ + "key": components.ToolsCallParameter{ + Name: "", + Value: "", + }, + }, + }) + if err != nil { + log.Fatal(err) + } + if res.ToolsCallResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [components.ToolsCallRequest](../../models/components/toolscallrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | + +### Response + +**[*operations.PostRestAPIV1ToolsCallResponse](../../models/operations/postrestapiv1toolscallresponse.md), error** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------ | ------------------ | ------------------ | +| apierrors.APIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/custommetadata/README.md b/docs/sdks/custommetadata/README.md new file mode 100644 index 00000000..3a76b3a0 --- /dev/null +++ b/docs/sdks/custommetadata/README.md @@ -0,0 +1,291 @@ +# Indexing.CustomMetadata + +## Overview + +### Available Operations + +* [Upsert](#upsert) - Add or update custom metadata +* [Delete](#delete) - Remove custom metadata +* [GetSchema](#getschema) - Retrieve metadata schema +* [UpsertSchema](#upsertschema) - Create or update metadata schema +* [DeleteSchema](#deleteschema) - Remove metadata schema + +## Upsert + +Associates custom metadata with a specific document. Custom metadata enables you to enrich documents with additional structured information that can be used for search, filtering, and faceting. + +### Example Usage + + +```go +package main + +import( + "context" + "os" + apiclientgo "github.com/gleanwork/api-client-go" + "github.com/gleanwork/api-client-go/models/components" + "log" +) + +func main() { + ctx := context.Background() + + s := apiclientgo.New( + apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), + ) + + res, err := s.Indexing.CustomMetadata.Upsert(ctx, "", "", components.CustomMetadataPutRequest{ + CustomMetadata: []components.CustomProperty{}, + }) + if err != nil { + log.Fatal(err) + } + if res.SuccessResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `docID` | `string` | :heavy_check_mark: | Unique Glean identifier of the document | +| `groupName` | `string` | :heavy_check_mark: | Name of the metadata group as specified while adding schema | +| `customMetadataPutRequest` | [components.CustomMetadataPutRequest](../../models/components/custommetadataputrequest.md) | :heavy_check_mark: | N/A | +| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | + +### Response + +**[*operations.PutRestAPIIndexDocumentDocIDCustomMetadataGroupNameResponse](../../models/operations/putrestapiindexdocumentdocidcustommetadatagroupnameresponse.md), error** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| apierrors.ErrorInfoResponse | 400, 401, 404, 429 | application/json | +| apierrors.ErrorInfoResponse | 500 | application/json | +| apierrors.APIError | 4XX, 5XX | \*/\* | + +## Delete + +Removes all custom metadata for the specified metadata group from a document. + +### Example Usage + + +```go +package main + +import( + "context" + "os" + apiclientgo "github.com/gleanwork/api-client-go" + "log" +) + +func main() { + ctx := context.Background() + + s := apiclientgo.New( + apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), + ) + + res, err := s.Indexing.CustomMetadata.Delete(ctx, "", "") + if err != nil { + log.Fatal(err) + } + if res.SuccessResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `docID` | `string` | :heavy_check_mark: | Unique Glean identifier of the document | +| `groupName` | `string` | :heavy_check_mark: | Name of the metadata group as specified while adding schema | +| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | + +### Response + +**[*operations.DeleteRestAPIIndexDocumentDocIDCustomMetadataGroupNameResponse](../../models/operations/deleterestapiindexdocumentdocidcustommetadatagroupnameresponse.md), error** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| apierrors.ErrorInfoResponse | 400, 401, 404, 429 | application/json | +| apierrors.ErrorInfoResponse | 500 | application/json | +| apierrors.APIError | 4XX, 5XX | \*/\* | + +## GetSchema + +Retrieves the current schema definition for a metadata group. + +### Example Usage + + +```go +package main + +import( + "context" + "os" + apiclientgo "github.com/gleanwork/api-client-go" + "log" +) + +func main() { + ctx := context.Background() + + s := apiclientgo.New( + apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), + ) + + res, err := s.Indexing.CustomMetadata.GetSchema(ctx, "") + if err != nil { + log.Fatal(err) + } + if res.CustomMetadataSchema != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `groupName` | `string` | :heavy_check_mark: | Name of the metadata group schema | +| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | + +### Response + +**[*operations.GetRestAPIIndexCustomMetadataSchemaGroupNameResponse](../../models/operations/getrestapiindexcustommetadataschemagroupnameresponse.md), error** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| apierrors.ErrorInfoResponse | 401, 404, 429 | application/json | +| apierrors.ErrorInfoResponse | 500 | application/json | +| apierrors.APIError | 4XX, 5XX | \*/\* | + +## UpsertSchema + +Defines or updates the schema for a metadata group. Schemas should be defined before indexing metadata. + +### Example Usage + + +```go +package main + +import( + "context" + "os" + apiclientgo "github.com/gleanwork/api-client-go" + "github.com/gleanwork/api-client-go/models/components" + "log" +) + +func main() { + ctx := context.Background() + + s := apiclientgo.New( + apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), + ) + + res, err := s.Indexing.CustomMetadata.UpsertSchema(ctx, "", components.CustomMetadataSchema{ + MetadataKeys: []components.CustomMetadataPropertyDefinition{}, + }) + if err != nil { + log.Fatal(err) + } + if res.SuccessResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `groupName` | `string` | :heavy_check_mark: | Name of the metadata group schema | +| `customMetadataSchema` | [components.CustomMetadataSchema](../../models/components/custommetadataschema.md) | :heavy_check_mark: | N/A | +| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | + +### Response + +**[*operations.PutRestAPIIndexCustomMetadataSchemaGroupNameResponse](../../models/operations/putrestapiindexcustommetadataschemagroupnameresponse.md), error** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| apierrors.ErrorInfoResponse | 400, 401, 409, 429 | application/json | +| apierrors.ErrorInfoResponse | 500 | application/json | +| apierrors.APIError | 4XX, 5XX | \*/\* | + +## DeleteSchema + +Deletes the schema definition for a metadata group. This does not delete existing metadata values on documents. + +### Example Usage + + +```go +package main + +import( + "context" + "os" + apiclientgo "github.com/gleanwork/api-client-go" + "log" +) + +func main() { + ctx := context.Background() + + s := apiclientgo.New( + apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), + ) + + res, err := s.Indexing.CustomMetadata.DeleteSchema(ctx, "") + if err != nil { + log.Fatal(err) + } + if res.SuccessResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `groupName` | `string` | :heavy_check_mark: | Name of the metadata group schema | +| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | + +### Response + +**[*operations.DeleteRestAPIIndexCustomMetadataSchemaGroupNameResponse](../../models/operations/deleterestapiindexcustommetadataschemagroupnameresponse.md), error** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| apierrors.ErrorInfoResponse | 400, 401, 404, 429 | application/json | +| apierrors.ErrorInfoResponse | 500 | application/json | +| apierrors.APIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/datasources/README.md b/docs/sdks/datasources/README.md index 44e28263..708aa0fd 100644 --- a/docs/sdks/datasources/README.md +++ b/docs/sdks/datasources/README.md @@ -8,6 +8,8 @@ Manage datasources. * [GetDatasourceInstanceConfiguration](#getdatasourceinstanceconfiguration) - Get datasource instance configuration * [UpdateDatasourceInstanceConfiguration](#updatedatasourceinstanceconfiguration) - Update datasource instance configuration +* [GetDatasourceCredentialStatus](#getdatasourcecredentialstatus) - Get datasource instance credential status +* [RotateDatasourceCredentials](#rotatedatasourcecredentials) - Rotate datasource instance credentials ## GetDatasourceInstanceConfiguration @@ -122,6 +124,123 @@ func main() { ### Errors +| Error Type | Status Code | Content Type | +| ----------------------- | ----------------------- | ----------------------- | +| apierrors.ErrorResponse | 400, 403, 404 | application/json | +| apierrors.APIError | 4XX, 5XX | \*/\* | + +## GetDatasourceCredentialStatus + +Returns the current credential status for a datasource instance. Access is limited to callers with the ADMIN scope; the handler enforces this check. + + +### Example Usage + + +```go +package main + +import( + "context" + "os" + apiclientgo "github.com/gleanwork/api-client-go" + "log" +) + +func main() { + ctx := context.Background() + + s := apiclientgo.New( + apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), + ) + + res, err := s.Datasources.GetDatasourceCredentialStatus(ctx, "o365sharepoint_abc123") + if err != nil { + log.Fatal(err) + } + if res.DatasourceCredentialStatusResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | Example | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | | +| `datasourceInstanceID` | `string` | :heavy_check_mark: | The full datasource instance identifier (e.g. o365sharepoint_abc123) | o365sharepoint_abc123 | +| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | | + +### Response + +**[*operations.GetDatasourceCredentialStatusResponse](../../models/operations/getdatasourcecredentialstatusresponse.md), error** + +### Errors + +| Error Type | Status Code | Content Type | +| ----------------------- | ----------------------- | ----------------------- | +| apierrors.ErrorResponse | 400, 403, 404 | application/json | +| apierrors.APIError | 4XX, 5XX | \*/\* | + +## RotateDatasourceCredentials + +Rotates the credentials that a datasource instance uses to connect to its upstream system. Replaces the active credential material with the supplied values and returns the credential status after rotation. Access is limited to callers with the ADMIN scope; the handler enforces this check. +Only keys recognized as credential material for the datasource type may be set in `credentials.values` (e.g. `clientSecret`, `apiToken`, `privateKey`, depending on the configured auth method). Unrecognized keys, or keys that correspond to non-credential configuration, cause a 400; other instance configuration must be updated via PATCH /configure/datasources/{datasourceId}/instances/{instanceId}. + + +### Example Usage + + +```go +package main + +import( + "context" + "os" + apiclientgo "github.com/gleanwork/api-client-go" + "github.com/gleanwork/api-client-go/models/components" + "log" +) + +func main() { + ctx := context.Background() + + s := apiclientgo.New( + apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), + ) + + res, err := s.Datasources.RotateDatasourceCredentials(ctx, "o365sharepoint_abc123", components.RotateDatasourceCredentialsRequest{ + Credentials: components.DatasourceInstanceConfiguration{ + Values: map[string]components.ConfigurationValue{ + "key": components.ConfigurationValue{}, + }, + }, + }) + if err != nil { + log.Fatal(err) + } + if res.DatasourceCredentialStatusResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | | +| `datasourceInstanceID` | `string` | :heavy_check_mark: | The full datasource instance identifier (e.g. o365sharepoint_abc123) | o365sharepoint_abc123 | +| `rotateDatasourceCredentialsRequest` | [components.RotateDatasourceCredentialsRequest](../../models/components/rotatedatasourcecredentialsrequest.md) | :heavy_check_mark: | N/A | | +| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | | + +### Response + +**[*operations.RotateDatasourceCredentialsResponse](../../models/operations/rotatedatasourcecredentialsresponse.md), error** + +### Errors + | Error Type | Status Code | Content Type | | ----------------------- | ----------------------- | ----------------------- | | apierrors.ErrorResponse | 400, 403, 404 | application/json | diff --git a/docs/sdks/entities/README.md b/docs/sdks/entities/README.md index 822790f6..9d724d1d 100644 --- a/docs/sdks/entities/README.md +++ b/docs/sdks/entities/README.md @@ -1,90 +1,19 @@ -# Client.Entities +# Entities ## Overview ### Available Operations -* [List](#list) - List entities -* [ReadPeople](#readpeople) - Read people +* [GetPersonPhoto](#getpersonphoto) - Get person photo -## List +## GetPersonPhoto -List some set of details for all entities that fit the given criteria and return in the requested order. Does not support negation in filters, assumes relation type EQUALS. There is a limit of 10000 entities that can be retrieved via this endpoint, except when using FULL_DIRECTORY request type for people entities. +Returns the profile photo bytes for a person whose photo is stored in Glean (crawled from an identity source or user-uploaded via admin console). Photos hosted externally (e.g. Slack CDN) are not served by this endpoint; callers should follow the photoUrl from /people or /listentities directly. Responses include a Cache-Control header (max-age=3600) to reduce redundant fetches. -### Example Usage - - -```go -package main - -import( - "context" - "os" - apiclientgo "github.com/gleanwork/api-client-go" - "github.com/gleanwork/api-client-go/models/components" - "log" -) - -func main() { - ctx := context.Background() - - s := apiclientgo.New( - apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), - ) - - res, err := s.Client.Entities.List(ctx, components.ListEntitiesRequest{ - Filter: []components.FacetFilter{ - components.FacetFilter{ - FieldName: apiclientgo.Pointer("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: apiclientgo.Pointer("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - PageSize: apiclientgo.Pointer[int64](100), - }, nil) - if err != nil { - log.Fatal(err) - } - if res.ListEntitiesResponse != nil { - // handle response - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `listEntitiesRequest` | [components.ListEntitiesRequest](../../models/components/listentitiesrequest.md) | :heavy_check_mark: | List people request | -| `locale` | `*string` | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | - -### Response - -**[*operations.ListentitiesResponse](../../models/operations/listentitiesresponse.md), error** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------ | ------------------ | ------------------ | -| apierrors.APIError | 4XX, 5XX | \*/\* | - -## ReadPeople - -Read people details for the given IDs. ### Example Usage - + ```go package main @@ -92,7 +21,6 @@ import( "context" "os" apiclientgo "github.com/gleanwork/api-client-go" - "github.com/gleanwork/api-client-go/models/components" "log" ) @@ -103,16 +31,11 @@ func main() { apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), ) - res, err := s.Client.Entities.ReadPeople(ctx, components.PeopleRequest{ - ObfuscatedIds: []string{ - "abc123", - "abc456", - }, - }, nil) + res, err := s.Entities.GetPersonPhoto(ctx, "", nil) if err != nil { log.Fatal(err) } - if res.PeopleResponse != nil { + if res.TwoHundredImagePngResponseStream != nil { // handle response } } @@ -120,16 +43,16 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | | -| `peopleRequest` | [components.PeopleRequest](../../models/components/peoplerequest.md) | :heavy_check_mark: | People request | {
"obfuscatedIds": [
"abc123",
"abc456"
]
} | -| `locale` | `*string` | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `personID` | `string` | :heavy_check_mark: | The obfuscated ID of the person whose photo to retrieve. | +| `ds` | `*string` | :heavy_minus_sign: | Optional datasource override for crawled photos (e.g. AZURE, GDRIVE, OKTA). When omitted, the datasource is derived from the person's stored photo URL or the deployment's primary person datasource.
| +| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.PeopleResponse](../../models/operations/peopleresponse.md), error** +**[*operations.GetPersonPhotoResponse](../../models/operations/getpersonphotoresponse.md), error** ### Errors diff --git a/docs/sdks/tools/README.md b/docs/sdks/tools/README.md index ed260d41..38d02851 100644 --- a/docs/sdks/tools/README.md +++ b/docs/sdks/tools/README.md @@ -1,19 +1,22 @@ -# Client.Tools +# Tools ## Overview ### Available Operations -* [List](#list) - List available tools -* [Run](#run) - Execute the specified tool +* [GetActionPackAuthStatus](#getactionpackauthstatus) - Get end-user authentication status for an action pack. +* [AuthorizeActionPack](#authorizeactionpack) - Start the OAuth authorization flow for an action pack. -## List +## GetActionPackAuthStatus + +Reports whether the calling user is already authenticated against the third-party +tool backing the specified action pack. Intended for headless / server-driven clients +that render an "Authorize" prompt when the user has not yet consented to the tool. -Returns a filtered set of available tools based on optional tool name parameters. If no filters are provided, all available tools are returned. ### Example Usage - + ```go package main @@ -31,11 +34,11 @@ func main() { apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), ) - res, err := s.Client.Tools.List(ctx, nil) + res, err := s.Tools.GetActionPackAuthStatus(ctx, "") if err != nil { log.Fatal(err) } - if res.ToolsListResponse != nil { + if res.ActionPackAuthStatusResponse != nil { // handle response } } @@ -46,12 +49,12 @@ func main() { | Parameter | Type | Required | Description | | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | | `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `toolNames` | []`string` | :heavy_minus_sign: | Optional array of tool names to filter by | +| `actionPackID` | `string` | :heavy_check_mark: | ID of the action pack to query or authorize. | | `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.GetRestAPIV1ToolsListResponse](../../models/operations/getrestapiv1toolslistresponse.md), error** +**[*operations.GetActionPackAuthStatusResponse](../../models/operations/getactionpackauthstatusresponse.md), error** ### Errors @@ -59,13 +62,20 @@ func main() { | ------------------ | ------------------ | ------------------ | | apierrors.APIError | 4XX, 5XX | \*/\* | -## Run +## AuthorizeActionPack + +Starts the third-party OAuth flow for the specified action pack and returns the +redirect URL that the client should navigate the end user to. After the OAuth +callback completes, the user's browser is redirected back to `returnUrl` with a +status query parameter (`?glean_action_auth=success|error&actionPackId=...`). + +`returnUrl` must match the tenant's configured return URL allowlist; otherwise the +request is rejected with 400. -Execute the specified tool with provided parameters ### Example Usage - + ```go package main @@ -84,19 +94,13 @@ func main() { apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), ) - res, err := s.Client.Tools.Run(ctx, components.ToolsCallRequest{ - Name: "", - Parameters: map[string]components.ToolsCallParameter{ - "key": components.ToolsCallParameter{ - Name: "", - Value: "", - }, - }, + res, err := s.Tools.AuthorizeActionPack(ctx, "", components.AuthorizeActionPackRequest{ + ReturnURL: "https://merry-allocation.org/", }) if err != nil { log.Fatal(err) } - if res.ToolsCallResponse != nil { + if res.AuthorizeActionPackResponse != nil { // handle response } } @@ -104,15 +108,16 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [components.ToolsCallRequest](../../models/components/toolscallrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `actionPackID` | `string` | :heavy_check_mark: | ID of the action pack to query or authorize. | +| `authorizeActionPackRequest` | [components.AuthorizeActionPackRequest](../../models/components/authorizeactionpackrequest.md) | :heavy_check_mark: | N/A | +| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.PostRestAPIV1ToolsCallResponse](../../models/operations/postrestapiv1toolscallresponse.md), error** +**[*operations.AuthorizeActionPackResponse](../../models/operations/authorizeactionpackresponse.md), error** ### Errors diff --git a/docs/sdks/troubleshooting/README.md b/docs/sdks/troubleshooting/README.md new file mode 100644 index 00000000..f62ce46b --- /dev/null +++ b/docs/sdks/troubleshooting/README.md @@ -0,0 +1,68 @@ +# Troubleshooting + +## Overview + +### Available Operations + +* [PostAPIIndexV1DebugDatasourceDocumentEvents](#postapiindexv1debugdatasourcedocumentevents) - Beta: Get document lifecycle events + + +## PostAPIIndexV1DebugDatasourceDocumentEvents + +Retrieves lifecycle events for a specific document including upload time, index times and deletions. Rate limited to 1 request per minute per datasource. Currently in beta, might undergo breaking changes without prior notice. + + +### Example Usage + + +```go +package main + +import( + "context" + "os" + apiclientgo "github.com/gleanwork/api-client-go" + "github.com/gleanwork/api-client-go/models/components" + "log" +) + +func main() { + ctx := context.Background() + + s := apiclientgo.New( + apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), + ) + + res, err := s.Troubleshooting.PostAPIIndexV1DebugDatasourceDocumentEvents(ctx, "", components.DebugDocumentLifecycleRequest{ + ObjectType: "Article", + DocID: "art123", + StartDate: apiclientgo.Pointer("2025-05-01"), + MaxEvents: apiclientgo.Pointer[int64](50), + }) + if err != nil { + log.Fatal(err) + } + if res.DebugDocumentLifecycleResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `datasource` | `string` | :heavy_check_mark: | The datasource to which the document belongs | +| `debugDocumentLifecycleRequest` | [components.DebugDocumentLifecycleRequest](../../models/components/debugdocumentlifecyclerequest.md) | :heavy_check_mark: | N/A | +| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | + +### Response + +**[*operations.PostAPIIndexV1DebugDatasourceDocumentEventsResponse](../../models/operations/postapiindexv1debugdatasourcedocumenteventsresponse.md), error** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------ | ------------------ | ------------------ | +| apierrors.APIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/entities.go b/entities.go index e86696d2..117e015a 100644 --- a/entities.go +++ b/entities.go @@ -3,7 +3,6 @@ package apiclientgo import ( - "bytes" "context" "fmt" "github.com/gleanwork/api-client-go/internal/config" @@ -14,7 +13,6 @@ import ( "github.com/gleanwork/api-client-go/models/operations" "github.com/gleanwork/api-client-go/retry" "net/http" - "net/url" ) type Entities struct { @@ -31,18 +29,19 @@ func newEntities(rootSDK *Glean, sdkConfig config.SDKConfiguration, hooks *hooks } } -// List entities -// List some set of details for all entities that fit the given criteria and return in the requested order. Does not support negation in filters, assumes relation type EQUALS. There is a limit of 10000 entities that can be retrieved via this endpoint, except when using FULL_DIRECTORY request type for people entities. -func (s *Entities) List(ctx context.Context, listEntitiesRequest components.ListEntitiesRequest, locale *string, opts ...operations.Option) (*operations.ListentitiesResponse, error) { - request := operations.ListentitiesRequest{ - Locale: locale, - ListEntitiesRequest: listEntitiesRequest, +// GetPersonPhoto - Get person photo +// Returns the profile photo bytes for a person whose photo is stored in Glean (crawled from an identity source or user-uploaded via admin console). Photos hosted externally (e.g. Slack CDN) are not served by this endpoint; callers should follow the photoUrl from /people or /listentities directly. Responses include a Cache-Control header (max-age=3600) to reduce redundant fetches. +func (s *Entities) GetPersonPhoto(ctx context.Context, personID string, ds *string, opts ...operations.Option) (*operations.GetPersonPhotoResponse, error) { + request := operations.GetPersonPhotoRequest{ + PersonID: personID, + Ds: ds, } o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, operations.SupportedOptionTimeout, + operations.SupportedOptionAcceptHeaderOverride, } for _, opt := range opts { @@ -57,7 +56,7 @@ func (s *Entities) List(ctx context.Context, listEntitiesRequest components.List } else { baseURL = *o.ServerURL } - opURL, err := url.JoinPath(baseURL, "/rest/api/v1/listentities") + opURL, err := utils.GenerateURL(ctx, baseURL, "/rest/api/v1/people/{person_id}/photo", request, nil) if err != nil { return nil, fmt.Errorf("error generating URL: %w", err) } @@ -67,14 +66,10 @@ func (s *Entities) List(ctx context.Context, listEntitiesRequest components.List SDKConfiguration: s.sdkConfiguration, BaseURL: baseURL, Context: ctx, - OperationID: "listentities", + OperationID: "getPersonPhoto", OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "ListEntitiesRequest", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } timeout := o.Timeout if timeout == nil { @@ -87,243 +82,17 @@ func (s *Entities) List(ctx context.Context, listEntitiesRequest components.List defer cancel() } - req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") - req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if reqContentType != "" { - req.Header.Set("Content-Type", reqContentType) - } - - if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { - return nil, fmt.Errorf("error populating query params: %w", err) - } - - if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { - return nil, err - } - - for k, v := range o.SetHeaders { - req.Header.Set(k, v) - } - - globalRetryConfig := s.sdkConfiguration.RetryConfig - retryConfig := o.Retries - if retryConfig == nil { - if globalRetryConfig != nil { - retryConfig = globalRetryConfig - } - } - - var httpRes *http.Response - if retryConfig != nil { - httpRes, err = utils.Retry(ctx, utils.Retries{ - Config: retryConfig, - StatusCodes: []string{ - "429", - "500", - "502", - "503", - "504", - }, - }, func() (*http.Response, error) { - if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { - copyBody, err := req.GetBody() - - if err != nil { - return nil, err - } - - req.Body = copyBody - } - - req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) - if err != nil { - if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { - return nil, err - } - - return nil, retry.Permanent(err) - } - - httpRes, err := s.sdkConfiguration.Client.Do(req) - if err != nil || httpRes == nil { - if err != nil { - err = fmt.Errorf("error sending request: %w", err) - } else { - err = fmt.Errorf("error sending request: no response") - } - - _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) - } - return httpRes, err - }) - - if err != nil { - return nil, err - } else { - httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) - if err != nil { - return nil, err - } - } + if o.AcceptHeaderOverride != nil { + req.Header.Set("Accept", string(*o.AcceptHeaderOverride)) } else { - req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) - if err != nil { - return nil, err - } - - httpRes, err = s.sdkConfiguration.Client.Do(req) - if err != nil || httpRes == nil { - if err != nil { - err = fmt.Errorf("error sending request: %w", err) - } else { - err = fmt.Errorf("error sending request: no response") - } - - _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) - return nil, err - } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { - _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) - if err != nil { - return nil, err - } else if _httpRes != nil { - httpRes = _httpRes - } - } else { - httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) - if err != nil { - return nil, err - } - } + req.Header.Set("Accept", "image/jpeg;q=1, image/png;q=0") } - res := &operations.ListentitiesResponse{ - HTTPMeta: components.HTTPMetadata{ - Request: req, - Response: httpRes, - }, - } - - switch { - case httpRes.StatusCode == 200: - switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - - var out components.ListEntitiesResponse - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { - return nil, err - } - - res.ListEntitiesResponse = &out - default: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) - } - case httpRes.StatusCode == 400: - fallthrough - case httpRes.StatusCode == 401: - fallthrough - case httpRes.StatusCode == 429: - fallthrough - case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) - case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) - default: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, apierrors.NewAPIError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) - } - - return res, nil - -} - -// ReadPeople - Read people -// Read people details for the given IDs. -func (s *Entities) ReadPeople(ctx context.Context, peopleRequest components.PeopleRequest, locale *string, opts ...operations.Option) (*operations.PeopleResponse, error) { - request := operations.PeopleRequest{ - Locale: locale, - PeopleRequest: peopleRequest, - } - - o := operations.Options{} - supportedOptions := []string{ - operations.SupportedOptionRetries, - operations.SupportedOptionTimeout, - } - - for _, opt := range opts { - if err := opt(&o, supportedOptions...); err != nil { - return nil, fmt.Errorf("error applying option: %w", err) - } - } - - var baseURL string - if o.ServerURL == nil { - baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - } else { - baseURL = *o.ServerURL - } - opURL, err := url.JoinPath(baseURL, "/rest/api/v1/people") - if err != nil { - return nil, fmt.Errorf("error generating URL: %w", err) - } - - hookCtx := hooks.HookContext{ - SDK: s.rootSDK, - SDKConfiguration: s.sdkConfiguration, - BaseURL: baseURL, - Context: ctx, - OperationID: "people", - OAuth2Scopes: nil, - SecuritySource: s.sdkConfiguration.Security, - } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "PeopleRequest", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } - - timeout := o.Timeout - if timeout == nil { - timeout = s.sdkConfiguration.Timeout - } - - if timeout != nil { - var cancel context.CancelFunc - ctx, cancel = context.WithTimeout(ctx, *timeout) - defer cancel() - } - - req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) - if err != nil { - return nil, fmt.Errorf("error creating request: %w", err) - } - req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if reqContentType != "" { - req.Header.Set("Content-Type", reqContentType) - } if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { return nil, fmt.Errorf("error populating query params: %w", err) @@ -428,7 +197,7 @@ func (s *Entities) ReadPeople(ctx context.Context, peopleRequest components.Peop } } - res := &operations.PeopleResponse{ + res := &operations.GetPersonPhotoResponse{ HTTPMeta: components.HTTPMetadata{ Request: req, Response: httpRes, @@ -437,19 +206,17 @@ func (s *Entities) ReadPeople(ctx context.Context, peopleRequest components.Peop switch { case httpRes.StatusCode == 200: + res.Headers = httpRes.Header + switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `image/png`): + res.TwoHundredImagePngResponseStream = httpRes.Body - var out components.PeopleResponse - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { - return nil, err - } + return res, nil + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `image/jpeg`): + res.TwoHundredImageJpegResponseStream = httpRes.Body - res.PeopleResponse = &out + return res, nil default: rawBody, err := utils.ConsumeRawBody(httpRes) if err != nil { @@ -461,6 +228,8 @@ func (s *Entities) ReadPeople(ctx context.Context, peopleRequest components.Peop fallthrough case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 404: + fallthrough case httpRes.StatusCode == 429: fallthrough case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: diff --git a/glean.go b/glean.go index 08e93eb2..0e8208a9 100644 --- a/glean.go +++ b/glean.go @@ -2,7 +2,7 @@ package apiclientgo -// Generated from OpenAPI doc version 0.9.0 and generator version 2.881.2 +// Generated from OpenAPI doc version 0.9.0 and generator version 2.892.5 import ( "context" @@ -67,9 +67,14 @@ type Glean struct { SDKVersion string Client *Client // Manage indexing API tokens. - Authentication *Authentication - Indexing *Indexing - Governance *Governance + Authentication *Authentication + Chat *Chat + Agents *Agents + Entities *Entities + Tools *Tools + Indexing *Indexing + Troubleshooting *Troubleshooting + Governance *Governance // Manage datasources. Datasources *Datasources @@ -161,9 +166,9 @@ func WithTimeout(timeout time.Duration) SDKOption { // New creates a new instance of the SDK with the provided options func New(opts ...SDKOption) *Glean { sdk := &Glean{ - SDKVersion: "0.11.43", + SDKVersion: "0.12.0", sdkConfiguration: config.SDKConfiguration{ - UserAgent: "speakeasy-sdk/go 0.11.43 2.881.2 0.9.0 github.com/gleanwork/api-client-go", + UserAgent: "speakeasy-sdk/go 0.12.0 2.892.5 0.9.0 github.com/gleanwork/api-client-go", ServerList: ServerList, ServerVariables: []map[string]string{ { @@ -198,7 +203,12 @@ func New(opts ...SDKOption) *Glean { sdk.Client = newClient(sdk, sdk.sdkConfiguration, sdk.hooks) sdk.Authentication = newAuthentication(sdk, sdk.sdkConfiguration, sdk.hooks) + sdk.Chat = newChat(sdk, sdk.sdkConfiguration, sdk.hooks) + sdk.Agents = newAgents(sdk, sdk.sdkConfiguration, sdk.hooks) + sdk.Entities = newEntities(sdk, sdk.sdkConfiguration, sdk.hooks) + sdk.Tools = newTools(sdk, sdk.sdkConfiguration, sdk.hooks) sdk.Indexing = newIndexing(sdk, sdk.sdkConfiguration, sdk.hooks) + sdk.Troubleshooting = newTroubleshooting(sdk, sdk.sdkConfiguration, sdk.hooks) sdk.Governance = newGovernance(sdk, sdk.sdkConfiguration, sdk.hooks) sdk.Datasources = newDatasources(sdk, sdk.sdkConfiguration, sdk.hooks) diff --git a/go.mod b/go.mod index ffa5d2a1..3a9e7d2e 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/gleanwork/api-client-go -go 1.22 +go 1.25.10 require github.com/stretchr/testify v1.8.4 diff --git a/indexing.go b/indexing.go index 035a8721..99d3231d 100644 --- a/indexing.go +++ b/indexing.go @@ -15,6 +15,7 @@ type Indexing struct { Datasources *IndexingDatasources Authentication *IndexingAuthentication Shortcuts *IndexingShortcuts + CustomMetadata *CustomMetadata rootSDK *Glean sdkConfiguration config.SDKConfiguration @@ -33,5 +34,6 @@ func newIndexing(rootSDK *Glean, sdkConfig config.SDKConfiguration, hooks *hooks Datasources: newIndexingDatasources(rootSDK, sdkConfig, hooks), Authentication: newIndexingAuthentication(rootSDK, sdkConfig, hooks), Shortcuts: newIndexingShortcuts(rootSDK, sdkConfig, hooks), + CustomMetadata: newCustomMetadata(rootSDK, sdkConfig, hooks), } } diff --git a/internal/utils/json.go b/internal/utils/json.go index e84766eb..2cfbfc87 100644 --- a/internal/utils/json.go +++ b/internal/utils/json.go @@ -512,6 +512,13 @@ func unmarshalValue(value json.RawMessage, v reflect.Value, tag reflect.StructTa return nil } case reflect.Map: + if implementsJSONUnmarshaler(v.Type()) { + if v.CanAddr() { + return json.Unmarshal(value, v.Addr().Interface()) + } + return json.Unmarshal(value, v.Interface()) + } + if bytes.Equal(value, []byte("null")) || !isComplexValueType(dereferenceTypePointer(typ.Elem())) { if v.CanAddr() { return json.Unmarshal(value, v.Addr().Interface()) diff --git a/internal/utils/union.go b/internal/utils/union.go index a5e3640d..02ac87dd 100644 --- a/internal/utils/union.go +++ b/internal/utils/union.go @@ -128,8 +128,8 @@ func countFieldsRecursive(candidate *UnionCandidate, typ reflect.Type, val refle // Handle unions if isUnion, activeVariant, variantVal := findActiveUnionVariant(typ, val); isUnion { - if activeVariant != nil && !variantVal.IsNil() { - countFieldsRecursive(candidate, activeVariant.Type.Elem(), variantVal.Elem(), raw) + if activeVariant != nil { + countFieldsRecursive(candidate, activeVariant.Type, variantVal, raw) } return } @@ -253,7 +253,6 @@ func findActiveUnionVariant(typ reflect.Type, val reflect.Value) (bool, *reflect isUnion = true - // All union variants are pointers - only set active if non-nil fieldVal := val.Field(i) if !fieldVal.IsNil() { activeVariant = &field diff --git a/internal/utils/union_test.go b/internal/utils/union_test.go index f66814c7..138f7e2a 100644 --- a/internal/utils/union_test.go +++ b/internal/utils/union_test.go @@ -585,3 +585,73 @@ func TestPickBestUnionCandidate_AnyFieldType(t *testing.T) { require.NotNil(t, result) assert.IsType(t, B{}, result.Type) } + +func TestPickBestUnionCandidate_NonPointerUnionVariants(t *testing.T) { + type Inner struct { + Foo string `json:"foo"` + } + type SliceUnion struct { + AsObject *Inner `union:"member"` + AsList []string `union:"member"` + } + type MapUnion struct { + AsObject *Inner `union:"member"` + AsMap map[string]string `union:"member"` + } + type AnyUnion struct { + AsObject *Inner `union:"member"` + AsAny any `union:"member"` + } + + cases := []struct { + name string + payload string + candidates []UnionCandidate + wantType string + }{ + { + name: "slice variant wins for array payload", + payload: `["a", "b"]`, + candidates: []UnionCandidate{ + {Type: "object", Value: SliceUnion{AsObject: &Inner{}}}, + {Type: "list", Value: SliceUnion{AsList: []string{"a", "b"}}}, + }, + wantType: "list", + }, + { + name: "map variant wins for object payload with no matching struct fields", + payload: `{"k1": "v1", "k2": "v2"}`, + candidates: []UnionCandidate{ + {Type: "object", Value: MapUnion{AsObject: &Inner{}}}, + {Type: "map", Value: MapUnion{AsMap: map[string]string{"k1": "v1", "k2": "v2"}}}, + }, + wantType: "map", + }, + { + name: "any variant wins as catch-all when struct can't fit a scalar", + payload: `"scalar"`, + candidates: []UnionCandidate{ + {Type: "object", Value: AnyUnion{AsObject: &Inner{}}}, + {Type: "any", Value: AnyUnion{AsAny: "scalar"}}, + }, + wantType: "any", + }, + { + name: "structured variant beats any on a matching object payload", + payload: `{"foo": "x"}`, + candidates: []UnionCandidate{ + {Type: "object", Value: AnyUnion{AsObject: &Inner{Foo: "x"}}}, + {Type: "any", Value: AnyUnion{AsAny: map[string]any{"foo": "x"}}}, + }, + wantType: "object", + }, + } + + for _, tc := range cases { + t.Run(tc.name, func(t *testing.T) { + result := PickBestUnionCandidate(tc.candidates, []byte(tc.payload)) + require.NotNil(t, result) + assert.Equal(t, tc.wantType, result.Type) + }) + } +} diff --git a/models/apierrors/errorinforesponse.go b/models/apierrors/errorinforesponse.go new file mode 100644 index 00000000..d6eecf01 --- /dev/null +++ b/models/apierrors/errorinforesponse.go @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package apierrors + +import ( + "encoding/json" + "github.com/gleanwork/api-client-go/models/components" +) + +// ErrorInfoResponse - Error response for custom metadata operations +type ErrorInfoResponse struct { + // Error message describing what went wrong + Error_ string `json:"error"` + // Additional details about the error + Message *string `json:"message,omitempty"` + HTTPMeta components.HTTPMetadata `json:"-"` +} + +var _ error = &ErrorInfoResponse{} + +func (e *ErrorInfoResponse) Error() string { + data, _ := json.Marshal(e) + return string(data) +} diff --git a/models/components/actionauthtype.go b/models/components/actionauthtype.go new file mode 100644 index 00000000..0807b42d --- /dev/null +++ b/models/components/actionauthtype.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// ActionAuthType - Authentication mechanism used by an action pack. +// - `AUTH_USER_OAUTH`: Requires per-user OAuth consent to the third-party tool. +// - `AUTH_ADMIN`: Uses a service-account / admin-owned credential. End users do not authorize individually. +// - `AUTH_NONE`: Action pack requires no authentication. +type ActionAuthType string + +const ( + ActionAuthTypeAuthUserOauth ActionAuthType = "AUTH_USER_OAUTH" + ActionAuthTypeAuthAdmin ActionAuthType = "AUTH_ADMIN" + ActionAuthTypeAuthNone ActionAuthType = "AUTH_NONE" +) + +func (e ActionAuthType) ToPointer() *ActionAuthType { + return &e +} + +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *ActionAuthType) IsExact() bool { + if e != nil { + switch *e { + case "AUTH_USER_OAUTH", "AUTH_ADMIN", "AUTH_NONE": + return true + } + } + return false +} diff --git a/models/components/actionpackauthstatus.go b/models/components/actionpackauthstatus.go new file mode 100644 index 00000000..ecc55b25 --- /dev/null +++ b/models/components/actionpackauthstatus.go @@ -0,0 +1,28 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +type ActionPackAuthStatus struct { + // Whether the calling user is already authenticated to the tool backing the action pack. + Authenticated bool `json:"authenticated"` + // Authentication mechanism used by an action pack. + // - `AUTH_USER_OAUTH`: Requires per-user OAuth consent to the third-party tool. + // - `AUTH_ADMIN`: Uses a service-account / admin-owned credential. End users do not authorize individually. + // - `AUTH_NONE`: Action pack requires no authentication. + // + AuthType ActionAuthType `json:"authType"` +} + +func (a *ActionPackAuthStatus) GetAuthenticated() bool { + if a == nil { + return false + } + return a.Authenticated +} + +func (a *ActionPackAuthStatus) GetAuthType() ActionAuthType { + if a == nil { + return ActionAuthType("") + } + return a.AuthType +} diff --git a/models/components/actionpackauthstatusresponse.go b/models/components/actionpackauthstatusresponse.go new file mode 100644 index 00000000..59ba7c89 --- /dev/null +++ b/models/components/actionpackauthstatusresponse.go @@ -0,0 +1,14 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +type ActionPackAuthStatusResponse struct { + ActionPack ActionPackAuthStatus `json:"actionPack"` +} + +func (a *ActionPackAuthStatusResponse) GetActionPack() ActionPackAuthStatus { + if a == nil { + return ActionPackAuthStatus{} + } + return a.ActionPack +} diff --git a/models/components/addcollectionitemserror.go b/models/components/addcollectionitemserror.go index fff0a74d..7ffec3ce 100644 --- a/models/components/addcollectionitemserror.go +++ b/models/components/addcollectionitemserror.go @@ -2,32 +2,26 @@ package components -import ( - "encoding/json" - "fmt" -) - type AddCollectionItemsErrorErrorType string const ( AddCollectionItemsErrorErrorTypeExistingItem AddCollectionItemsErrorErrorType = "EXISTING_ITEM" + AddCollectionItemsErrorErrorTypeCorruptItem AddCollectionItemsErrorErrorType = "CORRUPT_ITEM" ) func (e AddCollectionItemsErrorErrorType) ToPointer() *AddCollectionItemsErrorErrorType { return &e } -func (e *AddCollectionItemsErrorErrorType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "EXISTING_ITEM": - *e = AddCollectionItemsErrorErrorType(v) - return nil - default: - return fmt.Errorf("invalid value for AddCollectionItemsErrorErrorType: %v", v) + +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *AddCollectionItemsErrorErrorType) IsExact() bool { + if e != nil { + switch *e { + case "EXISTING_ITEM", "CORRUPT_ITEM": + return true + } } + return false } type AddCollectionItemsError struct { diff --git a/models/components/agentsinsightsv2request.go b/models/components/agentsinsightsv2request.go index 9b1eba5b..9ec9b339 100644 --- a/models/components/agentsinsightsv2request.go +++ b/models/components/agentsinsightsv2request.go @@ -7,7 +7,9 @@ type AgentsInsightsV2Request struct { AgentIds []string `json:"agentIds,omitempty"` // Departments for which Insights are requested. Departments []string `json:"departments,omitempty"` - DayRange *Period `json:"dayRange,omitempty"` + // Manager emails whose teams should be filtered for. Empty array means no filtering. + ManagerEmails []string `json:"managerEmails,omitempty"` + DayRange *Period `json:"dayRange,omitempty"` } func (a *AgentsInsightsV2Request) GetAgentIds() []string { @@ -24,6 +26,13 @@ func (a *AgentsInsightsV2Request) GetDepartments() []string { return a.Departments } +func (a *AgentsInsightsV2Request) GetManagerEmails() []string { + if a == nil { + return nil + } + return a.ManagerEmails +} + func (a *AgentsInsightsV2Request) GetDayRange() *Period { if a == nil { return nil diff --git a/models/components/agentsinsightsv2response.go b/models/components/agentsinsightsv2response.go index 286249f5..d63dbdeb 100644 --- a/models/components/agentsinsightsv2response.go +++ b/models/components/agentsinsightsv2response.go @@ -3,9 +3,9 @@ package components type AgentsInsightsV2Response struct { - // Number of current Monthly Active Users, in the specified departments. + // Number of current Monthly Active Users. MonthlyActiveUsers *int64 `json:"monthlyActiveUsers,omitempty"` - // Number of current Weekly Active Users, in the specified departments. + // Number of current Weekly Active Users. WeeklyActiveUsers *int64 `json:"weeklyActiveUsers,omitempty"` MonthlyActiveUserTimeseries *LabeledCountInfo `json:"monthlyActiveUserTimeseries,omitempty"` WeeklyActiveUserTimeseries *LabeledCountInfo `json:"weeklyActiveUserTimeseries,omitempty"` @@ -13,6 +13,7 @@ type AgentsInsightsV2Response struct { // Total number of shared agents. SharedAgentsCount *int64 `json:"sharedAgentsCount,omitempty"` TopAgentsInsights []PerAgentInsight `json:"topAgentsInsights,omitempty"` + TopUseCasesInsights []AgentUseCaseInsight `json:"topUseCasesInsights,omitempty"` AgentsUsageByDepartmentInsights []AgentsUsageByDepartmentInsight `json:"agentsUsageByDepartmentInsights,omitempty"` AgentUsersInsights []AgentUsersInsight `json:"agentUsersInsights,omitempty"` // Insights for agents time saved over the specified time period. @@ -74,6 +75,13 @@ func (a *AgentsInsightsV2Response) GetTopAgentsInsights() []PerAgentInsight { return a.TopAgentsInsights } +func (a *AgentsInsightsV2Response) GetTopUseCasesInsights() []AgentUseCaseInsight { + if a == nil { + return nil + } + return a.TopUseCasesInsights +} + func (a *AgentsInsightsV2Response) GetAgentsUsageByDepartmentInsights() []AgentsUsageByDepartmentInsight { if a == nil { return nil diff --git a/models/components/agentusecaseinsight.go b/models/components/agentusecaseinsight.go new file mode 100644 index 00000000..60d4e6f1 --- /dev/null +++ b/models/components/agentusecaseinsight.go @@ -0,0 +1,78 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +type AgentUseCaseInsight struct { + // Use case name + UseCase *string `json:"useCase,omitempty"` + // Total number of runs for this use case over the specified time period. + RunCount *int64 `json:"runCount,omitempty"` + // Percentage change in runs compared to the previous equivalent time period. + Trend *float32 `json:"trend,omitempty"` + // Comma-separated list of the top departments using this use case. + TopDepartments *string `json:"topDepartments,omitempty"` + // ID of the most-used agent for this use case. + TopAgentID *string `json:"topAgentId,omitempty"` + // Name of the most-used agent for this use case. + TopAgentName *string `json:"topAgentName,omitempty"` + // Defines how to render an icon + TopAgentIcon *IconConfig `json:"topAgentIcon,omitempty"` + // Indicates whether the top agent has been deleted. + TopAgentIsDeleted *bool `json:"topAgentIsDeleted,omitempty"` +} + +func (a *AgentUseCaseInsight) GetUseCase() *string { + if a == nil { + return nil + } + return a.UseCase +} + +func (a *AgentUseCaseInsight) GetRunCount() *int64 { + if a == nil { + return nil + } + return a.RunCount +} + +func (a *AgentUseCaseInsight) GetTrend() *float32 { + if a == nil { + return nil + } + return a.Trend +} + +func (a *AgentUseCaseInsight) GetTopDepartments() *string { + if a == nil { + return nil + } + return a.TopDepartments +} + +func (a *AgentUseCaseInsight) GetTopAgentID() *string { + if a == nil { + return nil + } + return a.TopAgentID +} + +func (a *AgentUseCaseInsight) GetTopAgentName() *string { + if a == nil { + return nil + } + return a.TopAgentName +} + +func (a *AgentUseCaseInsight) GetTopAgentIcon() *IconConfig { + if a == nil { + return nil + } + return a.TopAgentIcon +} + +func (a *AgentUseCaseInsight) GetTopAgentIsDeleted() *bool { + if a == nil { + return nil + } + return a.TopAgentIsDeleted +} diff --git a/models/components/announcement.go b/models/components/announcement.go index 2141a54b..1063f3ad 100644 --- a/models/components/announcement.go +++ b/models/components/announcement.go @@ -103,6 +103,8 @@ type Announcement struct { // The opaque id of the associated draft. DraftID *int64 `json:"draftId,omitempty"` Permissions *ObjectPermissions `json:"permissions,omitempty"` + // An opaque token that represents this particular UGC. To be used for `/feedback` reporting. + TrackingToken *string `json:"trackingToken,omitempty"` // The opaque id of the announcement. ID *int64 `json:"id,omitempty"` Author *Person `json:"author,omitempty"` @@ -240,6 +242,13 @@ func (a *Announcement) GetPermissions() *ObjectPermissions { return a.Permissions } +func (a *Announcement) GetTrackingToken() *string { + if a == nil { + return nil + } + return a.TrackingToken +} + func (a *Announcement) GetID() *int64 { if a == nil { return nil diff --git a/models/components/answer.go b/models/components/answer.go index e3fdf401..6b507217 100644 --- a/models/components/answer.go +++ b/models/components/answer.go @@ -54,9 +54,11 @@ type Answer struct { SourceDocumentSpec *DocumentSpecUnion `json:"sourceDocumentSpec,omitempty"` SourceType *AnswerSourceType `json:"sourceType,omitempty"` Permissions *ObjectPermissions `json:"permissions,omitempty"` - CombinedAnswerText *StructuredText `json:"combinedAnswerText,omitempty"` - Likes *AnswerLikes `json:"likes,omitempty"` - Author *Person `json:"author,omitempty"` + // An opaque token that represents this particular UGC. To be used for `/feedback` reporting. + TrackingToken *string `json:"trackingToken,omitempty"` + CombinedAnswerText *StructuredText `json:"combinedAnswerText,omitempty"` + Likes *AnswerLikes `json:"likes,omitempty"` + Author *Person `json:"author,omitempty"` // The time the answer was created in ISO format (ISO 8601). CreateTime *time.Time `json:"createTime,omitempty"` // The time the answer was last updated in ISO format (ISO 8601). @@ -172,6 +174,13 @@ func (a *Answer) GetPermissions() *ObjectPermissions { return a.Permissions } +func (a *Answer) GetTrackingToken() *string { + if a == nil { + return nil + } + return a.TrackingToken +} + func (a *Answer) GetCombinedAnswerText() *StructuredText { if a == nil { return nil diff --git a/models/components/answerresult.go b/models/components/answerresult.go index ed1c5e61..9573fd44 100644 --- a/models/components/answerresult.go +++ b/models/components/answerresult.go @@ -4,7 +4,9 @@ package components type AnswerResult struct { Answer Answer `json:"answer"` - // An opaque token that represents this particular Answer. To be used for `/feedback` reporting. + // Use `answer.trackingToken` instead. + // + // Deprecated: Deprecated on 2026-05-07, removal scheduled for 2027-01-15: Use `answer.trackingToken` instead.. TrackingToken *string `json:"trackingToken,omitempty"` } diff --git a/models/components/assistantinsightsresponse.go b/models/components/assistantinsightsresponse.go index 97bf4e43..e6411d5a 100644 --- a/models/components/assistantinsightsresponse.go +++ b/models/components/assistantinsightsresponse.go @@ -3,9 +3,9 @@ package components type AssistantInsightsResponse struct { - // Number of current Monthly Active Users, in the specified departments. + // Number of current Monthly Active Users. MonthlyActiveUsers *int64 `json:"monthlyActiveUsers,omitempty"` - // Number of current Weekly Active Users, in the specified departments. + // Number of current Weekly Active Users. WeeklyActiveUsers *int64 `json:"weeklyActiveUsers,omitempty"` // Unix timestamp of the last update for the insights data in the response. LastUpdatedTs *int64 `json:"lastUpdatedTs,omitempty"` diff --git a/models/components/authorizeactionpackrequest.go b/models/components/authorizeactionpackrequest.go new file mode 100644 index 00000000..aae862f1 --- /dev/null +++ b/models/components/authorizeactionpackrequest.go @@ -0,0 +1,17 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +type AuthorizeActionPackRequest struct { + // URL on the customer's domain to redirect the end user's browser back to after the third-party OAuth + // callback completes. Must be present in the tenant's return URL allowlist. + // + ReturnURL string `json:"returnUrl"` +} + +func (a *AuthorizeActionPackRequest) GetReturnURL() string { + if a == nil { + return "" + } + return a.ReturnURL +} diff --git a/models/components/authorizeactionpackresponse.go b/models/components/authorizeactionpackresponse.go new file mode 100644 index 00000000..79e6b067 --- /dev/null +++ b/models/components/authorizeactionpackresponse.go @@ -0,0 +1,17 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +type AuthorizeActionPackResponse struct { + // URL that the customer UI should navigate the end user to in order to begin the third-party OAuth flow. + // After the user consents, control returns to `returnUrl` from the request. + // + RedirectURL string `json:"redirectUrl"` +} + +func (a *AuthorizeActionPackResponse) GetRedirectURL() string { + if a == nil { + return "" + } + return a.RedirectURL +} diff --git a/models/components/chatsuggestion.go b/models/components/chatsuggestion.go index 32a6142d..be2e3fa0 100644 --- a/models/components/chatsuggestion.go +++ b/models/components/chatsuggestion.go @@ -5,8 +5,12 @@ package components type ChatSuggestion struct { // The actionable chat query to run when the user selects this suggestion. Query *string `json:"query,omitempty"` + // Button text to show for the suggestion action. + Cta *string `json:"cta,omitempty"` // Targeted Glean Chat feature for the suggestion. Feature *string `json:"feature,omitempty"` + // Document IDs that grounded the suggestion. + SourceDocumentIds []string `json:"sourceDocumentIds,omitempty"` } func (c *ChatSuggestion) GetQuery() *string { @@ -16,9 +20,23 @@ func (c *ChatSuggestion) GetQuery() *string { return c.Query } +func (c *ChatSuggestion) GetCta() *string { + if c == nil { + return nil + } + return c.Cta +} + func (c *ChatSuggestion) GetFeature() *string { if c == nil { return nil } return c.Feature } + +func (c *ChatSuggestion) GetSourceDocumentIds() []string { + if c == nil { + return nil + } + return c.SourceDocumentIds +} diff --git a/models/components/collection.go b/models/components/collection.go index a26bc36f..cadafe3d 100644 --- a/models/components/collection.go +++ b/models/components/collection.go @@ -28,6 +28,8 @@ type Collection struct { // The datasource type this Collection can hold. AllowedDatasource *string `json:"allowedDatasource,omitempty"` Permissions *ObjectPermissions `json:"permissions,omitempty"` + // An opaque token that represents this particular UGC. To be used for `/feedback` reporting. + TrackingToken *string `json:"trackingToken,omitempty"` // The unique ID of the Collection. ID int64 `json:"id"` CreateTime *time.Time `json:"createTime,omitempty"` @@ -137,6 +139,13 @@ func (c *Collection) GetPermissions() *ObjectPermissions { return c.Permissions } +func (c *Collection) GetTrackingToken() *string { + if c == nil { + return nil + } + return c.TrackingToken +} + func (c *Collection) GetID() int64 { if c == nil { return 0 diff --git a/models/components/collectionerror.go b/models/components/collectionerror.go index 3aacc503..f795ed5f 100644 --- a/models/components/collectionerror.go +++ b/models/components/collectionerror.go @@ -16,6 +16,7 @@ const ( CollectionErrorErrorCodeHeightViolation CollectionErrorErrorCode = "HEIGHT_VIOLATION" CollectionErrorErrorCodeWidthViolation CollectionErrorErrorCode = "WIDTH_VIOLATION" CollectionErrorErrorCodeNoPermissions CollectionErrorErrorCode = "NO_PERMISSIONS" + CollectionErrorErrorCodeCorruptItem CollectionErrorErrorCode = "CORRUPT_ITEM" ) func (e CollectionErrorErrorCode) ToPointer() *CollectionErrorErrorCode { @@ -26,7 +27,7 @@ func (e CollectionErrorErrorCode) ToPointer() *CollectionErrorErrorCode { func (e *CollectionErrorErrorCode) IsExact() bool { if e != nil { switch *e { - case "NAME_EXISTS", "NOT_FOUND", "COLLECTION_PINNED", "CONCURRENT_HIERARCHY_EDIT", "HEIGHT_VIOLATION", "WIDTH_VIOLATION", "NO_PERMISSIONS": + case "NAME_EXISTS", "NOT_FOUND", "COLLECTION_PINNED", "CONCURRENT_HIERARCHY_EDIT", "HEIGHT_VIOLATION", "WIDTH_VIOLATION", "NO_PERMISSIONS", "CORRUPT_ITEM": return true } } diff --git a/models/components/currentactiveusers.go b/models/components/currentactiveusers.go index 0209f746..54052f2b 100644 --- a/models/components/currentactiveusers.go +++ b/models/components/currentactiveusers.go @@ -3,9 +3,9 @@ package components type CurrentActiveUsers struct { - // Number of current Monthly Active Users, in the specified departments. + // Number of current Monthly Active Users. MonthlyActiveUsers *int64 `json:"monthlyActiveUsers,omitempty"` - // Number of current Weekly Active Users, in the specified departments. + // Number of current Weekly Active Users. WeeklyActiveUsers *int64 `json:"weeklyActiveUsers,omitempty"` } diff --git a/models/components/custommetadatapropertydefinition.go b/models/components/custommetadatapropertydefinition.go new file mode 100644 index 00000000..ed5a60f4 --- /dev/null +++ b/models/components/custommetadatapropertydefinition.go @@ -0,0 +1,59 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// CustomMetadataPropertyDefinitionPropertyType - The type of metadata key. This governs the search and faceting behavior. +type CustomMetadataPropertyDefinitionPropertyType string + +const ( + CustomMetadataPropertyDefinitionPropertyTypeText CustomMetadataPropertyDefinitionPropertyType = "TEXT" + CustomMetadataPropertyDefinitionPropertyTypePicklist CustomMetadataPropertyDefinitionPropertyType = "PICKLIST" + CustomMetadataPropertyDefinitionPropertyTypeTextlist CustomMetadataPropertyDefinitionPropertyType = "TEXTLIST" + CustomMetadataPropertyDefinitionPropertyTypeMultipicklist CustomMetadataPropertyDefinitionPropertyType = "MULTIPICKLIST" +) + +func (e CustomMetadataPropertyDefinitionPropertyType) ToPointer() *CustomMetadataPropertyDefinitionPropertyType { + return &e +} + +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *CustomMetadataPropertyDefinitionPropertyType) IsExact() bool { + if e != nil { + switch *e { + case "TEXT", "PICKLIST", "TEXTLIST", "MULTIPICKLIST": + return true + } + } + return false +} + +// CustomMetadataPropertyDefinition - The definition for a key within a Custom Metadata schema. Only the fields applicable to Custom Metadata are exposed. +type CustomMetadataPropertyDefinition struct { + // The name of the metadata key. + Name string `json:"name"` + // The type of metadata key. This governs the search and faceting behavior. + PropertyType CustomMetadataPropertyDefinitionPropertyType `json:"propertyType"` + // If true then the property will not be indexed for retrieval and ranking. + SkipIndexing *bool `json:"skipIndexing,omitempty"` +} + +func (c *CustomMetadataPropertyDefinition) GetName() string { + if c == nil { + return "" + } + return c.Name +} + +func (c *CustomMetadataPropertyDefinition) GetPropertyType() CustomMetadataPropertyDefinitionPropertyType { + if c == nil { + return CustomMetadataPropertyDefinitionPropertyType("") + } + return c.PropertyType +} + +func (c *CustomMetadataPropertyDefinition) GetSkipIndexing() *bool { + if c == nil { + return nil + } + return c.SkipIndexing +} diff --git a/models/components/custommetadataputrequest.go b/models/components/custommetadataputrequest.go new file mode 100644 index 00000000..5e8bce72 --- /dev/null +++ b/models/components/custommetadataputrequest.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// CustomMetadataPutRequest - Request body for adding or updating custom metadata on a document +type CustomMetadataPutRequest struct { + // Array of custom metadata key-value pairs + CustomMetadata []CustomProperty `json:"customMetadata"` +} + +func (c *CustomMetadataPutRequest) GetCustomMetadata() []CustomProperty { + if c == nil { + return []CustomProperty{} + } + return c.CustomMetadata +} diff --git a/models/components/custommetadataschema.go b/models/components/custommetadataschema.go new file mode 100644 index 00000000..1b3bdc5d --- /dev/null +++ b/models/components/custommetadataschema.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// CustomMetadataSchema - Schema for custom metadata containing metadata key definitions +type CustomMetadataSchema struct { + // Array of metadata key definitions + MetadataKeys []CustomMetadataPropertyDefinition `json:"metadataKeys"` +} + +func (c *CustomMetadataSchema) GetMetadataKeys() []CustomMetadataPropertyDefinition { + if c == nil { + return []CustomMetadataPropertyDefinition{} + } + return c.MetadataKeys +} diff --git a/models/components/datasourcecredentialstatus.go b/models/components/datasourcecredentialstatus.go new file mode 100644 index 00000000..caafd3de --- /dev/null +++ b/models/components/datasourcecredentialstatus.go @@ -0,0 +1,29 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// DatasourceCredentialStatus - Lifecycle state of the credentials installed for a datasource instance. Mirrors the internal admin Status enum so the handler can surface the same health signals already tracked today. EXPIRING_SOON is represented as VALID_WITH_WARNINGS (with detail in `message`); EXPIRED is surfaced as INVALID plus a non-null `expiresAt` in the past. +type DatasourceCredentialStatus string + +const ( + DatasourceCredentialStatusValid DatasourceCredentialStatus = "VALID" + DatasourceCredentialStatusValidWithWarnings DatasourceCredentialStatus = "VALID_WITH_WARNINGS" + DatasourceCredentialStatusValidating DatasourceCredentialStatus = "VALIDATING" + DatasourceCredentialStatusInvalid DatasourceCredentialStatus = "INVALID" + DatasourceCredentialStatusMissing DatasourceCredentialStatus = "MISSING" +) + +func (e DatasourceCredentialStatus) ToPointer() *DatasourceCredentialStatus { + return &e +} + +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *DatasourceCredentialStatus) IsExact() bool { + if e != nil { + switch *e { + case "VALID", "VALID_WITH_WARNINGS", "VALIDATING", "INVALID", "MISSING": + return true + } + } + return false +} diff --git a/models/components/datasourcecredentialstatusresponse.go b/models/components/datasourcecredentialstatusresponse.go new file mode 100644 index 00000000..75492428 --- /dev/null +++ b/models/components/datasourcecredentialstatusresponse.go @@ -0,0 +1,61 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +import ( + "github.com/gleanwork/api-client-go/internal/utils" + "time" +) + +// DatasourceCredentialStatusResponse - Status of the credentials currently installed for a datasource instance. +type DatasourceCredentialStatusResponse struct { + // Lifecycle state of the credentials installed for a datasource instance. Mirrors the internal admin Status enum so the handler can surface the same health signals already tracked today. EXPIRING_SOON is represented as VALID_WITH_WARNINGS (with detail in `message`); EXPIRED is surfaced as INVALID plus a non-null `expiresAt` in the past. + // + Status DatasourceCredentialStatus `json:"status"` + // When the credentials were last rotated. Omitted when not known. + LastRotatedAt *time.Time `json:"lastRotatedAt,omitempty"` + // When the active credentials expire. Omitted when not known or not applicable to this credential type. + // + ExpiresAt *time.Time `json:"expiresAt,omitempty"` + // Optional human-readable detail about the current credential status. + Message *string `json:"message,omitempty"` +} + +func (d DatasourceCredentialStatusResponse) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DatasourceCredentialStatusResponse) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, nil); err != nil { + return err + } + return nil +} + +func (d *DatasourceCredentialStatusResponse) GetStatus() DatasourceCredentialStatus { + if d == nil { + return DatasourceCredentialStatus("") + } + return d.Status +} + +func (d *DatasourceCredentialStatusResponse) GetLastRotatedAt() *time.Time { + if d == nil { + return nil + } + return d.LastRotatedAt +} + +func (d *DatasourceCredentialStatusResponse) GetExpiresAt() *time.Time { + if d == nil { + return nil + } + return d.ExpiresAt +} + +func (d *DatasourceCredentialStatusResponse) GetMessage() *string { + if d == nil { + return nil + } + return d.Message +} diff --git a/models/components/debugdocumentlifecyclerequest.go b/models/components/debugdocumentlifecyclerequest.go new file mode 100644 index 00000000..4b4ebd61 --- /dev/null +++ b/models/components/debugdocumentlifecyclerequest.go @@ -0,0 +1,43 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// DebugDocumentLifecycleRequest - Describes the request body of the /debug/{datasource}/document/events API call. +type DebugDocumentLifecycleRequest struct { + // Object type of the document to get lifecycle events for. + ObjectType string `json:"objectType"` + // Glean Document ID within the datasource to get lifecycle events for. + DocID string `json:"docId"` + // The start date for events to be fetched. Cannot be more than 30 days (default 7 days) in the past. + StartDate *string `json:"startDate,omitempty"` + // Max number of events to be fetched. Cannot be more than 100 (default 20). + MaxEvents *int64 `json:"maxEvents,omitempty"` +} + +func (d *DebugDocumentLifecycleRequest) GetObjectType() string { + if d == nil { + return "" + } + return d.ObjectType +} + +func (d *DebugDocumentLifecycleRequest) GetDocID() string { + if d == nil { + return "" + } + return d.DocID +} + +func (d *DebugDocumentLifecycleRequest) GetStartDate() *string { + if d == nil { + return nil + } + return d.StartDate +} + +func (d *DebugDocumentLifecycleRequest) GetMaxEvents() *int64 { + if d == nil { + return nil + } + return d.MaxEvents +} diff --git a/models/components/debugdocumentlifecycleresponse.go b/models/components/debugdocumentlifecycleresponse.go new file mode 100644 index 00000000..448112cf --- /dev/null +++ b/models/components/debugdocumentlifecycleresponse.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// DebugDocumentLifecycleResponse - Describes the response body of the /debug/{datasource}/document/events API call +type DebugDocumentLifecycleResponse struct { + // List of lifecycle events corresponding to the document + LifeCycleEvents []LifeCycleEvent `json:"lifeCycleEvents,omitempty"` +} + +func (d *DebugDocumentLifecycleResponse) GetLifeCycleEvents() []LifeCycleEvent { + if d == nil { + return nil + } + return d.LifeCycleEvents +} diff --git a/models/components/editcollectionresponse.go b/models/components/editcollectionresponse.go index 1ae01c48..e12f07d8 100644 --- a/models/components/editcollectionresponse.go +++ b/models/components/editcollectionresponse.go @@ -17,6 +17,7 @@ const ( EditCollectionResponseErrorCodeHeightViolation EditCollectionResponseErrorCode = "HEIGHT_VIOLATION" EditCollectionResponseErrorCodeWidthViolation EditCollectionResponseErrorCode = "WIDTH_VIOLATION" EditCollectionResponseErrorCodeNoPermissions EditCollectionResponseErrorCode = "NO_PERMISSIONS" + EditCollectionResponseErrorCodeCorruptItem EditCollectionResponseErrorCode = "CORRUPT_ITEM" ) func (e EditCollectionResponseErrorCode) ToPointer() *EditCollectionResponseErrorCode { @@ -27,7 +28,7 @@ func (e EditCollectionResponseErrorCode) ToPointer() *EditCollectionResponseErro func (e *EditCollectionResponseErrorCode) IsExact() bool { if e != nil { switch *e { - case "NAME_EXISTS", "NOT_FOUND", "COLLECTION_PINNED", "CONCURRENT_HIERARCHY_EDIT", "HEIGHT_VIOLATION", "WIDTH_VIOLATION", "NO_PERMISSIONS": + case "NAME_EXISTS", "NOT_FOUND", "COLLECTION_PINNED", "CONCURRENT_HIERARCHY_EDIT", "HEIGHT_VIOLATION", "WIDTH_VIOLATION", "NO_PERMISSIONS", "CORRUPT_ITEM": return true } } @@ -55,6 +56,8 @@ type EditCollectionResponse struct { // The datasource type this Collection can hold. AllowedDatasource *string `json:"allowedDatasource,omitempty"` Permissions *ObjectPermissions `json:"permissions,omitempty"` + // An opaque token that represents this particular UGC. To be used for `/feedback` reporting. + TrackingToken *string `json:"trackingToken,omitempty"` // The unique ID of the Collection. ID int64 `json:"id"` CreateTime *time.Time `json:"createTime,omitempty"` @@ -167,6 +170,13 @@ func (e *EditCollectionResponse) GetPermissions() *ObjectPermissions { return e.Permissions } +func (e *EditCollectionResponse) GetTrackingToken() *string { + if e == nil { + return nil + } + return e.TrackingToken +} + func (e *EditCollectionResponse) GetID() int64 { if e == nil { return 0 diff --git a/models/components/editworkflowrequest.go b/models/components/editworkflowrequest.go new file mode 100644 index 00000000..9f528981 --- /dev/null +++ b/models/components/editworkflowrequest.go @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +type EditWorkflowRequest struct { + // The name of the workflow. + Name *string `json:"name,omitempty"` + // The workflow ID we want to update. + ID *string `json:"id,omitempty"` +} + +func (e *EditWorkflowRequest) GetName() *string { + if e == nil { + return nil + } + return e.Name +} + +func (e *EditWorkflowRequest) GetID() *string { + if e == nil { + return nil + } + return e.ID +} diff --git a/models/components/feedback.go b/models/components/feedback.go index 074944e2..d0ec20fe 100644 --- a/models/components/feedback.go +++ b/models/components/feedback.go @@ -14,6 +14,8 @@ type FeedbackCategory string const ( FeedbackCategoryAnnouncement FeedbackCategory = "ANNOUNCEMENT" + FeedbackCategoryAnswers FeedbackCategory = "ANSWERS" + FeedbackCategoryArtifacts FeedbackCategory = "ARTIFACTS" FeedbackCategoryAutocomplete FeedbackCategory = "AUTOCOMPLETE" FeedbackCategoryCollections FeedbackCategory = "COLLECTIONS" FeedbackCategoryFeed FeedbackCategory = "FEED" @@ -38,6 +40,10 @@ func (e *FeedbackCategory) UnmarshalJSON(data []byte) error { switch v { case "ANNOUNCEMENT": fallthrough + case "ANSWERS": + fallthrough + case "ARTIFACTS": + fallthrough case "AUTOCOMPLETE": fallthrough case "COLLECTIONS": @@ -66,79 +72,79 @@ func (e *FeedbackCategory) UnmarshalJSON(data []byte) error { } } -// Event - The action the user took within a Glean client with respect to the object referred to by the given `trackingToken`. -type Event string +// FeedbackEvent - The action the user took within a Glean client with respect to the object referred to by the given `trackingToken`. +type FeedbackEvent string const ( - // EventClick The object's primary link was clicked with the intent to view its full representation. Depending on the object type, this may imply an external navigation or navigating to a new page or view within the Glean app. - EventClick Event = "CLICK" - // EventContainerClick A link to the object's parent container (e.g. the folder in which it's located) was clicked. - EventContainerClick Event = "CONTAINER_CLICK" - // EventCopyLink The user copied a link to the primary link. - EventCopyLink Event = "COPY_LINK" - // EventCreate The user creates a document. - EventCreate Event = "CREATE" - // EventDismiss The user dismissed the object such that it was hidden from view. - EventDismiss Event = "DISMISS" - // EventDownvote The user gave feedback that the object was not useful. - EventDownvote Event = "DOWNVOTE" - // EventEmail The user attempted to send an email. - EventEmail Event = "EMAIL" - // EventExecute The user executed the object (e.g. ran a workflow). - EventExecute Event = "EXECUTE" - // EventFilter The user applied a filter. - EventFilter Event = "FILTER" - // EventFirstToken The first token of a streaming response is received. - EventFirstToken Event = "FIRST_TOKEN" - // EventFocusIn The user clicked into an interactive element, e.g. the search box. - EventFocusIn Event = "FOCUS_IN" - // EventLastToken The final token of a streaming response is received. - EventLastToken Event = "LAST_TOKEN" - // EventManualFeedback The user submitted textual manual feedback regarding the object. - EventManualFeedback Event = "MANUAL_FEEDBACK" - // EventManualFeedbackSideBySide The user submitted comparative feedback for multiple side-by-side implementations. - EventManualFeedbackSideBySide Event = "MANUAL_FEEDBACK_SIDE_BY_SIDE" - // EventFeedbackTimeSaved The user submitted feedback about time saved by an agent or workflow. - EventFeedbackTimeSaved Event = "FEEDBACK_TIME_SAVED" - // EventMarkAsRead The user explicitly marked the content as read. - EventMarkAsRead Event = "MARK_AS_READ" - // EventMessage The user attempted to send a message using their default messaing app. - EventMessage Event = "MESSAGE" - // EventMiddleClick The user middle clicked the object's primary link with the intent to open its full representation in a new tab. - EventMiddleClick Event = "MIDDLE_CLICK" - // EventPageBlur The user puts a page out of focus but keeps it in the background. - EventPageBlur Event = "PAGE_BLUR" - // EventPageFocus The user puts a page in focus, meaning it is the first to receive keyboard events. - EventPageFocus Event = "PAGE_FOCUS" - // EventPageLeave The user leaves a page and it is unloaded (by clicking a link, closing the tab/window, etc). - EventPageLeave Event = "PAGE_LEAVE" - // EventPreview The user clicked the object's inline preview affordance. - EventPreview Event = "PREVIEW" - EventRelatedClick Event = "RELATED_CLICK" - // EventRightClick The user right clicked the object's primary link. This may indicate an intent to open it in a new tab or copy it. - EventRightClick Event = "RIGHT_CLICK" - // EventSectionClick The user clicked a link to a subsection of the primary object. - EventSectionClick Event = "SECTION_CLICK" - // EventSeen The user has likely seen the object (e.g. took action to make the object visible within the user's viewport). - EventSeen Event = "SEEN" - // EventSelect The user explicitly selected something, eg. a chat response variant they prefer. - EventSelect Event = "SELECT" - // EventShare The user shared the object with another user. - EventShare Event = "SHARE" - // EventShowMore The user clicked the object's show more affordance. - EventShowMore Event = "SHOW_MORE" - // EventUpvote The user gave feedback that the object was useful. - EventUpvote Event = "UPVOTE" - // EventView The object was visible within the user's viewport. - EventView Event = "VIEW" - // EventVisible The object was visible within the user's viewport. - EventVisible Event = "VISIBLE" + // FeedbackEventClick The object's primary link was clicked with the intent to view its full representation. Depending on the object type, this may imply an external navigation or navigating to a new page or view within the Glean app. + FeedbackEventClick FeedbackEvent = "CLICK" + // FeedbackEventContainerClick A link to the object's parent container (e.g. the folder in which it's located) was clicked. + FeedbackEventContainerClick FeedbackEvent = "CONTAINER_CLICK" + // FeedbackEventCopyLink The user copied a link to the primary link. + FeedbackEventCopyLink FeedbackEvent = "COPY_LINK" + // FeedbackEventCreate The user creates a document. + FeedbackEventCreate FeedbackEvent = "CREATE" + // FeedbackEventDismiss The user dismissed the object such that it was hidden from view. + FeedbackEventDismiss FeedbackEvent = "DISMISS" + // FeedbackEventDownvote The user gave feedback that the object was not useful. + FeedbackEventDownvote FeedbackEvent = "DOWNVOTE" + // FeedbackEventEmail The user attempted to send an email. + FeedbackEventEmail FeedbackEvent = "EMAIL" + // FeedbackEventExecute The user executed the object (e.g. ran a workflow). + FeedbackEventExecute FeedbackEvent = "EXECUTE" + // FeedbackEventFilter The user applied a filter. + FeedbackEventFilter FeedbackEvent = "FILTER" + // FeedbackEventFirstToken The first token of a streaming response is received. + FeedbackEventFirstToken FeedbackEvent = "FIRST_TOKEN" + // FeedbackEventFocusIn The user clicked into an interactive element, e.g. the search box. + FeedbackEventFocusIn FeedbackEvent = "FOCUS_IN" + // FeedbackEventLastToken The final token of a streaming response is received. + FeedbackEventLastToken FeedbackEvent = "LAST_TOKEN" + // FeedbackEventManualFeedback The user submitted textual manual feedback regarding the object. + FeedbackEventManualFeedback FeedbackEvent = "MANUAL_FEEDBACK" + // FeedbackEventManualFeedbackSideBySide The user submitted comparative feedback for multiple side-by-side implementations. + FeedbackEventManualFeedbackSideBySide FeedbackEvent = "MANUAL_FEEDBACK_SIDE_BY_SIDE" + // FeedbackEventFeedbackTimeSaved The user submitted feedback about time saved by an agent or workflow. + FeedbackEventFeedbackTimeSaved FeedbackEvent = "FEEDBACK_TIME_SAVED" + // FeedbackEventMarkAsRead The user explicitly marked the content as read. + FeedbackEventMarkAsRead FeedbackEvent = "MARK_AS_READ" + // FeedbackEventMessage The user attempted to send a message using their default messaing app. + FeedbackEventMessage FeedbackEvent = "MESSAGE" + // FeedbackEventMiddleClick The user middle clicked the object's primary link with the intent to open its full representation in a new tab. + FeedbackEventMiddleClick FeedbackEvent = "MIDDLE_CLICK" + // FeedbackEventPageBlur The user puts a page out of focus but keeps it in the background. + FeedbackEventPageBlur FeedbackEvent = "PAGE_BLUR" + // FeedbackEventPageFocus The user puts a page in focus, meaning it is the first to receive keyboard events. + FeedbackEventPageFocus FeedbackEvent = "PAGE_FOCUS" + // FeedbackEventPageLeave The user leaves a page and it is unloaded (by clicking a link, closing the tab/window, etc). + FeedbackEventPageLeave FeedbackEvent = "PAGE_LEAVE" + // FeedbackEventPreview The user clicked the object's inline preview affordance. + FeedbackEventPreview FeedbackEvent = "PREVIEW" + FeedbackEventRelatedClick FeedbackEvent = "RELATED_CLICK" + // FeedbackEventRightClick The user right clicked the object's primary link. This may indicate an intent to open it in a new tab or copy it. + FeedbackEventRightClick FeedbackEvent = "RIGHT_CLICK" + // FeedbackEventSectionClick The user clicked a link to a subsection of the primary object. + FeedbackEventSectionClick FeedbackEvent = "SECTION_CLICK" + // FeedbackEventSeen The user has likely seen the object (e.g. took action to make the object visible within the user's viewport). + FeedbackEventSeen FeedbackEvent = "SEEN" + // FeedbackEventSelect The user explicitly selected something, eg. a chat response variant they prefer. + FeedbackEventSelect FeedbackEvent = "SELECT" + // FeedbackEventShare The user shared the object with another user. + FeedbackEventShare FeedbackEvent = "SHARE" + // FeedbackEventShowMore The user clicked the object's show more affordance. + FeedbackEventShowMore FeedbackEvent = "SHOW_MORE" + // FeedbackEventUpvote The user gave feedback that the object was useful. + FeedbackEventUpvote FeedbackEvent = "UPVOTE" + // FeedbackEventView The object was visible within the user's viewport. + FeedbackEventView FeedbackEvent = "VIEW" + // FeedbackEventVisible The object was visible within the user's viewport. + FeedbackEventVisible FeedbackEvent = "VISIBLE" ) -func (e Event) ToPointer() *Event { +func (e FeedbackEvent) ToPointer() *FeedbackEvent { return &e } -func (e *Event) UnmarshalJSON(data []byte) error { +func (e *FeedbackEvent) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -207,10 +213,10 @@ func (e *Event) UnmarshalJSON(data []byte) error { case "VIEW": fallthrough case "VISIBLE": - *e = Event(v) + *e = FeedbackEvent(v) return nil default: - return fmt.Errorf("invalid value for Event: %v", v) + return fmt.Errorf("invalid value for FeedbackEvent: %v", v) } } @@ -248,7 +254,7 @@ type Feedback struct { // A list of server-generated trackingTokens to which this event applies. TrackingTokens []string `json:"trackingTokens"` // The action the user took within a Glean client with respect to the object referred to by the given `trackingToken`. - Event Event `json:"event"` + Event FeedbackEvent `json:"event"` // Position of the element in the case that the client controls order (such as feed and autocomplete). Position *int64 `json:"position,omitempty"` // For type MANUAL_FEEDBACK, contains string of user feedback. For autocomplete, partial query string. For feed, string of user feedback in addition to manual feedback signals extracted from all suggested content. @@ -310,9 +316,9 @@ func (f *Feedback) GetTrackingTokens() []string { return f.TrackingTokens } -func (f *Feedback) GetEvent() Event { +func (f *Feedback) GetEvent() FeedbackEvent { if f == nil { - return Event("") + return FeedbackEvent("") } return f.Event } diff --git a/models/components/feedentry.go b/models/components/feedentry.go index 4840423f..4b2b4451 100644 --- a/models/components/feedentry.go +++ b/models/components/feedentry.go @@ -100,11 +100,16 @@ const ( JustificationTypeActiveDiscussion JustificationType = "ACTIVE_DISCUSSION" JustificationTypeMidDayCatchUp JustificationType = "MID_DAY_CATCH_UP" JustificationTypeQuerySuggestion JustificationType = "QUERY_SUGGESTION" + JustificationTypeCoworkCujPromo JustificationType = "COWORK_CUJ_PROMO" JustificationTypeWeeklyMeetings JustificationType = "WEEKLY_MEETINGS" JustificationTypeFollowUp JustificationType = "FOLLOW_UP" JustificationTypeMilestoneTimelineCheck JustificationType = "MILESTONE_TIMELINE_CHECK" JustificationTypeProjectDiscussionDigest JustificationType = "PROJECT_DISCUSSION_DIGEST" + JustificationTypeProjectFocusBlock JustificationType = "PROJECT_FOCUS_BLOCK" JustificationTypeProjectNextStep JustificationType = "PROJECT_NEXT_STEP" + JustificationTypeDemoCard JustificationType = "DEMO_CARD" + JustificationTypeOooPlanner JustificationType = "OOO_PLANNER" + JustificationTypeOooCatchUp JustificationType = "OOO_CATCH_UP" ) func (e JustificationType) ToPointer() *JustificationType { @@ -115,7 +120,7 @@ func (e JustificationType) ToPointer() *JustificationType { func (e *JustificationType) IsExact() bool { if e != nil { switch *e { - case "FREQUENTLY_ACCESSED", "RECENTLY_ACCESSED", "TRENDING_DOCUMENT", "VERIFICATION_REMINDER", "SUGGESTED_DOCUMENT", "EMPTY_STATE_SUGGESTION", "FRECENCY_SCORED", "SERVER_GENERATED", "USE_CASE", "UPDATE_SINCE_LAST_VIEW", "RECENTLY_STARTED", "EVENT", "USER_MENTION", "ANNOUNCEMENT", "EXTERNAL_ANNOUNCEMENT", "POPULARITY_BASED_TRENDING", "COMPANY_RESOURCE", "EVENT_DOCUMENT_FROM_CONTENT", "EVENT_DOCUMENT_FROM_SEARCH", "VISIT_AFFINITY_SCORED", "SUGGESTED_APP", "SUGGESTED_PERSON", "ACTIVITY_HIGHLIGHT", "SAVED_SEARCH", "SUGGESTED_CHANNEL", "PEOPLE_CELEBRATIONS", "SOCIAL_LINK", "ZERO_STATE_CHAT_SUGGESTION", "ZERO_STATE_CHAT_TOOL_SUGGESTION", "ZERO_STATE_PROMPT_TEMPLATE_SUGGESTION", "ZERO_STATE_STATIC_WORKFLOW_SUGGESTION", "ZERO_STATE_AGENT_SUGGESTION", "PERSONALIZED_CHAT_SUGGESTION", "DAILY_DIGEST", "TASK", "PLAN_MY_DAY", "END_MY_DAY", "STARTER_KIT_EXTENSION", "STARTER_KIT_ORG_CHART", "STARTER_KIT_ADD_DOC", "MEETING_RECAP", "ACTIVE_DISCUSSION", "MID_DAY_CATCH_UP", "QUERY_SUGGESTION", "WEEKLY_MEETINGS", "FOLLOW_UP", "MILESTONE_TIMELINE_CHECK", "PROJECT_DISCUSSION_DIGEST", "PROJECT_NEXT_STEP": + case "FREQUENTLY_ACCESSED", "RECENTLY_ACCESSED", "TRENDING_DOCUMENT", "VERIFICATION_REMINDER", "SUGGESTED_DOCUMENT", "EMPTY_STATE_SUGGESTION", "FRECENCY_SCORED", "SERVER_GENERATED", "USE_CASE", "UPDATE_SINCE_LAST_VIEW", "RECENTLY_STARTED", "EVENT", "USER_MENTION", "ANNOUNCEMENT", "EXTERNAL_ANNOUNCEMENT", "POPULARITY_BASED_TRENDING", "COMPANY_RESOURCE", "EVENT_DOCUMENT_FROM_CONTENT", "EVENT_DOCUMENT_FROM_SEARCH", "VISIT_AFFINITY_SCORED", "SUGGESTED_APP", "SUGGESTED_PERSON", "ACTIVITY_HIGHLIGHT", "SAVED_SEARCH", "SUGGESTED_CHANNEL", "PEOPLE_CELEBRATIONS", "SOCIAL_LINK", "ZERO_STATE_CHAT_SUGGESTION", "ZERO_STATE_CHAT_TOOL_SUGGESTION", "ZERO_STATE_PROMPT_TEMPLATE_SUGGESTION", "ZERO_STATE_STATIC_WORKFLOW_SUGGESTION", "ZERO_STATE_AGENT_SUGGESTION", "PERSONALIZED_CHAT_SUGGESTION", "DAILY_DIGEST", "TASK", "PLAN_MY_DAY", "END_MY_DAY", "STARTER_KIT_EXTENSION", "STARTER_KIT_ORG_CHART", "STARTER_KIT_ADD_DOC", "MEETING_RECAP", "ACTIVE_DISCUSSION", "MID_DAY_CATCH_UP", "QUERY_SUGGESTION", "COWORK_CUJ_PROMO", "WEEKLY_MEETINGS", "FOLLOW_UP", "MILESTONE_TIMELINE_CHECK", "PROJECT_DISCUSSION_DIGEST", "PROJECT_FOCUS_BLOCK", "PROJECT_NEXT_STEP", "DEMO_CARD", "OOO_PLANNER", "OOO_CATCH_UP": return true } } diff --git a/models/components/feedrequest.go b/models/components/feedrequest.go index 1026ad62..64a43533 100644 --- a/models/components/feedrequest.go +++ b/models/components/feedrequest.go @@ -41,11 +41,16 @@ const ( FeedRequestCategoryStarterKit FeedRequestCategory = "STARTER_KIT" FeedRequestCategoryMidDayCatchUp FeedRequestCategory = "MID_DAY_CATCH_UP" FeedRequestCategoryQuerySuggestion FeedRequestCategory = "QUERY_SUGGESTION" + FeedRequestCategoryCoworkCujPromo FeedRequestCategory = "COWORK_CUJ_PROMO" FeedRequestCategoryWeeklyMeetings FeedRequestCategory = "WEEKLY_MEETINGS" FeedRequestCategoryFollowUp FeedRequestCategory = "FOLLOW_UP" FeedRequestCategoryMilestoneTimelineCheck FeedRequestCategory = "MILESTONE_TIMELINE_CHECK" FeedRequestCategoryProjectDiscussionDigest FeedRequestCategory = "PROJECT_DISCUSSION_DIGEST" + FeedRequestCategoryProjectFocusBlock FeedRequestCategory = "PROJECT_FOCUS_BLOCK" FeedRequestCategoryProjectNextStep FeedRequestCategory = "PROJECT_NEXT_STEP" + FeedRequestCategoryDemoCard FeedRequestCategory = "DEMO_CARD" + FeedRequestCategoryOooPlanner FeedRequestCategory = "OOO_PLANNER" + FeedRequestCategoryOooCatchUp FeedRequestCategory = "OOO_CATCH_UP" ) func (e FeedRequestCategory) ToPointer() *FeedRequestCategory { @@ -119,6 +124,8 @@ func (e *FeedRequestCategory) UnmarshalJSON(data []byte) error { fallthrough case "QUERY_SUGGESTION": fallthrough + case "COWORK_CUJ_PROMO": + fallthrough case "WEEKLY_MEETINGS": fallthrough case "FOLLOW_UP": @@ -127,7 +134,15 @@ func (e *FeedRequestCategory) UnmarshalJSON(data []byte) error { fallthrough case "PROJECT_DISCUSSION_DIGEST": fallthrough + case "PROJECT_FOCUS_BLOCK": + fallthrough case "PROJECT_NEXT_STEP": + fallthrough + case "DEMO_CARD": + fallthrough + case "OOO_PLANNER": + fallthrough + case "OOO_CATCH_UP": *e = FeedRequestCategory(v) return nil default: diff --git a/models/components/feedresult.go b/models/components/feedresult.go index 3d75af04..952d93d3 100644 --- a/models/components/feedresult.go +++ b/models/components/feedresult.go @@ -37,11 +37,16 @@ const ( FeedResultCategoryStarterKit FeedResultCategory = "STARTER_KIT" FeedResultCategoryMidDayCatchUp FeedResultCategory = "MID_DAY_CATCH_UP" FeedResultCategoryQuerySuggestion FeedResultCategory = "QUERY_SUGGESTION" + FeedResultCategoryCoworkCujPromo FeedResultCategory = "COWORK_CUJ_PROMO" FeedResultCategoryWeeklyMeetings FeedResultCategory = "WEEKLY_MEETINGS" FeedResultCategoryFollowUp FeedResultCategory = "FOLLOW_UP" FeedResultCategoryMilestoneTimelineCheck FeedResultCategory = "MILESTONE_TIMELINE_CHECK" FeedResultCategoryProjectDiscussionDigest FeedResultCategory = "PROJECT_DISCUSSION_DIGEST" + FeedResultCategoryProjectFocusBlock FeedResultCategory = "PROJECT_FOCUS_BLOCK" FeedResultCategoryProjectNextStep FeedResultCategory = "PROJECT_NEXT_STEP" + FeedResultCategoryDemoCard FeedResultCategory = "DEMO_CARD" + FeedResultCategoryOooPlanner FeedResultCategory = "OOO_PLANNER" + FeedResultCategoryOooCatchUp FeedResultCategory = "OOO_CATCH_UP" ) func (e FeedResultCategory) ToPointer() *FeedResultCategory { @@ -52,7 +57,7 @@ func (e FeedResultCategory) ToPointer() *FeedResultCategory { func (e *FeedResultCategory) IsExact() bool { if e != nil { switch *e { - case "DOCUMENT_SUGGESTION", "DOCUMENT_SUGGESTION_SCENARIO", "TRENDING_DOCUMENT", "USE_CASE", "VERIFICATION_REMINDER", "EVENT", "ANNOUNCEMENT", "MENTION", "DATASOURCE_AFFINITY", "RECENT", "COMPANY_RESOURCE", "EXPERIMENTAL", "PEOPLE_CELEBRATIONS", "SOCIAL_LINK", "EXTERNAL_TASKS", "DISPLAYABLE_LIST", "ZERO_STATE_CHAT_SUGGESTION", "ZERO_STATE_CHAT_TOOL_SUGGESTION", "ZERO_STATE_WORKFLOW_CREATED_BY_ME", "ZERO_STATE_WORKFLOW_FAVORITES", "ZERO_STATE_WORKFLOW_POPULAR", "ZERO_STATE_WORKFLOW_RECENT", "ZERO_STATE_WORKFLOW_SUGGESTION", "PERSONALIZED_CHAT_SUGGESTION", "DAILY_DIGEST", "TASK", "PLAN_MY_DAY", "END_MY_DAY", "STARTER_KIT", "MID_DAY_CATCH_UP", "QUERY_SUGGESTION", "WEEKLY_MEETINGS", "FOLLOW_UP", "MILESTONE_TIMELINE_CHECK", "PROJECT_DISCUSSION_DIGEST", "PROJECT_NEXT_STEP": + case "DOCUMENT_SUGGESTION", "DOCUMENT_SUGGESTION_SCENARIO", "TRENDING_DOCUMENT", "USE_CASE", "VERIFICATION_REMINDER", "EVENT", "ANNOUNCEMENT", "MENTION", "DATASOURCE_AFFINITY", "RECENT", "COMPANY_RESOURCE", "EXPERIMENTAL", "PEOPLE_CELEBRATIONS", "SOCIAL_LINK", "EXTERNAL_TASKS", "DISPLAYABLE_LIST", "ZERO_STATE_CHAT_SUGGESTION", "ZERO_STATE_CHAT_TOOL_SUGGESTION", "ZERO_STATE_WORKFLOW_CREATED_BY_ME", "ZERO_STATE_WORKFLOW_FAVORITES", "ZERO_STATE_WORKFLOW_POPULAR", "ZERO_STATE_WORKFLOW_RECENT", "ZERO_STATE_WORKFLOW_SUGGESTION", "PERSONALIZED_CHAT_SUGGESTION", "DAILY_DIGEST", "TASK", "PLAN_MY_DAY", "END_MY_DAY", "STARTER_KIT", "MID_DAY_CATCH_UP", "QUERY_SUGGESTION", "COWORK_CUJ_PROMO", "WEEKLY_MEETINGS", "FOLLOW_UP", "MILESTONE_TIMELINE_CHECK", "PROJECT_DISCUSSION_DIGEST", "PROJECT_FOCUS_BLOCK", "PROJECT_NEXT_STEP", "DEMO_CARD", "OOO_PLANNER", "OOO_CATCH_UP": return true } } diff --git a/models/components/getcollectionresponse.go b/models/components/getcollectionresponse.go index 6753571a..c82aea23 100644 --- a/models/components/getcollectionresponse.go +++ b/models/components/getcollectionresponse.go @@ -3,11 +3,13 @@ package components type GetCollectionResponse struct { - Collection *Collection `json:"collection,omitempty"` - RootCollection *Collection `json:"rootCollection,omitempty"` - // An opaque token that represents this particular Collection. To be used for `/feedback` reporting. - TrackingToken *string `json:"trackingToken,omitempty"` - Error *CollectionError `json:"error,omitempty"` + Collection *Collection `json:"collection,omitempty"` + RootCollection *Collection `json:"rootCollection,omitempty"` + Error *CollectionError `json:"error,omitempty"` + // Use `collection.trackingToken` instead. + // + // Deprecated: Deprecated on 2026-05-07, removal scheduled for 2027-01-15: Use `collection.trackingToken` instead.. + TrackingToken *string `json:"trackingToken,omitempty"` } func (g *GetCollectionResponse) GetCollection() *Collection { @@ -24,16 +26,16 @@ func (g *GetCollectionResponse) GetRootCollection() *Collection { return g.RootCollection } -func (g *GetCollectionResponse) GetTrackingToken() *string { +func (g *GetCollectionResponse) GetError() *CollectionError { if g == nil { return nil } - return g.TrackingToken + return g.Error } -func (g *GetCollectionResponse) GetError() *CollectionError { +func (g *GetCollectionResponse) GetTrackingToken() *string { if g == nil { return nil } - return g.Error + return g.TrackingToken } diff --git a/models/components/insightsassistantrequest.go b/models/components/insightsassistantrequest.go index a6aecda9..16d8ca46 100644 --- a/models/components/insightsassistantrequest.go +++ b/models/components/insightsassistantrequest.go @@ -5,7 +5,9 @@ package components type InsightsAssistantRequest struct { // Departments for which Insights are requested. Departments []string `json:"departments,omitempty"` - DayRange *Period `json:"dayRange,omitempty"` + // Manager emails whose teams should be filtered for. Empty array means no filtering. + ManagerEmails []string `json:"managerEmails,omitempty"` + DayRange *Period `json:"dayRange,omitempty"` } func (i *InsightsAssistantRequest) GetDepartments() []string { @@ -15,6 +17,13 @@ func (i *InsightsAssistantRequest) GetDepartments() []string { return i.Departments } +func (i *InsightsAssistantRequest) GetManagerEmails() []string { + if i == nil { + return nil + } + return i.ManagerEmails +} + func (i *InsightsAssistantRequest) GetDayRange() *Period { if i == nil { return nil diff --git a/models/components/insightschatsummary.go b/models/components/insightschatsummary.go index 6d60e08a..b1d91e6e 100644 --- a/models/components/insightschatsummary.go +++ b/models/components/insightschatsummary.go @@ -3,9 +3,9 @@ package components type InsightsChatSummary struct { - // Number of current Monthly Active Users, in the specified departments. + // Number of current Monthly Active Users. MonthlyActiveUsers *int64 `json:"monthlyActiveUsers,omitempty"` - // Number of current Weekly Active Users, in the specified departments. + // Number of current Weekly Active Users. WeeklyActiveUsers *int64 `json:"weeklyActiveUsers,omitempty"` // Total number of chats by users over the specified time period. NumChats *int64 `json:"numChats,omitempty"` diff --git a/models/components/insightsoverviewrequest.go b/models/components/insightsoverviewrequest.go index b2ff4cee..5186f212 100644 --- a/models/components/insightsoverviewrequest.go +++ b/models/components/insightsoverviewrequest.go @@ -5,7 +5,9 @@ package components type InsightsOverviewRequest struct { // Departments for which Insights are requested. Departments []string `json:"departments,omitempty"` - DayRange *Period `json:"dayRange,omitempty"` + // Manager emails whose teams should be filtered for. Empty array means no filtering. + ManagerEmails []string `json:"managerEmails,omitempty"` + DayRange *Period `json:"dayRange,omitempty"` } func (i *InsightsOverviewRequest) GetDepartments() []string { @@ -15,6 +17,13 @@ func (i *InsightsOverviewRequest) GetDepartments() []string { return i.Departments } +func (i *InsightsOverviewRequest) GetManagerEmails() []string { + if i == nil { + return nil + } + return i.ManagerEmails +} + func (i *InsightsOverviewRequest) GetDayRange() *Period { if i == nil { return nil diff --git a/models/components/insightsoverviewresponse.go b/models/components/insightsoverviewresponse.go index c968c422..39b3895f 100644 --- a/models/components/insightsoverviewresponse.go +++ b/models/components/insightsoverviewresponse.go @@ -3,9 +3,9 @@ package components type InsightsOverviewResponse struct { - // Number of current Monthly Active Users, in the specified departments. + // Number of current Monthly Active Users. MonthlyActiveUsers *int64 `json:"monthlyActiveUsers,omitempty"` - // Number of current Weekly Active Users, in the specified departments. + // Number of current Weekly Active Users. WeeklyActiveUsers *int64 `json:"weeklyActiveUsers,omitempty"` // Department name(s). Departments []string `json:"departments,omitempty"` @@ -18,11 +18,14 @@ type InsightsOverviewResponse struct { SearchActiveUsers *CurrentActiveUsers `json:"searchActiveUsers,omitempty"` AssistantActiveUsers *CurrentActiveUsers `json:"assistantActiveUsers,omitempty"` AgentsActiveUsers *CurrentActiveUsers `json:"agentsActiveUsers,omitempty"` + McpActiveUsers *CurrentActiveUsers `json:"mcpActiveUsers,omitempty"` ExtensionSummary *CurrentActiveUsers `json:"extensionSummary,omitempty"` UgcSummary *CurrentActiveUsers `json:"ugcSummary,omitempty"` // Unix timestamp of the last update for the insights data in the response. LastUpdatedTs *int64 `json:"lastUpdatedTs,omitempty"` // Search session satisfaction rate, over the specified time period in the specified departments. + // + // Deprecated: Deprecated on 2026-05-13, removal scheduled for 2027-01-15: This property is no longer supported. Please contact Support for alternatives.. SearchSessionSatisfaction *float32 `json:"searchSessionSatisfaction,omitempty"` MonthlyActiveUserTimeseries *LabeledCountInfo `json:"monthlyActiveUserTimeseries,omitempty"` WeeklyActiveUserTimeseries *LabeledCountInfo `json:"weeklyActiveUserTimeseries,omitempty"` @@ -36,9 +39,13 @@ type InsightsOverviewResponse struct { AgentsMonthlyActiveUserTimeseries *LabeledCountInfo `json:"agentsMonthlyActiveUserTimeseries,omitempty"` AgentsWeeklyActiveUserTimeseries *LabeledCountInfo `json:"agentsWeeklyActiveUserTimeseries,omitempty"` AgentsDailyActiveUserTimeseries *LabeledCountInfo `json:"agentsDailyActiveUserTimeseries,omitempty"` + McpMonthlyActiveUserTimeseries *LabeledCountInfo `json:"mcpMonthlyActiveUserTimeseries,omitempty"` + McpWeeklyActiveUserTimeseries *LabeledCountInfo `json:"mcpWeeklyActiveUserTimeseries,omitempty"` + McpDailyActiveUserTimeseries *LabeledCountInfo `json:"mcpDailyActiveUserTimeseries,omitempty"` SearchesTimeseries *LabeledCountInfo `json:"searchesTimeseries,omitempty"` AssistantInteractionsTimeseries *LabeledCountInfo `json:"assistantInteractionsTimeseries,omitempty"` AgentRunsTimeseries *LabeledCountInfo `json:"agentRunsTimeseries,omitempty"` + McpCallsTimeseries *LabeledCountInfo `json:"mcpCallsTimeseries,omitempty"` // Counts of search result clicks, by datasource, over the specified time period in the specified departments. SearchDatasourceCounts map[string]int64 `json:"searchDatasourceCounts,omitempty"` // Counts of cited documents in chat, by datasource, over the specified time period in the specified departments. @@ -117,6 +124,13 @@ func (i *InsightsOverviewResponse) GetAgentsActiveUsers() *CurrentActiveUsers { return i.AgentsActiveUsers } +func (i *InsightsOverviewResponse) GetMcpActiveUsers() *CurrentActiveUsers { + if i == nil { + return nil + } + return i.McpActiveUsers +} + func (i *InsightsOverviewResponse) GetExtensionSummary() *CurrentActiveUsers { if i == nil { return nil @@ -229,6 +243,27 @@ func (i *InsightsOverviewResponse) GetAgentsDailyActiveUserTimeseries() *Labeled return i.AgentsDailyActiveUserTimeseries } +func (i *InsightsOverviewResponse) GetMcpMonthlyActiveUserTimeseries() *LabeledCountInfo { + if i == nil { + return nil + } + return i.McpMonthlyActiveUserTimeseries +} + +func (i *InsightsOverviewResponse) GetMcpWeeklyActiveUserTimeseries() *LabeledCountInfo { + if i == nil { + return nil + } + return i.McpWeeklyActiveUserTimeseries +} + +func (i *InsightsOverviewResponse) GetMcpDailyActiveUserTimeseries() *LabeledCountInfo { + if i == nil { + return nil + } + return i.McpDailyActiveUserTimeseries +} + func (i *InsightsOverviewResponse) GetSearchesTimeseries() *LabeledCountInfo { if i == nil { return nil @@ -250,6 +285,13 @@ func (i *InsightsOverviewResponse) GetAgentRunsTimeseries() *LabeledCountInfo { return i.AgentRunsTimeseries } +func (i *InsightsOverviewResponse) GetMcpCallsTimeseries() *LabeledCountInfo { + if i == nil { + return nil + } + return i.McpCallsTimeseries +} + func (i *InsightsOverviewResponse) GetSearchDatasourceCounts() map[string]int64 { if i == nil { return nil diff --git a/models/components/insightsrequest.go b/models/components/insightsrequest.go index 0584ef8a..d3aa5242 100644 --- a/models/components/insightsrequest.go +++ b/models/components/insightsrequest.go @@ -3,9 +3,11 @@ package components type InsightsRequest struct { - OverviewRequest *InsightsOverviewRequest `json:"overviewRequest,omitempty"` - AssistantRequest *InsightsAssistantRequest `json:"assistantRequest,omitempty"` - AgentsRequest *AgentsInsightsV2Request `json:"agentsRequest,omitempty"` + OverviewRequest *InsightsOverviewRequest `json:"overviewRequest,omitempty"` + AssistantRequest *InsightsAssistantRequest `json:"assistantRequest,omitempty"` + AgentsRequest *AgentsInsightsV2Request `json:"agentsRequest,omitempty"` + McpRequest *McpInsightsRequest `json:"mcpRequest,omitempty"` + McpBreakdownRequest *McpBreakdownInsightsRequest `json:"mcpBreakdownRequest,omitempty"` // If true, suppresses the generation of per-user Insights in the response. Default is false. DisablePerUserInsights *bool `json:"disablePerUserInsights,omitempty"` } @@ -31,6 +33,20 @@ func (i *InsightsRequest) GetAgentsRequest() *AgentsInsightsV2Request { return i.AgentsRequest } +func (i *InsightsRequest) GetMcpRequest() *McpInsightsRequest { + if i == nil { + return nil + } + return i.McpRequest +} + +func (i *InsightsRequest) GetMcpBreakdownRequest() *McpBreakdownInsightsRequest { + if i == nil { + return nil + } + return i.McpBreakdownRequest +} + func (i *InsightsRequest) GetDisablePerUserInsights() *bool { if i == nil { return nil diff --git a/models/components/insightsresponse.go b/models/components/insightsresponse.go index fc18fb37..fd355c04 100644 --- a/models/components/insightsresponse.go +++ b/models/components/insightsresponse.go @@ -3,10 +3,12 @@ package components type InsightsResponse struct { - GleanAssist *GleanAssistInsightsResponse `json:"gleanAssist,omitempty"` - OverviewResponse *InsightsOverviewResponse `json:"overviewResponse,omitempty"` - AssistantResponse *AssistantInsightsResponse `json:"assistantResponse,omitempty"` - AgentsResponse *AgentsInsightsV2Response `json:"agentsResponse,omitempty"` + GleanAssist *GleanAssistInsightsResponse `json:"gleanAssist,omitempty"` + OverviewResponse *InsightsOverviewResponse `json:"overviewResponse,omitempty"` + AssistantResponse *AssistantInsightsResponse `json:"assistantResponse,omitempty"` + AgentsResponse *AgentsInsightsV2Response `json:"agentsResponse,omitempty"` + McpResponse *McpInsightsResponse `json:"mcpResponse,omitempty"` + McpBreakdownResponse *McpBreakdownInsightsResponse `json:"mcpBreakdownResponse,omitempty"` } func (i *InsightsResponse) GetGleanAssist() *GleanAssistInsightsResponse { @@ -36,3 +38,17 @@ func (i *InsightsResponse) GetAgentsResponse() *AgentsInsightsV2Response { } return i.AgentsResponse } + +func (i *InsightsResponse) GetMcpResponse() *McpInsightsResponse { + if i == nil { + return nil + } + return i.McpResponse +} + +func (i *InsightsResponse) GetMcpBreakdownResponse() *McpBreakdownInsightsResponse { + if i == nil { + return nil + } + return i.McpBreakdownResponse +} diff --git a/models/components/insightssearchsummary.go b/models/components/insightssearchsummary.go index c12be2e0..769dfedf 100644 --- a/models/components/insightssearchsummary.go +++ b/models/components/insightssearchsummary.go @@ -3,9 +3,9 @@ package components type InsightsSearchSummary struct { - // Number of current Monthly Active Users, in the specified departments. + // Number of current Monthly Active Users. MonthlyActiveUsers *int64 `json:"monthlyActiveUsers,omitempty"` - // Number of current Weekly Active Users, in the specified departments. + // Number of current Weekly Active Users. WeeklyActiveUsers *int64 `json:"weeklyActiveUsers,omitempty"` // Total number of searches by users over the specified time period. NumSearches *int64 `json:"numSearches,omitempty"` diff --git a/models/components/lifecycleevent.go b/models/components/lifecycleevent.go new file mode 100644 index 00000000..c3303336 --- /dev/null +++ b/models/components/lifecycleevent.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// LifeCycleEventEvent - Type of event +type LifeCycleEventEvent string + +const ( + LifeCycleEventEventUploaded LifeCycleEventEvent = "UPLOADED" + LifeCycleEventEventIndexed LifeCycleEventEvent = "INDEXED" + LifeCycleEventEventDeletionRequested LifeCycleEventEvent = "DELETION_REQUESTED" + LifeCycleEventEventDeleted LifeCycleEventEvent = "DELETED" +) + +func (e LifeCycleEventEvent) ToPointer() *LifeCycleEventEvent { + return &e +} + +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *LifeCycleEventEvent) IsExact() bool { + if e != nil { + switch *e { + case "UPLOADED", "INDEXED", "DELETION_REQUESTED", "DELETED": + return true + } + } + return false +} + +type LifeCycleEvent struct { + // Type of event + Event *LifeCycleEventEvent `json:"event,omitempty"` + // Timestamp of the event + Timestamp *string `json:"timestamp,omitempty"` +} + +func (l *LifeCycleEvent) GetEvent() *LifeCycleEventEvent { + if l == nil { + return nil + } + return l.Event +} + +func (l *LifeCycleEvent) GetTimestamp() *string { + if l == nil { + return nil + } + return l.Timestamp +} diff --git a/models/components/mcpbreakdowninsightsrequest.go b/models/components/mcpbreakdowninsightsrequest.go new file mode 100644 index 00000000..5de57341 --- /dev/null +++ b/models/components/mcpbreakdowninsightsrequest.go @@ -0,0 +1,115 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +import ( + "encoding/json" + "fmt" +) + +// BreakdownType - Type of breakdown to return. +type BreakdownType string + +const ( + BreakdownTypeUsers BreakdownType = "USERS" + BreakdownTypeHostApplications BreakdownType = "HOST_APPLICATIONS" + BreakdownTypeTools BreakdownType = "TOOLS" + BreakdownTypeServers BreakdownType = "SERVERS" +) + +func (e BreakdownType) ToPointer() *BreakdownType { + return &e +} +func (e *BreakdownType) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "USERS": + fallthrough + case "HOST_APPLICATIONS": + fallthrough + case "TOOLS": + fallthrough + case "SERVERS": + *e = BreakdownType(v) + return nil + default: + return fmt.Errorf("invalid value for BreakdownType: %v", v) + } +} + +type McpBreakdownInsightsRequest struct { + // Departments for which Insights are requested. + Departments []string `json:"departments,omitempty"` + // Manager user IDs whose teams should be filtered for. Empty array means no filtering. + ManagerIds []string `json:"managerIds,omitempty"` + // Manager emails whose teams should be filtered for. Empty array means no filtering. + ManagerEmails []string `json:"managerEmails,omitempty"` + DayRange *Period `json:"dayRange,omitempty"` + // Type of breakdown to return. + BreakdownType *BreakdownType `json:"breakdownType,omitempty"` + // Host applications to filter by. Empty array means all host applications. + HostApplications []string `json:"hostApplications,omitempty"` + // MCP tools to filter by. Empty array means all tools. + Tools []string `json:"tools,omitempty"` + // MCP servers to filter by. Empty array means all servers. + Servers []string `json:"servers,omitempty"` +} + +func (m *McpBreakdownInsightsRequest) GetDepartments() []string { + if m == nil { + return nil + } + return m.Departments +} + +func (m *McpBreakdownInsightsRequest) GetManagerIds() []string { + if m == nil { + return nil + } + return m.ManagerIds +} + +func (m *McpBreakdownInsightsRequest) GetManagerEmails() []string { + if m == nil { + return nil + } + return m.ManagerEmails +} + +func (m *McpBreakdownInsightsRequest) GetDayRange() *Period { + if m == nil { + return nil + } + return m.DayRange +} + +func (m *McpBreakdownInsightsRequest) GetBreakdownType() *BreakdownType { + if m == nil { + return nil + } + return m.BreakdownType +} + +func (m *McpBreakdownInsightsRequest) GetHostApplications() []string { + if m == nil { + return nil + } + return m.HostApplications +} + +func (m *McpBreakdownInsightsRequest) GetTools() []string { + if m == nil { + return nil + } + return m.Tools +} + +func (m *McpBreakdownInsightsRequest) GetServers() []string { + if m == nil { + return nil + } + return m.Servers +} diff --git a/models/components/mcpbreakdowninsightsresponse.go b/models/components/mcpbreakdowninsightsresponse.go new file mode 100644 index 00000000..527ef1ff --- /dev/null +++ b/models/components/mcpbreakdowninsightsresponse.go @@ -0,0 +1,38 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +type McpBreakdownInsightsResponse struct { + UsersBreakdown []McpUserBreakdown `json:"usersBreakdown,omitempty"` + HostApplicationsBreakdown []McpHostApplicationBreakdown `json:"hostApplicationsBreakdown,omitempty"` + ToolsBreakdown []McpToolBreakdown `json:"toolsBreakdown,omitempty"` + ServersBreakdown []McpServerBreakdown `json:"serversBreakdown,omitempty"` +} + +func (m *McpBreakdownInsightsResponse) GetUsersBreakdown() []McpUserBreakdown { + if m == nil { + return nil + } + return m.UsersBreakdown +} + +func (m *McpBreakdownInsightsResponse) GetHostApplicationsBreakdown() []McpHostApplicationBreakdown { + if m == nil { + return nil + } + return m.HostApplicationsBreakdown +} + +func (m *McpBreakdownInsightsResponse) GetToolsBreakdown() []McpToolBreakdown { + if m == nil { + return nil + } + return m.ToolsBreakdown +} + +func (m *McpBreakdownInsightsResponse) GetServersBreakdown() []McpServerBreakdown { + if m == nil { + return nil + } + return m.ServersBreakdown +} diff --git a/models/components/mcphostapplicationbreakdown.go b/models/components/mcphostapplicationbreakdown.go new file mode 100644 index 00000000..2d9a1e6f --- /dev/null +++ b/models/components/mcphostapplicationbreakdown.go @@ -0,0 +1,33 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +type McpHostApplicationBreakdown struct { + // Host application name. + HostApplication *string `json:"hostApplication,omitempty"` + // Total number of MCP calls made from this host application in the specified time period. + TotalCalls *int64 `json:"totalCalls,omitempty"` + // Total number of active users from this host application in the specified time period. + ActiveUsers *int64 `json:"activeUsers,omitempty"` +} + +func (m *McpHostApplicationBreakdown) GetHostApplication() *string { + if m == nil { + return nil + } + return m.HostApplication +} + +func (m *McpHostApplicationBreakdown) GetTotalCalls() *int64 { + if m == nil { + return nil + } + return m.TotalCalls +} + +func (m *McpHostApplicationBreakdown) GetActiveUsers() *int64 { + if m == nil { + return nil + } + return m.ActiveUsers +} diff --git a/models/components/mcpinsightsrequest.go b/models/components/mcpinsightsrequest.go new file mode 100644 index 00000000..3404e143 --- /dev/null +++ b/models/components/mcpinsightsrequest.go @@ -0,0 +1,41 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +type McpInsightsRequest struct { + // Departments for which Insights are requested. + Departments []string `json:"departments,omitempty"` + // Manager user IDs whose teams should be filtered for. Empty array means no filtering. + ManagerIds []string `json:"managerIds,omitempty"` + // Manager emails whose teams should be filtered for. Empty array means no filtering. + ManagerEmails []string `json:"managerEmails,omitempty"` + DayRange *Period `json:"dayRange,omitempty"` +} + +func (m *McpInsightsRequest) GetDepartments() []string { + if m == nil { + return nil + } + return m.Departments +} + +func (m *McpInsightsRequest) GetManagerIds() []string { + if m == nil { + return nil + } + return m.ManagerIds +} + +func (m *McpInsightsRequest) GetManagerEmails() []string { + if m == nil { + return nil + } + return m.ManagerEmails +} + +func (m *McpInsightsRequest) GetDayRange() *Period { + if m == nil { + return nil + } + return m.DayRange +} diff --git a/models/components/mcpinsightsresponse.go b/models/components/mcpinsightsresponse.go new file mode 100644 index 00000000..be452ae0 --- /dev/null +++ b/models/components/mcpinsightsresponse.go @@ -0,0 +1,73 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +type McpInsightsResponse struct { + // Number of current Monthly Active Users. + MonthlyActiveUsers *int64 `json:"monthlyActiveUsers,omitempty"` + // Number of current Weekly Active Users. + WeeklyActiveUsers *int64 `json:"weeklyActiveUsers,omitempty"` + // Number of current Daily Active Users. + DailyActiveUsers *int64 `json:"dailyActiveUsers,omitempty"` + MonthlyActiveUserTimeseries *LabeledCountInfo `json:"monthlyActiveUserTimeseries,omitempty"` + WeeklyActiveUserTimeseries *LabeledCountInfo `json:"weeklyActiveUserTimeseries,omitempty"` + DailyActiveUserTimeseries *LabeledCountInfo `json:"dailyActiveUserTimeseries,omitempty"` + OverallDailyActiveUserTimeseries *LabeledCountInfo `json:"overallDailyActiveUserTimeseries,omitempty"` + TopHostApplicationsActiveUserTimeseries []LabeledCountInfo `json:"topHostApplicationsActiveUserTimeseries,omitempty"` +} + +func (m *McpInsightsResponse) GetMonthlyActiveUsers() *int64 { + if m == nil { + return nil + } + return m.MonthlyActiveUsers +} + +func (m *McpInsightsResponse) GetWeeklyActiveUsers() *int64 { + if m == nil { + return nil + } + return m.WeeklyActiveUsers +} + +func (m *McpInsightsResponse) GetDailyActiveUsers() *int64 { + if m == nil { + return nil + } + return m.DailyActiveUsers +} + +func (m *McpInsightsResponse) GetMonthlyActiveUserTimeseries() *LabeledCountInfo { + if m == nil { + return nil + } + return m.MonthlyActiveUserTimeseries +} + +func (m *McpInsightsResponse) GetWeeklyActiveUserTimeseries() *LabeledCountInfo { + if m == nil { + return nil + } + return m.WeeklyActiveUserTimeseries +} + +func (m *McpInsightsResponse) GetDailyActiveUserTimeseries() *LabeledCountInfo { + if m == nil { + return nil + } + return m.DailyActiveUserTimeseries +} + +func (m *McpInsightsResponse) GetOverallDailyActiveUserTimeseries() *LabeledCountInfo { + if m == nil { + return nil + } + return m.OverallDailyActiveUserTimeseries +} + +func (m *McpInsightsResponse) GetTopHostApplicationsActiveUserTimeseries() []LabeledCountInfo { + if m == nil { + return nil + } + return m.TopHostApplicationsActiveUserTimeseries +} diff --git a/models/components/mcpserverbreakdown.go b/models/components/mcpserverbreakdown.go new file mode 100644 index 00000000..ed028d77 --- /dev/null +++ b/models/components/mcpserverbreakdown.go @@ -0,0 +1,42 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +type McpServerBreakdown struct { + // MCP server name. + Server *string `json:"server,omitempty"` + // Total number of MCP calls for this server in the specified time period. + TotalCalls *int64 `json:"totalCalls,omitempty"` + // Total number of active users for this server in the specified time period. + ActiveUsers *int64 `json:"activeUsers,omitempty"` + // Host applications using this server in the specified time period. + HostApplications []string `json:"hostApplications,omitempty"` +} + +func (m *McpServerBreakdown) GetServer() *string { + if m == nil { + return nil + } + return m.Server +} + +func (m *McpServerBreakdown) GetTotalCalls() *int64 { + if m == nil { + return nil + } + return m.TotalCalls +} + +func (m *McpServerBreakdown) GetActiveUsers() *int64 { + if m == nil { + return nil + } + return m.ActiveUsers +} + +func (m *McpServerBreakdown) GetHostApplications() []string { + if m == nil { + return nil + } + return m.HostApplications +} diff --git a/models/components/mcptoolbreakdown.go b/models/components/mcptoolbreakdown.go new file mode 100644 index 00000000..967092f5 --- /dev/null +++ b/models/components/mcptoolbreakdown.go @@ -0,0 +1,42 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +type McpToolBreakdown struct { + // MCP tool name. + Tool *string `json:"tool,omitempty"` + // Total number of MCP calls for this tool in the specified time period. + TotalCalls *int64 `json:"totalCalls,omitempty"` + // Total number of active users for this tool in the specified time period. + ActiveUsers *int64 `json:"activeUsers,omitempty"` + // Host applications using this tool in the specified time period. + HostApplications []string `json:"hostApplications,omitempty"` +} + +func (m *McpToolBreakdown) GetTool() *string { + if m == nil { + return nil + } + return m.Tool +} + +func (m *McpToolBreakdown) GetTotalCalls() *int64 { + if m == nil { + return nil + } + return m.TotalCalls +} + +func (m *McpToolBreakdown) GetActiveUsers() *int64 { + if m == nil { + return nil + } + return m.ActiveUsers +} + +func (m *McpToolBreakdown) GetHostApplications() []string { + if m == nil { + return nil + } + return m.HostApplications +} diff --git a/models/components/mcpuserbreakdown.go b/models/components/mcpuserbreakdown.go new file mode 100644 index 00000000..46007d30 --- /dev/null +++ b/models/components/mcpuserbreakdown.go @@ -0,0 +1,50 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +type McpUserBreakdown struct { + Person *Person `json:"person,omitempty"` + // Total number of MCP calls made by this user in the specified time period. + TotalCalls *int64 `json:"totalCalls,omitempty"` + // Host applications used by this user in the specified time period. + HostApplications []string `json:"hostApplications,omitempty"` + // MCP tools used by this user in the specified time period. + Tools []string `json:"tools,omitempty"` + // MCP servers used by this user in the specified time period. + Servers []string `json:"servers,omitempty"` +} + +func (m *McpUserBreakdown) GetPerson() *Person { + if m == nil { + return nil + } + return m.Person +} + +func (m *McpUserBreakdown) GetTotalCalls() *int64 { + if m == nil { + return nil + } + return m.TotalCalls +} + +func (m *McpUserBreakdown) GetHostApplications() []string { + if m == nil { + return nil + } + return m.HostApplications +} + +func (m *McpUserBreakdown) GetTools() []string { + if m == nil { + return nil + } + return m.Tools +} + +func (m *McpUserBreakdown) GetServers() []string { + if m == nil { + return nil + } + return m.Servers +} diff --git a/models/components/peragentinsight.go b/models/components/peragentinsight.go index 031bec1b..06c3e69a 100644 --- a/models/components/peragentinsight.go +++ b/models/components/peragentinsight.go @@ -18,7 +18,8 @@ type PerAgentInsight struct { // Total number of upvotes for this agent over the specified time period. UpvoteCount *int64 `json:"upvoteCount,omitempty"` // Total number of downvotes for this agent over the specified time period. - DownvoteCount *int64 `json:"downvoteCount,omitempty"` + DownvoteCount *int64 `json:"downvoteCount,omitempty"` + Owner *Person `json:"owner,omitempty"` } func (p *PerAgentInsight) GetAgentID() *string { @@ -76,3 +77,10 @@ func (p *PerAgentInsight) GetDownvoteCount() *int64 { } return p.DownvoteCount } + +func (p *PerAgentInsight) GetOwner() *Person { + if p == nil { + return nil + } + return p.Owner +} diff --git a/models/components/peruserinsight.go b/models/components/peruserinsight.go index 81c45846..e2da5f6e 100644 --- a/models/components/peruserinsight.go +++ b/models/components/peruserinsight.go @@ -20,6 +20,8 @@ type PerUserInsight struct { NumAiAnswers *int64 `json:"numAiAnswers,omitempty"` // Total number of agent runs for this user over the specified time period. NumAgentRuns *int64 `json:"numAgentRuns,omitempty"` + // Total number of MCP calls for this user over the specified time period. + NumMcpCalls *int64 `json:"numMcpCalls,omitempty"` } func (p *PerUserInsight) GetPerson() *Person { @@ -84,3 +86,10 @@ func (p *PerUserInsight) GetNumAgentRuns() *int64 { } return p.NumAgentRuns } + +func (p *PerUserInsight) GetNumMcpCalls() *int64 { + if p == nil { + return nil + } + return p.NumMcpCalls +} diff --git a/models/components/propertydefinition.go b/models/components/propertydefinition.go index b53e4ed6..d5f761fa 100644 --- a/models/components/propertydefinition.go +++ b/models/components/propertydefinition.go @@ -2,25 +2,25 @@ package components -// PropertyType - The type of custom property - this governs the search and faceting behavior. Note that MULTIPICKLIST is not yet supported. -type PropertyType string +// PropertyDefinitionPropertyType - The type of custom property - this governs the search and faceting behavior. Note that MULTIPICKLIST is not yet supported. +type PropertyDefinitionPropertyType string const ( - PropertyTypeText PropertyType = "TEXT" - PropertyTypeDate PropertyType = "DATE" - PropertyTypeInt PropertyType = "INT" - PropertyTypeUserid PropertyType = "USERID" - PropertyTypePicklist PropertyType = "PICKLIST" - PropertyTypeTextlist PropertyType = "TEXTLIST" - PropertyTypeMultipicklist PropertyType = "MULTIPICKLIST" + PropertyDefinitionPropertyTypeText PropertyDefinitionPropertyType = "TEXT" + PropertyDefinitionPropertyTypeDate PropertyDefinitionPropertyType = "DATE" + PropertyDefinitionPropertyTypeInt PropertyDefinitionPropertyType = "INT" + PropertyDefinitionPropertyTypeUserid PropertyDefinitionPropertyType = "USERID" + PropertyDefinitionPropertyTypePicklist PropertyDefinitionPropertyType = "PICKLIST" + PropertyDefinitionPropertyTypeTextlist PropertyDefinitionPropertyType = "TEXTLIST" + PropertyDefinitionPropertyTypeMultipicklist PropertyDefinitionPropertyType = "MULTIPICKLIST" ) -func (e PropertyType) ToPointer() *PropertyType { +func (e PropertyDefinitionPropertyType) ToPointer() *PropertyDefinitionPropertyType { return &e } // IsExact returns true if the value matches a known enum value, false otherwise. -func (e *PropertyType) IsExact() bool { +func (e *PropertyDefinitionPropertyType) IsExact() bool { if e != nil { switch *e { case "TEXT", "DATE", "INT", "USERID", "PICKLIST", "TEXTLIST", "MULTIPICKLIST": @@ -61,8 +61,8 @@ type PropertyDefinition struct { // The user friendly label for the property that will be used if a plural context. DisplayLabelPlural *string `json:"displayLabelPlural,omitempty"` // The type of custom property - this governs the search and faceting behavior. Note that MULTIPICKLIST is not yet supported. - PropertyType *PropertyType `json:"propertyType,omitempty"` - UIOptions *UIOptions `json:"uiOptions,omitempty"` + PropertyType *PropertyDefinitionPropertyType `json:"propertyType,omitempty"` + UIOptions *UIOptions `json:"uiOptions,omitempty"` // If true then the property will not show up as a facet in the UI. HideUIFacet *bool `json:"hideUiFacet,omitempty"` // Will be used to set the order of facets in the UI, if present. If set for one facet, must be set for all non-hidden UI facets. Must take on an integer value from 1 (shown at the top) to N (shown last), where N is the number of non-hidden UI facets. These facets will be ordered below the built-in "Type" and "Tag" operators. @@ -94,7 +94,7 @@ func (p *PropertyDefinition) GetDisplayLabelPlural() *string { return p.DisplayLabelPlural } -func (p *PropertyDefinition) GetPropertyType() *PropertyType { +func (p *PropertyDefinition) GetPropertyType() *PropertyDefinitionPropertyType { if p == nil { return nil } diff --git a/models/components/rotatedatasourcecredentialsrequest.go b/models/components/rotatedatasourcecredentialsrequest.go new file mode 100644 index 00000000..07215b98 --- /dev/null +++ b/models/components/rotatedatasourcecredentialsrequest.go @@ -0,0 +1,17 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// RotateDatasourceCredentialsRequest - Request to rotate the credentials used by a datasource instance. Replaces the active credential material with the supplied values. +// `credentials.values` must contain only keys recognized as credential material for the datasource type (for example `clientSecret` for OAuth, `apiToken` for API-token auth, `privateKey` for certificate auth). Unrecognized keys, or keys that correspond to non-credential configuration, cause a 400; use the configure endpoint to change non-credential config. +type RotateDatasourceCredentialsRequest struct { + // Configuration for a datasource instance + Credentials DatasourceInstanceConfiguration `json:"credentials"` +} + +func (r *RotateDatasourceCredentialsRequest) GetCredentials() DatasourceInstanceConfiguration { + if r == nil { + return DatasourceInstanceConfiguration{} + } + return r.Credentials +} diff --git a/models/components/successresponse.go b/models/components/successresponse.go new file mode 100644 index 00000000..10e882ea --- /dev/null +++ b/models/components/successresponse.go @@ -0,0 +1,31 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +import ( + "github.com/gleanwork/api-client-go/internal/utils" +) + +// SuccessResponse - Success response for custom metadata operations +type SuccessResponse struct { + // Indicates if the operation was successful + Success *bool `default:"true" json:"success"` +} + +func (s SuccessResponse) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SuccessResponse) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, nil); err != nil { + return err + } + return nil +} + +func (s *SuccessResponse) GetSuccess() *bool { + if s == nil { + return nil + } + return s.Success +} diff --git a/models/components/ugctype.go b/models/components/ugctype.go index 10dc1c6f..43329693 100644 --- a/models/components/ugctype.go +++ b/models/components/ugctype.go @@ -22,6 +22,8 @@ const ( UgcTypeShortcutsType UgcType = "SHORTCUTS_TYPE" UgcTypeSlideType UgcType = "SLIDE_TYPE" UgcTypeSpreadsheetType UgcType = "SPREADSHEET_TYPE" + UgcTypeInlineHTMLType UgcType = "INLINE_HTML_TYPE" + UgcTypePodcastType UgcType = "PODCAST_TYPE" UgcTypeWorkflowsType UgcType = "WORKFLOWS_TYPE" ) @@ -33,7 +35,7 @@ func (e UgcType) ToPointer() *UgcType { func (e *UgcType) IsExact() bool { if e != nil { switch *e { - case "AGENT_TYPE", "ANNOUNCEMENTS_TYPE", "ANSWERS_TYPE", "CHATS_TYPE", "COLLECTIONS_TYPE", "EMAIL_TYPE", "HTML_CODE_TYPE", "IMAGE_TYPE", "MESSAGE_TYPE", "PAPER_TYPE", "PRISM_VIEWS_TYPE", "PROMPT_TEMPLATES_TYPE", "PINS_TYPE", "SCRIBES_TYPE", "SHORTCUTS_TYPE", "SLIDE_TYPE", "SPREADSHEET_TYPE", "WORKFLOWS_TYPE": + case "AGENT_TYPE", "ANNOUNCEMENTS_TYPE", "ANSWERS_TYPE", "CHATS_TYPE", "COLLECTIONS_TYPE", "EMAIL_TYPE", "HTML_CODE_TYPE", "IMAGE_TYPE", "MESSAGE_TYPE", "PAPER_TYPE", "PRISM_VIEWS_TYPE", "PROMPT_TEMPLATES_TYPE", "PINS_TYPE", "SCRIBES_TYPE", "SHORTCUTS_TYPE", "SLIDE_TYPE", "SPREADSHEET_TYPE", "INLINE_HTML_TYPE", "PODCAST_TYPE", "WORKFLOWS_TYPE": return true } } diff --git a/models/components/workflow.go b/models/components/workflow.go index 7be34f84..16c922a0 100644 --- a/models/components/workflow.go +++ b/models/components/workflow.go @@ -11,11 +11,18 @@ type Workflow struct { // Server Unix timestamp of the last update time. LastUpdateTimestamp *int64 `json:"lastUpdateTimestamp,omitempty"` // Server Unix timestamp of the last time the draft was saved. - LastDraftSavedAt *int64 `json:"lastDraftSavedAt,omitempty"` - LastUpdatedBy *Person `json:"lastUpdatedBy,omitempty"` - Permissions *ObjectPermissions `json:"permissions,omitempty"` + LastDraftSavedAt *int64 `json:"lastDraftSavedAt,omitempty"` + LastDraftSavedBy *Person `json:"lastDraftSavedBy,omitempty"` + // ID of the VCS user (e.g. GitHub username) who last saved the draft. Set only by the draft save path via the external Git integration API. + LastDraftGitAuthorID *string `json:"lastDraftGitAuthorId,omitempty"` + LastUpdatedBy *Person `json:"lastUpdatedBy,omitempty"` + Permissions *ObjectPermissions `json:"permissions,omitempty"` // The ID of the workflow. ID *string `json:"id,omitempty"` + // When present, indicates this workflow is admin-verified. Set via the dedicated admin settings endpoint, not by regular edits. + Verified *bool `json:"verified,omitempty"` + // When true, displays organization name instead of author name in agent card. Set via the dedicated admin settings endpoint, not by regular edits. + ShowOrganizationAsAuthor *bool `json:"showOrganizationAsAuthor,omitempty"` } func (w *Workflow) GetName() *string { @@ -53,6 +60,20 @@ func (w *Workflow) GetLastDraftSavedAt() *int64 { return w.LastDraftSavedAt } +func (w *Workflow) GetLastDraftSavedBy() *Person { + if w == nil { + return nil + } + return w.LastDraftSavedBy +} + +func (w *Workflow) GetLastDraftGitAuthorID() *string { + if w == nil { + return nil + } + return w.LastDraftGitAuthorID +} + func (w *Workflow) GetLastUpdatedBy() *Person { if w == nil { return nil @@ -73,3 +94,17 @@ func (w *Workflow) GetID() *string { } return w.ID } + +func (w *Workflow) GetVerified() *bool { + if w == nil { + return nil + } + return w.Verified +} + +func (w *Workflow) GetShowOrganizationAsAuthor() *bool { + if w == nil { + return nil + } + return w.ShowOrganizationAsAuthor +} diff --git a/models/operations/authorizeactionpack.go b/models/operations/authorizeactionpack.go new file mode 100644 index 00000000..677e741a --- /dev/null +++ b/models/operations/authorizeactionpack.go @@ -0,0 +1,47 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/gleanwork/api-client-go/models/components" +) + +type AuthorizeActionPackRequest struct { + // ID of the action pack to query or authorize. + ActionPackID string `pathParam:"style=simple,explode=false,name=actionPackId"` + AuthorizeActionPackRequest components.AuthorizeActionPackRequest `request:"mediaType=application/json"` +} + +func (a *AuthorizeActionPackRequest) GetActionPackID() string { + if a == nil { + return "" + } + return a.ActionPackID +} + +func (a *AuthorizeActionPackRequest) GetAuthorizeActionPackRequest() components.AuthorizeActionPackRequest { + if a == nil { + return components.AuthorizeActionPackRequest{} + } + return a.AuthorizeActionPackRequest +} + +type AuthorizeActionPackResponse struct { + HTTPMeta components.HTTPMetadata `json:"-"` + // Successful operation + AuthorizeActionPackResponse *components.AuthorizeActionPackResponse +} + +func (a *AuthorizeActionPackResponse) GetHTTPMeta() components.HTTPMetadata { + if a == nil { + return components.HTTPMetadata{} + } + return a.HTTPMeta +} + +func (a *AuthorizeActionPackResponse) GetAuthorizeActionPackResponse() *components.AuthorizeActionPackResponse { + if a == nil { + return nil + } + return a.AuthorizeActionPackResponse +} diff --git a/models/operations/deleterestapiindexcustommetadataschemagroupname.go b/models/operations/deleterestapiindexcustommetadataschemagroupname.go new file mode 100644 index 00000000..6159c989 --- /dev/null +++ b/models/operations/deleterestapiindexcustommetadataschemagroupname.go @@ -0,0 +1,43 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/gleanwork/api-client-go/models/components" +) + +var DeleteRestAPIIndexCustomMetadataSchemaGroupNameServerList = []string{ + "https://{instance}-be.glean.com", +} + +type DeleteRestAPIIndexCustomMetadataSchemaGroupNameRequest struct { + // Name of the metadata group schema + GroupName string `pathParam:"style=simple,explode=false,name=groupName"` +} + +func (d *DeleteRestAPIIndexCustomMetadataSchemaGroupNameRequest) GetGroupName() string { + if d == nil { + return "" + } + return d.GroupName +} + +type DeleteRestAPIIndexCustomMetadataSchemaGroupNameResponse struct { + HTTPMeta components.HTTPMetadata `json:"-"` + // OK + SuccessResponse *components.SuccessResponse +} + +func (d *DeleteRestAPIIndexCustomMetadataSchemaGroupNameResponse) GetHTTPMeta() components.HTTPMetadata { + if d == nil { + return components.HTTPMetadata{} + } + return d.HTTPMeta +} + +func (d *DeleteRestAPIIndexCustomMetadataSchemaGroupNameResponse) GetSuccessResponse() *components.SuccessResponse { + if d == nil { + return nil + } + return d.SuccessResponse +} diff --git a/models/operations/deleterestapiindexdocumentdocidcustommetadatagroupname.go b/models/operations/deleterestapiindexdocumentdocidcustommetadatagroupname.go new file mode 100644 index 00000000..8075d8b9 --- /dev/null +++ b/models/operations/deleterestapiindexdocumentdocidcustommetadatagroupname.go @@ -0,0 +1,52 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/gleanwork/api-client-go/models/components" +) + +var DeleteRestAPIIndexDocumentDocIDCustomMetadataGroupNameServerList = []string{ + "https://{instance}-be.glean.com", +} + +type DeleteRestAPIIndexDocumentDocIDCustomMetadataGroupNameRequest struct { + // Unique Glean identifier of the document + DocID string `pathParam:"style=simple,explode=false,name=docId"` + // Name of the metadata group as specified while adding schema + GroupName string `pathParam:"style=simple,explode=false,name=groupName"` +} + +func (d *DeleteRestAPIIndexDocumentDocIDCustomMetadataGroupNameRequest) GetDocID() string { + if d == nil { + return "" + } + return d.DocID +} + +func (d *DeleteRestAPIIndexDocumentDocIDCustomMetadataGroupNameRequest) GetGroupName() string { + if d == nil { + return "" + } + return d.GroupName +} + +type DeleteRestAPIIndexDocumentDocIDCustomMetadataGroupNameResponse struct { + HTTPMeta components.HTTPMetadata `json:"-"` + // OK + SuccessResponse *components.SuccessResponse +} + +func (d *DeleteRestAPIIndexDocumentDocIDCustomMetadataGroupNameResponse) GetHTTPMeta() components.HTTPMetadata { + if d == nil { + return components.HTTPMetadata{} + } + return d.HTTPMeta +} + +func (d *DeleteRestAPIIndexDocumentDocIDCustomMetadataGroupNameResponse) GetSuccessResponse() *components.SuccessResponse { + if d == nil { + return nil + } + return d.SuccessResponse +} diff --git a/models/operations/editagent.go b/models/operations/editagent.go new file mode 100644 index 00000000..7305724f --- /dev/null +++ b/models/operations/editagent.go @@ -0,0 +1,56 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/gleanwork/api-client-go/models/components" +) + +type EditAgentRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` + // The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + TimezoneOffset *int64 `queryParam:"style=form,explode=true,name=timezoneOffset"` + // The ID of the agent. + AgentID string `pathParam:"style=simple,explode=false,name=agent_id"` + EditWorkflowRequest components.EditWorkflowRequest `request:"mediaType=application/json"` +} + +func (e *EditAgentRequest) GetLocale() *string { + if e == nil { + return nil + } + return e.Locale +} + +func (e *EditAgentRequest) GetTimezoneOffset() *int64 { + if e == nil { + return nil + } + return e.TimezoneOffset +} + +func (e *EditAgentRequest) GetAgentID() string { + if e == nil { + return "" + } + return e.AgentID +} + +func (e *EditAgentRequest) GetEditWorkflowRequest() components.EditWorkflowRequest { + if e == nil { + return components.EditWorkflowRequest{} + } + return e.EditWorkflowRequest +} + +type EditAgentResponse struct { + HTTPMeta components.HTTPMetadata `json:"-"` +} + +func (e *EditAgentResponse) GetHTTPMeta() components.HTTPMetadata { + if e == nil { + return components.HTTPMetadata{} + } + return e.HTTPMeta +} diff --git a/models/operations/getactionpackauthstatus.go b/models/operations/getactionpackauthstatus.go new file mode 100644 index 00000000..5597369b --- /dev/null +++ b/models/operations/getactionpackauthstatus.go @@ -0,0 +1,39 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/gleanwork/api-client-go/models/components" +) + +type GetActionPackAuthStatusRequest struct { + // ID of the action pack to query or authorize. + ActionPackID string `pathParam:"style=simple,explode=false,name=actionPackId"` +} + +func (g *GetActionPackAuthStatusRequest) GetActionPackID() string { + if g == nil { + return "" + } + return g.ActionPackID +} + +type GetActionPackAuthStatusResponse struct { + HTTPMeta components.HTTPMetadata `json:"-"` + // Successful operation + ActionPackAuthStatusResponse *components.ActionPackAuthStatusResponse +} + +func (g *GetActionPackAuthStatusResponse) GetHTTPMeta() components.HTTPMetadata { + if g == nil { + return components.HTTPMetadata{} + } + return g.HTTPMeta +} + +func (g *GetActionPackAuthStatusResponse) GetActionPackAuthStatusResponse() *components.ActionPackAuthStatusResponse { + if g == nil { + return nil + } + return g.ActionPackAuthStatusResponse +} diff --git a/models/operations/getchatfile.go b/models/operations/getchatfile.go new file mode 100644 index 00000000..041910cb --- /dev/null +++ b/models/operations/getchatfile.go @@ -0,0 +1,51 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/gleanwork/api-client-go/models/components" + "io" +) + +type GetChatFileRequest struct { + // Identifier of the chat file to download. + FileID string `pathParam:"style=simple,explode=false,name=fileId"` + // When true and the file is a PDF, the response is served inline (Content-Disposition: inline) instead of as an attachment. + // + Preview *bool `queryParam:"style=form,explode=true,name=preview"` +} + +func (g *GetChatFileRequest) GetFileID() string { + if g == nil { + return "" + } + return g.FileID +} + +func (g *GetChatFileRequest) GetPreview() *bool { + if g == nil { + return nil + } + return g.Preview +} + +type GetChatFileResponse struct { + HTTPMeta components.HTTPMetadata `json:"-"` + // File content. + // The Close method must be called on this field, even if it is not used, to prevent resource leaks. + ResponseStream io.ReadCloser +} + +func (g *GetChatFileResponse) GetHTTPMeta() components.HTTPMetadata { + if g == nil { + return components.HTTPMetadata{} + } + return g.HTTPMeta +} + +func (g *GetChatFileResponse) GetResponseStream() io.ReadCloser { + if g == nil { + return nil + } + return g.ResponseStream +} diff --git a/models/operations/getdatasourcecredentialstatus.go b/models/operations/getdatasourcecredentialstatus.go new file mode 100644 index 00000000..6d339765 --- /dev/null +++ b/models/operations/getdatasourcecredentialstatus.go @@ -0,0 +1,39 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/gleanwork/api-client-go/models/components" +) + +type GetDatasourceCredentialStatusRequest struct { + // The full datasource instance identifier (e.g. o365sharepoint_abc123) + DatasourceInstanceID string `pathParam:"style=simple,explode=false,name=datasourceInstanceId"` +} + +func (g *GetDatasourceCredentialStatusRequest) GetDatasourceInstanceID() string { + if g == nil { + return "" + } + return g.DatasourceInstanceID +} + +type GetDatasourceCredentialStatusResponse struct { + HTTPMeta components.HTTPMetadata `json:"-"` + // OK + DatasourceCredentialStatusResponse *components.DatasourceCredentialStatusResponse +} + +func (g *GetDatasourceCredentialStatusResponse) GetHTTPMeta() components.HTTPMetadata { + if g == nil { + return components.HTTPMetadata{} + } + return g.HTTPMeta +} + +func (g *GetDatasourceCredentialStatusResponse) GetDatasourceCredentialStatusResponse() *components.DatasourceCredentialStatusResponse { + if g == nil { + return nil + } + return g.DatasourceCredentialStatusResponse +} diff --git a/models/operations/getpersonphoto.go b/models/operations/getpersonphoto.go new file mode 100644 index 00000000..094b0736 --- /dev/null +++ b/models/operations/getpersonphoto.go @@ -0,0 +1,69 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/gleanwork/api-client-go/models/components" + "io" +) + +type GetPersonPhotoRequest struct { + // The obfuscated ID of the person whose photo to retrieve. + PersonID string `pathParam:"style=simple,explode=false,name=person_id"` + // Optional datasource override for crawled photos (e.g. AZURE, GDRIVE, OKTA). When omitted, the datasource is derived from the person's stored photo URL or the deployment's primary person datasource. + // + Ds *string `queryParam:"style=form,explode=true,name=ds"` +} + +func (g *GetPersonPhotoRequest) GetPersonID() string { + if g == nil { + return "" + } + return g.PersonID +} + +func (g *GetPersonPhotoRequest) GetDs() *string { + if g == nil { + return nil + } + return g.Ds +} + +type GetPersonPhotoResponse struct { + HTTPMeta components.HTTPMetadata `json:"-"` + // Photo bytes returned successfully. + // The Close method must be called on this field, even if it is not used, to prevent resource leaks. + TwoHundredImagePngResponseStream io.ReadCloser + // Photo bytes returned successfully. + // The Close method must be called on this field, even if it is not used, to prevent resource leaks. + TwoHundredImageJpegResponseStream io.ReadCloser + Headers map[string][]string +} + +func (g *GetPersonPhotoResponse) GetHTTPMeta() components.HTTPMetadata { + if g == nil { + return components.HTTPMetadata{} + } + return g.HTTPMeta +} + +func (g *GetPersonPhotoResponse) GetTwoHundredImagePngResponseStream() io.ReadCloser { + if g == nil { + return nil + } + return g.TwoHundredImagePngResponseStream +} + +func (g *GetPersonPhotoResponse) GetTwoHundredImageJpegResponseStream() io.ReadCloser { + if g == nil { + return nil + } + return g.TwoHundredImageJpegResponseStream +} + +func (g *GetPersonPhotoResponse) GetHeaders() map[string][]string { + if g == nil { + return map[string][]string{} + } + return g.Headers +} diff --git a/models/operations/getrestapiindexcustommetadataschemagroupname.go b/models/operations/getrestapiindexcustommetadataschemagroupname.go new file mode 100644 index 00000000..15b0b646 --- /dev/null +++ b/models/operations/getrestapiindexcustommetadataschemagroupname.go @@ -0,0 +1,43 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/gleanwork/api-client-go/models/components" +) + +var GetRestAPIIndexCustomMetadataSchemaGroupNameServerList = []string{ + "https://{instance}-be.glean.com", +} + +type GetRestAPIIndexCustomMetadataSchemaGroupNameRequest struct { + // Name of the metadata group schema + GroupName string `pathParam:"style=simple,explode=false,name=groupName"` +} + +func (g *GetRestAPIIndexCustomMetadataSchemaGroupNameRequest) GetGroupName() string { + if g == nil { + return "" + } + return g.GroupName +} + +type GetRestAPIIndexCustomMetadataSchemaGroupNameResponse struct { + HTTPMeta components.HTTPMetadata `json:"-"` + // OK + CustomMetadataSchema *components.CustomMetadataSchema +} + +func (g *GetRestAPIIndexCustomMetadataSchemaGroupNameResponse) GetHTTPMeta() components.HTTPMetadata { + if g == nil { + return components.HTTPMetadata{} + } + return g.HTTPMeta +} + +func (g *GetRestAPIIndexCustomMetadataSchemaGroupNameResponse) GetCustomMetadataSchema() *components.CustomMetadataSchema { + if g == nil { + return nil + } + return g.CustomMetadataSchema +} diff --git a/models/operations/options.go b/models/operations/options.go index 9b1aeb8e..02b39f89 100644 --- a/models/operations/options.go +++ b/models/operations/options.go @@ -21,11 +21,14 @@ const ( type AcceptHeaderEnum string const ( - AcceptHeaderEnumWildcardRootWildcard AcceptHeaderEnum = "*/*" - AcceptHeaderEnumApplicationJson AcceptHeaderEnum = "application/json" - AcceptHeaderEnumTextPlain AcceptHeaderEnum = "text/plain" - AcceptHeaderEnumTextEventStream AcceptHeaderEnum = "text/event-stream" - AcceptHeaderEnumTextCsv AcceptHeaderEnum = "text/csv" + AcceptHeaderEnumWildcardRootWildcard AcceptHeaderEnum = "*/*" + AcceptHeaderEnumApplicationJson AcceptHeaderEnum = "application/json" + AcceptHeaderEnumTextPlain AcceptHeaderEnum = "text/plain" + AcceptHeaderEnumTextEventStream AcceptHeaderEnum = "text/event-stream" + AcceptHeaderEnumTextCsv AcceptHeaderEnum = "text/csv" + AcceptHeaderEnumApplicationOctetStream AcceptHeaderEnum = "application/octet-stream" + AcceptHeaderEnumImageJpeg AcceptHeaderEnum = "image/jpeg" + AcceptHeaderEnumImagePng AcceptHeaderEnum = "image/png" ) func (e AcceptHeaderEnum) ToPointer() *AcceptHeaderEnum { diff --git a/models/operations/postapiindexv1debugdatasourcedocumentevents.go b/models/operations/postapiindexv1debugdatasourcedocumentevents.go new file mode 100644 index 00000000..ed8e474e --- /dev/null +++ b/models/operations/postapiindexv1debugdatasourcedocumentevents.go @@ -0,0 +1,53 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/gleanwork/api-client-go/models/components" +) + +type PostAPIIndexV1DebugDatasourceDocumentEventsRequest struct { + // The datasource to which the document belongs + Datasource string `pathParam:"style=simple,explode=false,name=datasource"` + DebugDocumentLifecycleRequest components.DebugDocumentLifecycleRequest `request:"mediaType=application/json"` +} + +func (p *PostAPIIndexV1DebugDatasourceDocumentEventsRequest) GetDatasource() string { + if p == nil { + return "" + } + return p.Datasource +} + +func (p *PostAPIIndexV1DebugDatasourceDocumentEventsRequest) GetDebugDocumentLifecycleRequest() components.DebugDocumentLifecycleRequest { + if p == nil { + return components.DebugDocumentLifecycleRequest{} + } + return p.DebugDocumentLifecycleRequest +} + +// #region class-body-postapiindexv1debugdatasourcedocumenteventsrequest +// #endregion class-body-postapiindexv1debugdatasourcedocumenteventsrequest + +type PostAPIIndexV1DebugDatasourceDocumentEventsResponse struct { + HTTPMeta components.HTTPMetadata `json:"-"` + // OK + DebugDocumentLifecycleResponse *components.DebugDocumentLifecycleResponse +} + +func (p *PostAPIIndexV1DebugDatasourceDocumentEventsResponse) GetHTTPMeta() components.HTTPMetadata { + if p == nil { + return components.HTTPMetadata{} + } + return p.HTTPMeta +} + +func (p *PostAPIIndexV1DebugDatasourceDocumentEventsResponse) GetDebugDocumentLifecycleResponse() *components.DebugDocumentLifecycleResponse { + if p == nil { + return nil + } + return p.DebugDocumentLifecycleResponse +} + +// #region class-body-postapiindexv1debugdatasourcedocumenteventsresponse +// #endregion class-body-postapiindexv1debugdatasourcedocumenteventsresponse diff --git a/models/operations/putrestapiindexcustommetadataschemagroupname.go b/models/operations/putrestapiindexcustommetadataschemagroupname.go new file mode 100644 index 00000000..4d89daec --- /dev/null +++ b/models/operations/putrestapiindexcustommetadataschemagroupname.go @@ -0,0 +1,51 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/gleanwork/api-client-go/models/components" +) + +var PutRestAPIIndexCustomMetadataSchemaGroupNameServerList = []string{ + "https://{instance}-be.glean.com", +} + +type PutRestAPIIndexCustomMetadataSchemaGroupNameRequest struct { + // Name of the metadata group schema + GroupName string `pathParam:"style=simple,explode=false,name=groupName"` + CustomMetadataSchema components.CustomMetadataSchema `request:"mediaType=application/json"` +} + +func (p *PutRestAPIIndexCustomMetadataSchemaGroupNameRequest) GetGroupName() string { + if p == nil { + return "" + } + return p.GroupName +} + +func (p *PutRestAPIIndexCustomMetadataSchemaGroupNameRequest) GetCustomMetadataSchema() components.CustomMetadataSchema { + if p == nil { + return components.CustomMetadataSchema{} + } + return p.CustomMetadataSchema +} + +type PutRestAPIIndexCustomMetadataSchemaGroupNameResponse struct { + HTTPMeta components.HTTPMetadata `json:"-"` + // OK + SuccessResponse *components.SuccessResponse +} + +func (p *PutRestAPIIndexCustomMetadataSchemaGroupNameResponse) GetHTTPMeta() components.HTTPMetadata { + if p == nil { + return components.HTTPMetadata{} + } + return p.HTTPMeta +} + +func (p *PutRestAPIIndexCustomMetadataSchemaGroupNameResponse) GetSuccessResponse() *components.SuccessResponse { + if p == nil { + return nil + } + return p.SuccessResponse +} diff --git a/models/operations/putrestapiindexdocumentdocidcustommetadatagroupname.go b/models/operations/putrestapiindexdocumentdocidcustommetadatagroupname.go new file mode 100644 index 00000000..bfbb5763 --- /dev/null +++ b/models/operations/putrestapiindexdocumentdocidcustommetadatagroupname.go @@ -0,0 +1,60 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/gleanwork/api-client-go/models/components" +) + +var PutRestAPIIndexDocumentDocIDCustomMetadataGroupNameServerList = []string{ + "https://{instance}-be.glean.com", +} + +type PutRestAPIIndexDocumentDocIDCustomMetadataGroupNameRequest struct { + // Unique Glean identifier of the document + DocID string `pathParam:"style=simple,explode=false,name=docId"` + // Name of the metadata group as specified while adding schema + GroupName string `pathParam:"style=simple,explode=false,name=groupName"` + CustomMetadataPutRequest components.CustomMetadataPutRequest `request:"mediaType=application/json"` +} + +func (p *PutRestAPIIndexDocumentDocIDCustomMetadataGroupNameRequest) GetDocID() string { + if p == nil { + return "" + } + return p.DocID +} + +func (p *PutRestAPIIndexDocumentDocIDCustomMetadataGroupNameRequest) GetGroupName() string { + if p == nil { + return "" + } + return p.GroupName +} + +func (p *PutRestAPIIndexDocumentDocIDCustomMetadataGroupNameRequest) GetCustomMetadataPutRequest() components.CustomMetadataPutRequest { + if p == nil { + return components.CustomMetadataPutRequest{} + } + return p.CustomMetadataPutRequest +} + +type PutRestAPIIndexDocumentDocIDCustomMetadataGroupNameResponse struct { + HTTPMeta components.HTTPMetadata `json:"-"` + // OK + SuccessResponse *components.SuccessResponse +} + +func (p *PutRestAPIIndexDocumentDocIDCustomMetadataGroupNameResponse) GetHTTPMeta() components.HTTPMetadata { + if p == nil { + return components.HTTPMetadata{} + } + return p.HTTPMeta +} + +func (p *PutRestAPIIndexDocumentDocIDCustomMetadataGroupNameResponse) GetSuccessResponse() *components.SuccessResponse { + if p == nil { + return nil + } + return p.SuccessResponse +} diff --git a/models/operations/rotatedatasourcecredentials.go b/models/operations/rotatedatasourcecredentials.go new file mode 100644 index 00000000..64f56b7b --- /dev/null +++ b/models/operations/rotatedatasourcecredentials.go @@ -0,0 +1,47 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/gleanwork/api-client-go/models/components" +) + +type RotateDatasourceCredentialsRequest struct { + // The full datasource instance identifier (e.g. o365sharepoint_abc123) + DatasourceInstanceID string `pathParam:"style=simple,explode=false,name=datasourceInstanceId"` + RotateDatasourceCredentialsRequest components.RotateDatasourceCredentialsRequest `request:"mediaType=application/json"` +} + +func (r *RotateDatasourceCredentialsRequest) GetDatasourceInstanceID() string { + if r == nil { + return "" + } + return r.DatasourceInstanceID +} + +func (r *RotateDatasourceCredentialsRequest) GetRotateDatasourceCredentialsRequest() components.RotateDatasourceCredentialsRequest { + if r == nil { + return components.RotateDatasourceCredentialsRequest{} + } + return r.RotateDatasourceCredentialsRequest +} + +type RotateDatasourceCredentialsResponse struct { + HTTPMeta components.HTTPMetadata `json:"-"` + // OK + DatasourceCredentialStatusResponse *components.DatasourceCredentialStatusResponse +} + +func (r *RotateDatasourceCredentialsResponse) GetHTTPMeta() components.HTTPMetadata { + if r == nil { + return components.HTTPMetadata{} + } + return r.HTTPMeta +} + +func (r *RotateDatasourceCredentialsResponse) GetDatasourceCredentialStatusResponse() *components.DatasourceCredentialStatusResponse { + if r == nil { + return nil + } + return r.DatasourceCredentialStatusResponse +} diff --git a/tests/activities_test.go b/tests/activities_test.go index 19dc0bc8..e01e64d7 100644 --- a/tests/activities_test.go +++ b/tests/activities_test.go @@ -27,7 +27,7 @@ func TestActivities_Feedback(t *testing.T) { TrackingTokens: []string{ "trackingTokens", }, - Event: components.EventView, + Event: components.FeedbackEventView, }) require.NoError(t, err) assert.Equal(t, 200, res.HTTPMeta.Response.StatusCode) diff --git a/tests/chat_test.go b/tests/chat_test.go new file mode 100644 index 00000000..45f20a3a --- /dev/null +++ b/tests/chat_test.go @@ -0,0 +1,29 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package tests + +import ( + "context" + apiclientgo "github.com/gleanwork/api-client-go" + "github.com/gleanwork/api-client-go/internal/utils" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func TestChat_GetChatFile(t *testing.T) { + ctx := context.Background() + + testHTTPClient := createTestHTTPClient("getChatFile") + + s := apiclientgo.New( + apiclientgo.WithServerURL(utils.GetEnv("TEST_SERVER_URL", "http://localhost:18080")), + apiclientgo.WithClient(testHTTPClient), + apiclientgo.WithSecurity(utils.GetEnv("GLEAN_API_TOKEN", "value")), + ) + + res, err := s.Chat.GetChatFile(ctx, "", nil) + require.NoError(t, err) + assert.Equal(t, 200, res.HTTPMeta.Response.StatusCode) + +} diff --git a/tests/custommetadata_test.go b/tests/custommetadata_test.go new file mode 100644 index 00000000..181ce9ef --- /dev/null +++ b/tests/custommetadata_test.go @@ -0,0 +1,98 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package tests + +import ( + "context" + apiclientgo "github.com/gleanwork/api-client-go" + "github.com/gleanwork/api-client-go/internal/utils" + "github.com/gleanwork/api-client-go/models/components" + "github.com/gleanwork/api-client-go/models/operations" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func TestCustommetadata_PutRestAPIIndexDocumentDocIDCustomMetadataGroupName(t *testing.T) { + ctx := context.Background() + + testHTTPClient := createTestHTTPClient("put_/rest/api/index/document/{docId}/custom-metadata/{groupName}") + + s := apiclientgo.New( + apiclientgo.WithClient(testHTTPClient), + apiclientgo.WithSecurity(utils.GetEnv("GLEAN_API_TOKEN", "value")), + ) + + res, err := s.Indexing.CustomMetadata.Upsert(ctx, "", "", components.CustomMetadataPutRequest{ + CustomMetadata: []components.CustomProperty{}, + }, operations.WithServerURL(utils.GetEnv("TEST_SERVER_URL", "http://localhost:18080"))) + require.NoError(t, err) + assert.Equal(t, 200, res.HTTPMeta.Response.StatusCode) + +} + +func TestCustommetadata_DeleteRestAPIIndexDocumentDocIDCustomMetadataGroupName(t *testing.T) { + ctx := context.Background() + + testHTTPClient := createTestHTTPClient("delete_/rest/api/index/document/{docId}/custom-metadata/{groupName}") + + s := apiclientgo.New( + apiclientgo.WithClient(testHTTPClient), + apiclientgo.WithSecurity(utils.GetEnv("GLEAN_API_TOKEN", "value")), + ) + + res, err := s.Indexing.CustomMetadata.Delete(ctx, "", "", operations.WithServerURL(utils.GetEnv("TEST_SERVER_URL", "http://localhost:18080"))) + require.NoError(t, err) + assert.Equal(t, 200, res.HTTPMeta.Response.StatusCode) + +} + +func TestCustommetadata_GetRestAPIIndexCustomMetadataSchemaGroupName(t *testing.T) { + ctx := context.Background() + + testHTTPClient := createTestHTTPClient("get_/rest/api/index/custom-metadata/schema/{groupName}") + + s := apiclientgo.New( + apiclientgo.WithClient(testHTTPClient), + apiclientgo.WithSecurity(utils.GetEnv("GLEAN_API_TOKEN", "value")), + ) + + res, err := s.Indexing.CustomMetadata.GetSchema(ctx, "", operations.WithServerURL(utils.GetEnv("TEST_SERVER_URL", "http://localhost:18080"))) + require.NoError(t, err) + assert.Equal(t, 200, res.HTTPMeta.Response.StatusCode) + +} + +func TestCustommetadata_PutRestAPIIndexCustomMetadataSchemaGroupName(t *testing.T) { + ctx := context.Background() + + testHTTPClient := createTestHTTPClient("put_/rest/api/index/custom-metadata/schema/{groupName}") + + s := apiclientgo.New( + apiclientgo.WithClient(testHTTPClient), + apiclientgo.WithSecurity(utils.GetEnv("GLEAN_API_TOKEN", "value")), + ) + + res, err := s.Indexing.CustomMetadata.UpsertSchema(ctx, "", components.CustomMetadataSchema{ + MetadataKeys: []components.CustomMetadataPropertyDefinition{}, + }, operations.WithServerURL(utils.GetEnv("TEST_SERVER_URL", "http://localhost:18080"))) + require.NoError(t, err) + assert.Equal(t, 200, res.HTTPMeta.Response.StatusCode) + +} + +func TestCustommetadata_DeleteRestAPIIndexCustomMetadataSchemaGroupName(t *testing.T) { + ctx := context.Background() + + testHTTPClient := createTestHTTPClient("delete_/rest/api/index/custom-metadata/schema/{groupName}") + + s := apiclientgo.New( + apiclientgo.WithClient(testHTTPClient), + apiclientgo.WithSecurity(utils.GetEnv("GLEAN_API_TOKEN", "value")), + ) + + res, err := s.Indexing.CustomMetadata.DeleteSchema(ctx, "", operations.WithServerURL(utils.GetEnv("TEST_SERVER_URL", "http://localhost:18080"))) + require.NoError(t, err) + assert.Equal(t, 200, res.HTTPMeta.Response.StatusCode) + +} diff --git a/tests/datasources_test.go b/tests/datasources_test.go index 041194e5..b7b8de91 100644 --- a/tests/datasources_test.go +++ b/tests/datasources_test.go @@ -106,3 +106,43 @@ func TestDatasources_UpdateDatasourceInstanceConfiguration(t *testing.T) { assert.Equal(t, 200, res.HTTPMeta.Response.StatusCode) } + +func TestDatasources_GetDatasourceCredentialStatus(t *testing.T) { + ctx := context.Background() + + testHTTPClient := createTestHTTPClient("getDatasourceCredentialStatus") + + s := apiclientgo.New( + apiclientgo.WithServerURL(utils.GetEnv("TEST_SERVER_URL", "http://localhost:18080")), + apiclientgo.WithClient(testHTTPClient), + apiclientgo.WithSecurity(utils.GetEnv("GLEAN_API_TOKEN", "value")), + ) + + res, err := s.Datasources.GetDatasourceCredentialStatus(ctx, "o365sharepoint_abc123") + require.NoError(t, err) + assert.Equal(t, 200, res.HTTPMeta.Response.StatusCode) + +} + +func TestDatasources_RotateDatasourceCredentials(t *testing.T) { + ctx := context.Background() + + testHTTPClient := createTestHTTPClient("rotateDatasourceCredentials") + + s := apiclientgo.New( + apiclientgo.WithServerURL(utils.GetEnv("TEST_SERVER_URL", "http://localhost:18080")), + apiclientgo.WithClient(testHTTPClient), + apiclientgo.WithSecurity(utils.GetEnv("GLEAN_API_TOKEN", "value")), + ) + + res, err := s.Datasources.RotateDatasourceCredentials(ctx, "o365sharepoint_abc123", components.RotateDatasourceCredentialsRequest{ + Credentials: components.DatasourceInstanceConfiguration{ + Values: map[string]components.ConfigurationValue{ + "key": components.ConfigurationValue{}, + }, + }, + }) + require.NoError(t, err) + assert.Equal(t, 200, res.HTTPMeta.Response.StatusCode) + +} diff --git a/tests/entities_test.go b/tests/entities_test.go index f309376e..50fb6ee2 100644 --- a/tests/entities_test.go +++ b/tests/entities_test.go @@ -7,6 +7,7 @@ import ( apiclientgo "github.com/gleanwork/api-client-go" "github.com/gleanwork/api-client-go/internal/utils" "github.com/gleanwork/api-client-go/models/components" + "github.com/gleanwork/api-client-go/models/operations" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" @@ -71,3 +72,20 @@ func TestEntities_People(t *testing.T) { func TestEntities_Teams(t *testing.T) { t.Skip("incomplete test found please make sure to address the following errors: [`workflow step teams.test referencing operation teams not found in document`]") } + +func TestEntities_GetPersonPhoto(t *testing.T) { + ctx := context.Background() + + testHTTPClient := createTestHTTPClient("getPersonPhoto") + + s := apiclientgo.New( + apiclientgo.WithServerURL(utils.GetEnv("TEST_SERVER_URL", "http://localhost:18080")), + apiclientgo.WithClient(testHTTPClient), + apiclientgo.WithSecurity(utils.GetEnv("GLEAN_API_TOKEN", "value")), + ) + + res, err := s.Entities.GetPersonPhoto(ctx, "", nil, operations.WithAcceptHeaderOverride(operations.AcceptHeaderEnumImagePng)) + require.NoError(t, err) + assert.Equal(t, 200, res.HTTPMeta.Response.StatusCode) + +} diff --git a/tests/mockserver/go.mod b/tests/mockserver/go.mod index c37e594c..8b924407 100644 --- a/tests/mockserver/go.mod +++ b/tests/mockserver/go.mod @@ -1,6 +1,6 @@ module mockserver -go 1.22 +go 1.25.10 require ( github.com/ericlagergren/decimal v0.0.0-20221120152707-495c53812d05 diff --git a/tests/mockserver/internal/handler/generated_handlers.go b/tests/mockserver/internal/handler/generated_handlers.go index 4eaa2afa..6400b090 100644 --- a/tests/mockserver/internal/handler/generated_handlers.go +++ b/tests/mockserver/internal/handler/generated_handlers.go @@ -12,12 +12,19 @@ import ( // GeneratedHandlers returns all generated handlers. func GeneratedHandlers(ctx context.Context, dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) []*GeneratedHandler { return []*GeneratedHandler{ + NewGeneratedHandler(ctx, http.MethodDelete, "/rest/api/index/custom-metadata/schema/{groupName}", pathDeleteRestAPIIndexCustomMetadataSchemaGroupName(dir, rt)), + NewGeneratedHandler(ctx, http.MethodDelete, "/rest/api/index/document/{docId}/custom-metadata/{groupName}", pathDeleteRestAPIIndexDocumentDocIDCustomMetadataGroupName(dir, rt)), + NewGeneratedHandler(ctx, http.MethodGet, "/rest/api/index/custom-metadata/schema/{groupName}", pathGetRestAPIIndexCustomMetadataSchemaGroupName(dir, rt)), + NewGeneratedHandler(ctx, http.MethodGet, "/rest/api/v1/actions/actionpack/{actionPackId}/auth", pathGetRestAPIV1ActionsActionpackActionPackIDAuth(dir, rt)), NewGeneratedHandler(ctx, http.MethodGet, "/rest/api/v1/agents/{agent_id}", pathGetRestAPIV1AgentsAgentID(dir, rt)), NewGeneratedHandler(ctx, http.MethodGet, "/rest/api/v1/agents/{agent_id}/schemas", pathGetRestAPIV1AgentsAgentIDSchemas(dir, rt)), + NewGeneratedHandler(ctx, http.MethodGet, "/rest/api/v1/chat-files/{fileId}", pathGetRestAPIV1ChatFilesFileID(dir, rt)), NewGeneratedHandler(ctx, http.MethodGet, "/rest/api/v1/configure/datasources/{datasourceId}/instances/{instanceId}", pathGetRestAPIV1ConfigureDatasourcesDatasourceIDInstancesInstanceID(dir, rt)), + NewGeneratedHandler(ctx, http.MethodGet, "/rest/api/v1/datasource/{datasourceInstanceId}/credentialstatus", pathGetRestAPIV1DatasourceDatasourceInstanceIDCredentialstatus(dir, rt)), NewGeneratedHandler(ctx, http.MethodGet, "/rest/api/v1/governance/data/findings/exports", pathGetRestAPIV1GovernanceDataFindingsExports(dir, rt)), NewGeneratedHandler(ctx, http.MethodGet, "/rest/api/v1/governance/data/policies", pathGetRestAPIV1GovernanceDataPolicies(dir, rt)), NewGeneratedHandler(ctx, http.MethodGet, "/rest/api/v1/governance/data/policies/{id}", pathGetRestAPIV1GovernanceDataPoliciesID(dir, rt)), + NewGeneratedHandler(ctx, http.MethodGet, "/rest/api/v1/people/{person_id}/photo", pathGetRestAPIV1PeoplePersonIDPhoto(dir, rt)), NewGeneratedHandler(ctx, http.MethodGet, "/rest/api/v1/tools/list", pathGetRestAPIV1ToolsList(dir, rt)), NewGeneratedHandler(ctx, http.MethodPatch, "/rest/api/v1/configure/datasources/{datasourceId}/instances/{instanceId}", pathPatchRestAPIV1ConfigureDatasourcesDatasourceIDInstancesInstanceID(dir, rt)), NewGeneratedHandler(ctx, http.MethodPost, "/api/index/v1/adddatasource", pathPostAPIIndexV1Adddatasource(dir, rt)), @@ -45,6 +52,7 @@ func GeneratedHandlers(ctx context.Context, dir *logging.HTTPFileDirectory, rt * NewGeneratedHandler(ctx, http.MethodPost, "/api/index/v1/processallmemberships", pathPostAPIIndexV1Processallmemberships(dir, rt)), NewGeneratedHandler(ctx, http.MethodPost, "/api/index/v1/rotatetoken", pathPostAPIIndexV1Rotatetoken(dir, rt)), NewGeneratedHandler(ctx, http.MethodPost, "/api/index/v1/updatepermissions", pathPostAPIIndexV1Updatepermissions(dir, rt)), + NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/actions/actionpack/{actionPackId}/auth", pathPostRestAPIV1ActionsActionpackActionPackIDAuth(dir, rt)), NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/activity", pathPostRestAPIV1Activity(dir, rt)), NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/addcollectionitems", pathPostRestAPIV1Addcollectionitems(dir, rt)), NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/addverificationreminder", pathPostRestAPIV1Addverificationreminder(dir, rt)), @@ -57,6 +65,7 @@ func GeneratedHandlers(ctx context.Context, dir *logging.HTTPFileDirectory, rt * NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/createauthtoken", pathPostRestAPIV1Createauthtoken(dir, rt)), NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/createcollection", pathPostRestAPIV1Createcollection(dir, rt)), NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/createshortcut", pathPostRestAPIV1Createshortcut(dir, rt)), + NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/datasource/{datasourceInstanceId}/credentials", pathPostRestAPIV1DatasourceDatasourceInstanceIDCredentials(dir, rt)), NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/deleteallchats", pathPostRestAPIV1Deleteallchats(dir, rt)), NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/deleteannouncement", pathPostRestAPIV1Deleteannouncement(dir, rt)), NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/deleteanswer", pathPostRestAPIV1Deleteanswer(dir, rt)), @@ -100,5 +109,7 @@ func GeneratedHandlers(ctx context.Context, dir *logging.HTTPFileDirectory, rt * NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/updateannouncement", pathPostRestAPIV1Updateannouncement(dir, rt)), NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/updateshortcut", pathPostRestAPIV1Updateshortcut(dir, rt)), NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/verify", pathPostRestAPIV1Verify(dir, rt)), + NewGeneratedHandler(ctx, http.MethodPut, "/rest/api/index/custom-metadata/schema/{groupName}", pathPutRestAPIIndexCustomMetadataSchemaGroupName(dir, rt)), + NewGeneratedHandler(ctx, http.MethodPut, "/rest/api/index/document/{docId}/custom-metadata/{groupName}", pathPutRestAPIIndexDocumentDocIDCustomMetadataGroupName(dir, rt)), } } diff --git a/tests/mockserver/internal/handler/pathdeleterestapiindexcustommetadataschemagroupname.go b/tests/mockserver/internal/handler/pathdeleterestapiindexcustommetadataschemagroupname.go new file mode 100644 index 00000000..1aa2e9f6 --- /dev/null +++ b/tests/mockserver/internal/handler/pathdeleterestapiindexcustommetadataschemagroupname.go @@ -0,0 +1,65 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package handler + +import ( + "fmt" + "log" + "mockserver/internal/handler/assert" + "mockserver/internal/logging" + "mockserver/internal/sdk/models/components" + "mockserver/internal/sdk/types" + "mockserver/internal/sdk/utils" + "mockserver/internal/tracking" + "net/http" +) + +func pathDeleteRestAPIIndexCustomMetadataSchemaGroupName(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { + return func(w http.ResponseWriter, req *http.Request) { + test := req.Header.Get("x-speakeasy-test-name") + instanceID := req.Header.Get("x-speakeasy-test-instance-id") + + count := rt.GetRequestCount(test, instanceID) + + switch fmt.Sprintf("%s[%d]", test, count) { + case "delete_/rest/api/index/custom-metadata/schema/{groupName}[0]": + dir.HandlerFunc("delete_/rest/api/index/custom-metadata/schema/{groupName}", testDeleteRestAPIIndexCustomMetadataSchemaGroupNameDeleteRestAPIIndexCustomMetadataSchemaGroupName0)(w, req) + default: + http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) + } + } +} + +func testDeleteRestAPIIndexCustomMetadataSchemaGroupNameDeleteRestAPIIndexCustomMetadataSchemaGroupName0(w http.ResponseWriter, req *http.Request) { + if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusUnauthorized) + return + } + if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + if err := assert.HeaderExists(req, "User-Agent"); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + var respBody *components.SuccessResponse = &components.SuccessResponse{ + Success: types.Bool(true), + } + respBodyBytes, err := utils.MarshalJSON(respBody, "", true) + + if err != nil { + http.Error( + w, + "Unable to encode response body as JSON: "+err.Error(), + http.StatusInternalServerError, + ) + return + } + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(http.StatusOK) + _, _ = w.Write(respBodyBytes) +} diff --git a/tests/mockserver/internal/handler/pathdeleterestapiindexdocumentdocidcustommetadatagroupname.go b/tests/mockserver/internal/handler/pathdeleterestapiindexdocumentdocidcustommetadatagroupname.go new file mode 100644 index 00000000..ff7097f8 --- /dev/null +++ b/tests/mockserver/internal/handler/pathdeleterestapiindexdocumentdocidcustommetadatagroupname.go @@ -0,0 +1,65 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package handler + +import ( + "fmt" + "log" + "mockserver/internal/handler/assert" + "mockserver/internal/logging" + "mockserver/internal/sdk/models/components" + "mockserver/internal/sdk/types" + "mockserver/internal/sdk/utils" + "mockserver/internal/tracking" + "net/http" +) + +func pathDeleteRestAPIIndexDocumentDocIDCustomMetadataGroupName(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { + return func(w http.ResponseWriter, req *http.Request) { + test := req.Header.Get("x-speakeasy-test-name") + instanceID := req.Header.Get("x-speakeasy-test-instance-id") + + count := rt.GetRequestCount(test, instanceID) + + switch fmt.Sprintf("%s[%d]", test, count) { + case "delete_/rest/api/index/document/{docId}/custom-metadata/{groupName}[0]": + dir.HandlerFunc("delete_/rest/api/index/document/{docId}/custom-metadata/{groupName}", testDeleteRestAPIIndexDocumentDocIDCustomMetadataGroupNameDeleteRestAPIIndexDocumentDocIDCustomMetadataGroupName0)(w, req) + default: + http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) + } + } +} + +func testDeleteRestAPIIndexDocumentDocIDCustomMetadataGroupNameDeleteRestAPIIndexDocumentDocIDCustomMetadataGroupName0(w http.ResponseWriter, req *http.Request) { + if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusUnauthorized) + return + } + if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + if err := assert.HeaderExists(req, "User-Agent"); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + var respBody *components.SuccessResponse = &components.SuccessResponse{ + Success: types.Bool(true), + } + respBodyBytes, err := utils.MarshalJSON(respBody, "", true) + + if err != nil { + http.Error( + w, + "Unable to encode response body as JSON: "+err.Error(), + http.StatusInternalServerError, + ) + return + } + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(http.StatusOK) + _, _ = w.Write(respBodyBytes) +} diff --git a/tests/mockserver/internal/handler/pathgetrestapiindexcustommetadataschemagroupname.go b/tests/mockserver/internal/handler/pathgetrestapiindexcustommetadataschemagroupname.go new file mode 100644 index 00000000..2c4b02fd --- /dev/null +++ b/tests/mockserver/internal/handler/pathgetrestapiindexcustommetadataschemagroupname.go @@ -0,0 +1,64 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package handler + +import ( + "fmt" + "log" + "mockserver/internal/handler/assert" + "mockserver/internal/logging" + "mockserver/internal/sdk/models/components" + "mockserver/internal/sdk/utils" + "mockserver/internal/tracking" + "net/http" +) + +func pathGetRestAPIIndexCustomMetadataSchemaGroupName(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { + return func(w http.ResponseWriter, req *http.Request) { + test := req.Header.Get("x-speakeasy-test-name") + instanceID := req.Header.Get("x-speakeasy-test-instance-id") + + count := rt.GetRequestCount(test, instanceID) + + switch fmt.Sprintf("%s[%d]", test, count) { + case "get_/rest/api/index/custom-metadata/schema/{groupName}[0]": + dir.HandlerFunc("get_/rest/api/index/custom-metadata/schema/{groupName}", testGetRestAPIIndexCustomMetadataSchemaGroupNameGetRestAPIIndexCustomMetadataSchemaGroupName0)(w, req) + default: + http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) + } + } +} + +func testGetRestAPIIndexCustomMetadataSchemaGroupNameGetRestAPIIndexCustomMetadataSchemaGroupName0(w http.ResponseWriter, req *http.Request) { + if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusUnauthorized) + return + } + if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + if err := assert.HeaderExists(req, "User-Agent"); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + var respBody *components.CustomMetadataSchema = &components.CustomMetadataSchema{ + MetadataKeys: []components.CustomMetadataPropertyDefinition{}, + } + respBodyBytes, err := utils.MarshalJSON(respBody, "", true) + + if err != nil { + http.Error( + w, + "Unable to encode response body as JSON: "+err.Error(), + http.StatusInternalServerError, + ) + return + } + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(http.StatusOK) + _, _ = w.Write(respBodyBytes) +} diff --git a/tests/mockserver/internal/handler/pathgetrestapiv1actionsactionpackactionpackidauth.go b/tests/mockserver/internal/handler/pathgetrestapiv1actionsactionpackactionpackidauth.go new file mode 100644 index 00000000..97d3b63e --- /dev/null +++ b/tests/mockserver/internal/handler/pathgetrestapiv1actionsactionpackactionpackidauth.go @@ -0,0 +1,67 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package handler + +import ( + "fmt" + "log" + "mockserver/internal/handler/assert" + "mockserver/internal/logging" + "mockserver/internal/sdk/models/components" + "mockserver/internal/sdk/utils" + "mockserver/internal/tracking" + "net/http" +) + +func pathGetRestAPIV1ActionsActionpackActionPackIDAuth(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { + return func(w http.ResponseWriter, req *http.Request) { + test := req.Header.Get("x-speakeasy-test-name") + instanceID := req.Header.Get("x-speakeasy-test-instance-id") + + count := rt.GetRequestCount(test, instanceID) + + switch fmt.Sprintf("%s[%d]", test, count) { + case "getActionPackAuthStatus[0]": + dir.HandlerFunc("getActionPackAuthStatus", testGetActionPackAuthStatusGetActionPackAuthStatus0)(w, req) + default: + http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) + } + } +} + +func testGetActionPackAuthStatusGetActionPackAuthStatus0(w http.ResponseWriter, req *http.Request) { + if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusUnauthorized) + return + } + if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + if err := assert.HeaderExists(req, "User-Agent"); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + var respBody *components.ActionPackAuthStatusResponse = &components.ActionPackAuthStatusResponse{ + ActionPack: components.ActionPackAuthStatus{ + Authenticated: true, + AuthType: components.ActionAuthTypeAuthUserOauth, + }, + } + respBodyBytes, err := utils.MarshalJSON(respBody, "", true) + + if err != nil { + http.Error( + w, + "Unable to encode response body as JSON: "+err.Error(), + http.StatusInternalServerError, + ) + return + } + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(http.StatusOK) + _, _ = w.Write(respBodyBytes) +} diff --git a/tests/mockserver/internal/handler/pathgetrestapiv1chatfilesfileid.go b/tests/mockserver/internal/handler/pathgetrestapiv1chatfilesfileid.go new file mode 100644 index 00000000..17e141f6 --- /dev/null +++ b/tests/mockserver/internal/handler/pathgetrestapiv1chatfilesfileid.go @@ -0,0 +1,51 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package handler + +import ( + "fmt" + "log" + "mockserver/internal/handler/assert" + "mockserver/internal/handler/values" + "mockserver/internal/logging" + "mockserver/internal/tracking" + "net/http" +) + +func pathGetRestAPIV1ChatFilesFileID(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { + return func(w http.ResponseWriter, req *http.Request) { + test := req.Header.Get("x-speakeasy-test-name") + instanceID := req.Header.Get("x-speakeasy-test-instance-id") + + count := rt.GetRequestCount(test, instanceID) + + switch fmt.Sprintf("%s[%d]", test, count) { + case "getChatFile[0]": + dir.HandlerFunc("getChatFile", testGetChatFileGetChatFile0)(w, req) + default: + http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) + } + } +} + +func testGetChatFileGetChatFile0(w http.ResponseWriter, req *http.Request) { + if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusUnauthorized) + return + } + if err := assert.AcceptHeader(req, []string{"application/octet-stream"}); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + if err := assert.HeaderExists(req, "User-Agent"); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + respBodyBytes := values.ReadFileToBytes("./testdata/example.file") + w.Header().Set("Content-Type", "application/octet-stream") + w.WriteHeader(http.StatusOK) + _, _ = w.Write(respBodyBytes) +} diff --git a/tests/mockserver/internal/handler/pathgetrestapiv1datasourcedatasourceinstanceidcredentialstatus.go b/tests/mockserver/internal/handler/pathgetrestapiv1datasourcedatasourceinstanceidcredentialstatus.go new file mode 100644 index 00000000..92d8c1fa --- /dev/null +++ b/tests/mockserver/internal/handler/pathgetrestapiv1datasourcedatasourceinstanceidcredentialstatus.go @@ -0,0 +1,64 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package handler + +import ( + "fmt" + "log" + "mockserver/internal/handler/assert" + "mockserver/internal/logging" + "mockserver/internal/sdk/models/components" + "mockserver/internal/sdk/utils" + "mockserver/internal/tracking" + "net/http" +) + +func pathGetRestAPIV1DatasourceDatasourceInstanceIDCredentialstatus(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { + return func(w http.ResponseWriter, req *http.Request) { + test := req.Header.Get("x-speakeasy-test-name") + instanceID := req.Header.Get("x-speakeasy-test-instance-id") + + count := rt.GetRequestCount(test, instanceID) + + switch fmt.Sprintf("%s[%d]", test, count) { + case "getDatasourceCredentialStatus[0]": + dir.HandlerFunc("getDatasourceCredentialStatus", testGetDatasourceCredentialStatusGetDatasourceCredentialStatus0)(w, req) + default: + http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) + } + } +} + +func testGetDatasourceCredentialStatusGetDatasourceCredentialStatus0(w http.ResponseWriter, req *http.Request) { + if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusUnauthorized) + return + } + if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + if err := assert.HeaderExists(req, "User-Agent"); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + var respBody *components.DatasourceCredentialStatusResponse = &components.DatasourceCredentialStatusResponse{ + Status: components.DatasourceCredentialStatusValid, + } + respBodyBytes, err := utils.MarshalJSON(respBody, "", true) + + if err != nil { + http.Error( + w, + "Unable to encode response body as JSON: "+err.Error(), + http.StatusInternalServerError, + ) + return + } + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(http.StatusOK) + _, _ = w.Write(respBodyBytes) +} diff --git a/tests/mockserver/internal/handler/pathgetrestapiv1peoplepersonidphoto.go b/tests/mockserver/internal/handler/pathgetrestapiv1peoplepersonidphoto.go new file mode 100644 index 00000000..253b4d87 --- /dev/null +++ b/tests/mockserver/internal/handler/pathgetrestapiv1peoplepersonidphoto.go @@ -0,0 +1,51 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package handler + +import ( + "fmt" + "log" + "mockserver/internal/handler/assert" + "mockserver/internal/handler/values" + "mockserver/internal/logging" + "mockserver/internal/tracking" + "net/http" +) + +func pathGetRestAPIV1PeoplePersonIDPhoto(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { + return func(w http.ResponseWriter, req *http.Request) { + test := req.Header.Get("x-speakeasy-test-name") + instanceID := req.Header.Get("x-speakeasy-test-instance-id") + + count := rt.GetRequestCount(test, instanceID) + + switch fmt.Sprintf("%s[%d]", test, count) { + case "getPersonPhoto[0]": + dir.HandlerFunc("getPersonPhoto", testGetPersonPhotoGetPersonPhoto0)(w, req) + default: + http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) + } + } +} + +func testGetPersonPhotoGetPersonPhoto0(w http.ResponseWriter, req *http.Request) { + if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusUnauthorized) + return + } + if err := assert.AcceptHeader(req, []string{"image/jpeg;q=1", "image/png;q=0"}); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + if err := assert.HeaderExists(req, "User-Agent"); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + respBodyBytes := values.ReadFileToBytes("./testdata/example.file") + w.Header().Set("Content-Type", "image/png") + w.WriteHeader(http.StatusOK) + _, _ = w.Write(respBodyBytes) +} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1actionsactionpackactionpackidauth.go b/tests/mockserver/internal/handler/pathpostrestapiv1actionsactionpackactionpackidauth.go new file mode 100644 index 00000000..5ae4ea12 --- /dev/null +++ b/tests/mockserver/internal/handler/pathpostrestapiv1actionsactionpackactionpackidauth.go @@ -0,0 +1,69 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package handler + +import ( + "fmt" + "log" + "mockserver/internal/handler/assert" + "mockserver/internal/logging" + "mockserver/internal/sdk/models/components" + "mockserver/internal/sdk/utils" + "mockserver/internal/tracking" + "net/http" +) + +func pathPostRestAPIV1ActionsActionpackActionPackIDAuth(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { + return func(w http.ResponseWriter, req *http.Request) { + test := req.Header.Get("x-speakeasy-test-name") + instanceID := req.Header.Get("x-speakeasy-test-instance-id") + + count := rt.GetRequestCount(test, instanceID) + + switch fmt.Sprintf("%s[%d]", test, count) { + case "authorizeActionPack[0]": + dir.HandlerFunc("authorizeActionPack", testAuthorizeActionPackAuthorizeActionPack0)(w, req) + default: + http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) + } + } +} + +func testAuthorizeActionPackAuthorizeActionPack0(w http.ResponseWriter, req *http.Request) { + if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusUnauthorized) + return + } + if err := assert.ContentType(req, "application/json", true); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + if err := assert.HeaderExists(req, "User-Agent"); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + var respBody *components.AuthorizeActionPackResponse = &components.AuthorizeActionPackResponse{ + RedirectURL: "https://unconscious-diversity.net", + } + respBodyBytes, err := utils.MarshalJSON(respBody, "", true) + + if err != nil { + http.Error( + w, + "Unable to encode response body as JSON: "+err.Error(), + http.StatusInternalServerError, + ) + return + } + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(http.StatusOK) + _, _ = w.Write(respBodyBytes) +} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1datasourcedatasourceinstanceidcredentials.go b/tests/mockserver/internal/handler/pathpostrestapiv1datasourcedatasourceinstanceidcredentials.go new file mode 100644 index 00000000..af37421f --- /dev/null +++ b/tests/mockserver/internal/handler/pathpostrestapiv1datasourcedatasourceinstanceidcredentials.go @@ -0,0 +1,69 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package handler + +import ( + "fmt" + "log" + "mockserver/internal/handler/assert" + "mockserver/internal/logging" + "mockserver/internal/sdk/models/components" + "mockserver/internal/sdk/utils" + "mockserver/internal/tracking" + "net/http" +) + +func pathPostRestAPIV1DatasourceDatasourceInstanceIDCredentials(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { + return func(w http.ResponseWriter, req *http.Request) { + test := req.Header.Get("x-speakeasy-test-name") + instanceID := req.Header.Get("x-speakeasy-test-instance-id") + + count := rt.GetRequestCount(test, instanceID) + + switch fmt.Sprintf("%s[%d]", test, count) { + case "rotateDatasourceCredentials[0]": + dir.HandlerFunc("rotateDatasourceCredentials", testRotateDatasourceCredentialsRotateDatasourceCredentials0)(w, req) + default: + http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) + } + } +} + +func testRotateDatasourceCredentialsRotateDatasourceCredentials0(w http.ResponseWriter, req *http.Request) { + if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusUnauthorized) + return + } + if err := assert.ContentType(req, "application/json", true); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + if err := assert.HeaderExists(req, "User-Agent"); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + var respBody *components.DatasourceCredentialStatusResponse = &components.DatasourceCredentialStatusResponse{ + Status: components.DatasourceCredentialStatusMissing, + } + respBodyBytes, err := utils.MarshalJSON(respBody, "", true) + + if err != nil { + http.Error( + w, + "Unable to encode response body as JSON: "+err.Error(), + http.StatusInternalServerError, + ) + return + } + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(http.StatusOK) + _, _ = w.Write(respBodyBytes) +} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1getchat.go b/tests/mockserver/internal/handler/pathpostrestapiv1getchat.go index 96d4127e..87401958 100644 --- a/tests/mockserver/internal/handler/pathpostrestapiv1getchat.go +++ b/tests/mockserver/internal/handler/pathpostrestapiv1getchat.go @@ -628,8 +628,8 @@ func testGetchatGetchat0(w http.ResponseWriter, req *http.Request) { Roles: []components.UserRoleSpecification{}, SourceDocumentSpec: types.Pointer(components.CreateDocumentSpecUnionDocumentSpec3( components.DocumentSpec3{ - UgcType: components.DocumentSpecUgcType1Announcements, - ContentID: 848009, + UgcType: components.DocumentSpecUgcType1Shortcuts, + ContentID: 602763, }, )), SourceType: components.AnswerSourceTypeAssistant.ToPointer(), diff --git a/tests/mockserver/internal/handler/pathputrestapiindexcustommetadataschemagroupname.go b/tests/mockserver/internal/handler/pathputrestapiindexcustommetadataschemagroupname.go new file mode 100644 index 00000000..b9aa8f5d --- /dev/null +++ b/tests/mockserver/internal/handler/pathputrestapiindexcustommetadataschemagroupname.go @@ -0,0 +1,70 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package handler + +import ( + "fmt" + "log" + "mockserver/internal/handler/assert" + "mockserver/internal/logging" + "mockserver/internal/sdk/models/components" + "mockserver/internal/sdk/types" + "mockserver/internal/sdk/utils" + "mockserver/internal/tracking" + "net/http" +) + +func pathPutRestAPIIndexCustomMetadataSchemaGroupName(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { + return func(w http.ResponseWriter, req *http.Request) { + test := req.Header.Get("x-speakeasy-test-name") + instanceID := req.Header.Get("x-speakeasy-test-instance-id") + + count := rt.GetRequestCount(test, instanceID) + + switch fmt.Sprintf("%s[%d]", test, count) { + case "put_/rest/api/index/custom-metadata/schema/{groupName}[0]": + dir.HandlerFunc("put_/rest/api/index/custom-metadata/schema/{groupName}", testPutRestAPIIndexCustomMetadataSchemaGroupNamePutRestAPIIndexCustomMetadataSchemaGroupName0)(w, req) + default: + http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) + } + } +} + +func testPutRestAPIIndexCustomMetadataSchemaGroupNamePutRestAPIIndexCustomMetadataSchemaGroupName0(w http.ResponseWriter, req *http.Request) { + if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusUnauthorized) + return + } + if err := assert.ContentType(req, "application/json", true); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + if err := assert.HeaderExists(req, "User-Agent"); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + var respBody *components.SuccessResponse = &components.SuccessResponse{ + Success: types.Bool(true), + } + respBodyBytes, err := utils.MarshalJSON(respBody, "", true) + + if err != nil { + http.Error( + w, + "Unable to encode response body as JSON: "+err.Error(), + http.StatusInternalServerError, + ) + return + } + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(http.StatusOK) + _, _ = w.Write(respBodyBytes) +} diff --git a/tests/mockserver/internal/handler/pathputrestapiindexdocumentdocidcustommetadatagroupname.go b/tests/mockserver/internal/handler/pathputrestapiindexdocumentdocidcustommetadatagroupname.go new file mode 100644 index 00000000..acee8819 --- /dev/null +++ b/tests/mockserver/internal/handler/pathputrestapiindexdocumentdocidcustommetadatagroupname.go @@ -0,0 +1,70 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package handler + +import ( + "fmt" + "log" + "mockserver/internal/handler/assert" + "mockserver/internal/logging" + "mockserver/internal/sdk/models/components" + "mockserver/internal/sdk/types" + "mockserver/internal/sdk/utils" + "mockserver/internal/tracking" + "net/http" +) + +func pathPutRestAPIIndexDocumentDocIDCustomMetadataGroupName(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { + return func(w http.ResponseWriter, req *http.Request) { + test := req.Header.Get("x-speakeasy-test-name") + instanceID := req.Header.Get("x-speakeasy-test-instance-id") + + count := rt.GetRequestCount(test, instanceID) + + switch fmt.Sprintf("%s[%d]", test, count) { + case "put_/rest/api/index/document/{docId}/custom-metadata/{groupName}[0]": + dir.HandlerFunc("put_/rest/api/index/document/{docId}/custom-metadata/{groupName}", testPutRestAPIIndexDocumentDocIDCustomMetadataGroupNamePutRestAPIIndexDocumentDocIDCustomMetadataGroupName0)(w, req) + default: + http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) + } + } +} + +func testPutRestAPIIndexDocumentDocIDCustomMetadataGroupNamePutRestAPIIndexDocumentDocIDCustomMetadataGroupName0(w http.ResponseWriter, req *http.Request) { + if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusUnauthorized) + return + } + if err := assert.ContentType(req, "application/json", true); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + if err := assert.HeaderExists(req, "User-Agent"); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + var respBody *components.SuccessResponse = &components.SuccessResponse{ + Success: types.Bool(true), + } + respBodyBytes, err := utils.MarshalJSON(respBody, "", true) + + if err != nil { + http.Error( + w, + "Unable to encode response body as JSON: "+err.Error(), + http.StatusInternalServerError, + ) + return + } + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(http.StatusOK) + _, _ = w.Write(respBodyBytes) +} diff --git a/tests/mockserver/internal/sdk/models/components/actionauthtype.go b/tests/mockserver/internal/sdk/models/components/actionauthtype.go new file mode 100644 index 00000000..4547fc36 --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/actionauthtype.go @@ -0,0 +1,41 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +import ( + "encoding/json" + "fmt" +) + +// ActionAuthType - Authentication mechanism used by an action pack. +// - `AUTH_USER_OAUTH`: Requires per-user OAuth consent to the third-party tool. +// - `AUTH_ADMIN`: Uses a service-account / admin-owned credential. End users do not authorize individually. +// - `AUTH_NONE`: Action pack requires no authentication. +type ActionAuthType string + +const ( + ActionAuthTypeAuthUserOauth ActionAuthType = "AUTH_USER_OAUTH" + ActionAuthTypeAuthAdmin ActionAuthType = "AUTH_ADMIN" + ActionAuthTypeAuthNone ActionAuthType = "AUTH_NONE" +) + +func (e ActionAuthType) ToPointer() *ActionAuthType { + return &e +} +func (e *ActionAuthType) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "AUTH_USER_OAUTH": + fallthrough + case "AUTH_ADMIN": + fallthrough + case "AUTH_NONE": + *e = ActionAuthType(v) + return nil + default: + return fmt.Errorf("invalid value for ActionAuthType: %v", v) + } +} diff --git a/tests/mockserver/internal/sdk/models/components/actionpackauthstatus.go b/tests/mockserver/internal/sdk/models/components/actionpackauthstatus.go new file mode 100644 index 00000000..fb8e700a --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/actionpackauthstatus.go @@ -0,0 +1,28 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +type ActionPackAuthStatus struct { + // Whether the calling user is already authenticated to the tool backing the action pack. + Authenticated bool `json:"authenticated"` + // Authentication mechanism used by an action pack. + // - `AUTH_USER_OAUTH`: Requires per-user OAuth consent to the third-party tool. + // - `AUTH_ADMIN`: Uses a service-account / admin-owned credential. End users do not authorize individually. + // - `AUTH_NONE`: Action pack requires no authentication. + // + AuthType ActionAuthType `json:"authType"` +} + +func (o *ActionPackAuthStatus) GetAuthenticated() bool { + if o == nil { + return false + } + return o.Authenticated +} + +func (o *ActionPackAuthStatus) GetAuthType() ActionAuthType { + if o == nil { + return ActionAuthType("") + } + return o.AuthType +} diff --git a/tests/mockserver/internal/sdk/models/components/actionpackauthstatusresponse.go b/tests/mockserver/internal/sdk/models/components/actionpackauthstatusresponse.go new file mode 100644 index 00000000..b5d71982 --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/actionpackauthstatusresponse.go @@ -0,0 +1,14 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +type ActionPackAuthStatusResponse struct { + ActionPack ActionPackAuthStatus `json:"actionPack"` +} + +func (o *ActionPackAuthStatusResponse) GetActionPack() ActionPackAuthStatus { + if o == nil { + return ActionPackAuthStatus{} + } + return o.ActionPack +} diff --git a/tests/mockserver/internal/sdk/models/components/addcollectionitemserror.go b/tests/mockserver/internal/sdk/models/components/addcollectionitemserror.go index 215308e8..43f93195 100644 --- a/tests/mockserver/internal/sdk/models/components/addcollectionitemserror.go +++ b/tests/mockserver/internal/sdk/models/components/addcollectionitemserror.go @@ -11,6 +11,7 @@ type AddCollectionItemsErrorErrorType string const ( AddCollectionItemsErrorErrorTypeExistingItem AddCollectionItemsErrorErrorType = "EXISTING_ITEM" + AddCollectionItemsErrorErrorTypeCorruptItem AddCollectionItemsErrorErrorType = "CORRUPT_ITEM" ) func (e AddCollectionItemsErrorErrorType) ToPointer() *AddCollectionItemsErrorErrorType { @@ -23,6 +24,8 @@ func (e *AddCollectionItemsErrorErrorType) UnmarshalJSON(data []byte) error { } switch v { case "EXISTING_ITEM": + fallthrough + case "CORRUPT_ITEM": *e = AddCollectionItemsErrorErrorType(v) return nil default: diff --git a/tests/mockserver/internal/sdk/models/components/agentsinsightsv2request.go b/tests/mockserver/internal/sdk/models/components/agentsinsightsv2request.go index 30af15e6..83467d6a 100644 --- a/tests/mockserver/internal/sdk/models/components/agentsinsightsv2request.go +++ b/tests/mockserver/internal/sdk/models/components/agentsinsightsv2request.go @@ -7,7 +7,9 @@ type AgentsInsightsV2Request struct { AgentIds []string `json:"agentIds,omitempty"` // Departments for which Insights are requested. Departments []string `json:"departments,omitempty"` - DayRange *Period `json:"dayRange,omitempty"` + // Manager emails whose teams should be filtered for. Empty array means no filtering. + ManagerEmails []string `json:"managerEmails,omitempty"` + DayRange *Period `json:"dayRange,omitempty"` } func (o *AgentsInsightsV2Request) GetAgentIds() []string { @@ -24,6 +26,13 @@ func (o *AgentsInsightsV2Request) GetDepartments() []string { return o.Departments } +func (o *AgentsInsightsV2Request) GetManagerEmails() []string { + if o == nil { + return nil + } + return o.ManagerEmails +} + func (o *AgentsInsightsV2Request) GetDayRange() *Period { if o == nil { return nil diff --git a/tests/mockserver/internal/sdk/models/components/agentsinsightsv2response.go b/tests/mockserver/internal/sdk/models/components/agentsinsightsv2response.go index dab3698e..25139a60 100644 --- a/tests/mockserver/internal/sdk/models/components/agentsinsightsv2response.go +++ b/tests/mockserver/internal/sdk/models/components/agentsinsightsv2response.go @@ -3,9 +3,9 @@ package components type AgentsInsightsV2Response struct { - // Number of current Monthly Active Users, in the specified departments. + // Number of current Monthly Active Users. MonthlyActiveUsers *int64 `json:"monthlyActiveUsers,omitempty"` - // Number of current Weekly Active Users, in the specified departments. + // Number of current Weekly Active Users. WeeklyActiveUsers *int64 `json:"weeklyActiveUsers,omitempty"` MonthlyActiveUserTimeseries *LabeledCountInfo `json:"monthlyActiveUserTimeseries,omitempty"` WeeklyActiveUserTimeseries *LabeledCountInfo `json:"weeklyActiveUserTimeseries,omitempty"` @@ -13,6 +13,7 @@ type AgentsInsightsV2Response struct { // Total number of shared agents. SharedAgentsCount *int64 `json:"sharedAgentsCount,omitempty"` TopAgentsInsights []PerAgentInsight `json:"topAgentsInsights,omitempty"` + TopUseCasesInsights []AgentUseCaseInsight `json:"topUseCasesInsights,omitempty"` AgentsUsageByDepartmentInsights []AgentsUsageByDepartmentInsight `json:"agentsUsageByDepartmentInsights,omitempty"` AgentUsersInsights []AgentUsersInsight `json:"agentUsersInsights,omitempty"` // Insights for agents time saved over the specified time period. @@ -74,6 +75,13 @@ func (o *AgentsInsightsV2Response) GetTopAgentsInsights() []PerAgentInsight { return o.TopAgentsInsights } +func (o *AgentsInsightsV2Response) GetTopUseCasesInsights() []AgentUseCaseInsight { + if o == nil { + return nil + } + return o.TopUseCasesInsights +} + func (o *AgentsInsightsV2Response) GetAgentsUsageByDepartmentInsights() []AgentsUsageByDepartmentInsight { if o == nil { return nil diff --git a/tests/mockserver/internal/sdk/models/components/agentusecaseinsight.go b/tests/mockserver/internal/sdk/models/components/agentusecaseinsight.go new file mode 100644 index 00000000..3caa1836 --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/agentusecaseinsight.go @@ -0,0 +1,78 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +type AgentUseCaseInsight struct { + // Use case name + UseCase *string `json:"useCase,omitempty"` + // Total number of runs for this use case over the specified time period. + RunCount *int64 `json:"runCount,omitempty"` + // Percentage change in runs compared to the previous equivalent time period. + Trend *float32 `json:"trend,omitempty"` + // Comma-separated list of the top departments using this use case. + TopDepartments *string `json:"topDepartments,omitempty"` + // ID of the most-used agent for this use case. + TopAgentID *string `json:"topAgentId,omitempty"` + // Name of the most-used agent for this use case. + TopAgentName *string `json:"topAgentName,omitempty"` + // Defines how to render an icon + TopAgentIcon *IconConfig `json:"topAgentIcon,omitempty"` + // Indicates whether the top agent has been deleted. + TopAgentIsDeleted *bool `json:"topAgentIsDeleted,omitempty"` +} + +func (o *AgentUseCaseInsight) GetUseCase() *string { + if o == nil { + return nil + } + return o.UseCase +} + +func (o *AgentUseCaseInsight) GetRunCount() *int64 { + if o == nil { + return nil + } + return o.RunCount +} + +func (o *AgentUseCaseInsight) GetTrend() *float32 { + if o == nil { + return nil + } + return o.Trend +} + +func (o *AgentUseCaseInsight) GetTopDepartments() *string { + if o == nil { + return nil + } + return o.TopDepartments +} + +func (o *AgentUseCaseInsight) GetTopAgentID() *string { + if o == nil { + return nil + } + return o.TopAgentID +} + +func (o *AgentUseCaseInsight) GetTopAgentName() *string { + if o == nil { + return nil + } + return o.TopAgentName +} + +func (o *AgentUseCaseInsight) GetTopAgentIcon() *IconConfig { + if o == nil { + return nil + } + return o.TopAgentIcon +} + +func (o *AgentUseCaseInsight) GetTopAgentIsDeleted() *bool { + if o == nil { + return nil + } + return o.TopAgentIsDeleted +} diff --git a/tests/mockserver/internal/sdk/models/components/announcement.go b/tests/mockserver/internal/sdk/models/components/announcement.go index c8744e43..c2e1c399 100644 --- a/tests/mockserver/internal/sdk/models/components/announcement.go +++ b/tests/mockserver/internal/sdk/models/components/announcement.go @@ -113,6 +113,8 @@ type Announcement struct { // The opaque id of the associated draft. DraftID *int64 `json:"draftId,omitempty"` Permissions *ObjectPermissions `json:"permissions,omitempty"` + // An opaque token that represents this particular UGC. To be used for `/feedback` reporting. + TrackingToken *string `json:"trackingToken,omitempty"` // The opaque id of the announcement. ID *int64 `json:"id,omitempty"` Author *Person `json:"author,omitempty"` @@ -250,6 +252,13 @@ func (o *Announcement) GetPermissions() *ObjectPermissions { return o.Permissions } +func (o *Announcement) GetTrackingToken() *string { + if o == nil { + return nil + } + return o.TrackingToken +} + func (o *Announcement) GetID() *int64 { if o == nil { return nil diff --git a/tests/mockserver/internal/sdk/models/components/answer.go b/tests/mockserver/internal/sdk/models/components/answer.go index d6b9be08..69609f52 100644 --- a/tests/mockserver/internal/sdk/models/components/answer.go +++ b/tests/mockserver/internal/sdk/models/components/answer.go @@ -60,9 +60,11 @@ type Answer struct { SourceDocumentSpec *DocumentSpecUnion `json:"sourceDocumentSpec,omitempty"` SourceType *AnswerSourceType `json:"sourceType,omitempty"` Permissions *ObjectPermissions `json:"permissions,omitempty"` - CombinedAnswerText *StructuredText `json:"combinedAnswerText,omitempty"` - Likes *AnswerLikes `json:"likes,omitempty"` - Author *Person `json:"author,omitempty"` + // An opaque token that represents this particular UGC. To be used for `/feedback` reporting. + TrackingToken *string `json:"trackingToken,omitempty"` + CombinedAnswerText *StructuredText `json:"combinedAnswerText,omitempty"` + Likes *AnswerLikes `json:"likes,omitempty"` + Author *Person `json:"author,omitempty"` // The time the answer was created in ISO format (ISO 8601). CreateTime *time.Time `json:"createTime,omitempty"` // The time the answer was last updated in ISO format (ISO 8601). @@ -178,6 +180,13 @@ func (o *Answer) GetPermissions() *ObjectPermissions { return o.Permissions } +func (o *Answer) GetTrackingToken() *string { + if o == nil { + return nil + } + return o.TrackingToken +} + func (o *Answer) GetCombinedAnswerText() *StructuredText { if o == nil { return nil diff --git a/tests/mockserver/internal/sdk/models/components/answerresult.go b/tests/mockserver/internal/sdk/models/components/answerresult.go index f5687a60..ffd9c3fc 100644 --- a/tests/mockserver/internal/sdk/models/components/answerresult.go +++ b/tests/mockserver/internal/sdk/models/components/answerresult.go @@ -4,7 +4,9 @@ package components type AnswerResult struct { Answer Answer `json:"answer"` - // An opaque token that represents this particular Answer. To be used for `/feedback` reporting. + // Use `answer.trackingToken` instead. + // + // Deprecated: Deprecated on 2026-05-07, removal scheduled for 2027-01-15: Use `answer.trackingToken` instead.. TrackingToken *string `json:"trackingToken,omitempty"` } diff --git a/tests/mockserver/internal/sdk/models/components/assistantinsightsresponse.go b/tests/mockserver/internal/sdk/models/components/assistantinsightsresponse.go index a997b8f6..34f0d2d2 100644 --- a/tests/mockserver/internal/sdk/models/components/assistantinsightsresponse.go +++ b/tests/mockserver/internal/sdk/models/components/assistantinsightsresponse.go @@ -3,9 +3,9 @@ package components type AssistantInsightsResponse struct { - // Number of current Monthly Active Users, in the specified departments. + // Number of current Monthly Active Users. MonthlyActiveUsers *int64 `json:"monthlyActiveUsers,omitempty"` - // Number of current Weekly Active Users, in the specified departments. + // Number of current Weekly Active Users. WeeklyActiveUsers *int64 `json:"weeklyActiveUsers,omitempty"` // Unix timestamp of the last update for the insights data in the response. LastUpdatedTs *int64 `json:"lastUpdatedTs,omitempty"` diff --git a/tests/mockserver/internal/sdk/models/components/authorizeactionpackrequest.go b/tests/mockserver/internal/sdk/models/components/authorizeactionpackrequest.go new file mode 100644 index 00000000..dc682969 --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/authorizeactionpackrequest.go @@ -0,0 +1,17 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +type AuthorizeActionPackRequest struct { + // URL on the customer's domain to redirect the end user's browser back to after the third-party OAuth + // callback completes. Must be present in the tenant's return URL allowlist. + // + ReturnURL string `json:"returnUrl"` +} + +func (o *AuthorizeActionPackRequest) GetReturnURL() string { + if o == nil { + return "" + } + return o.ReturnURL +} diff --git a/tests/mockserver/internal/sdk/models/components/authorizeactionpackresponse.go b/tests/mockserver/internal/sdk/models/components/authorizeactionpackresponse.go new file mode 100644 index 00000000..de205e6f --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/authorizeactionpackresponse.go @@ -0,0 +1,17 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +type AuthorizeActionPackResponse struct { + // URL that the customer UI should navigate the end user to in order to begin the third-party OAuth flow. + // After the user consents, control returns to `returnUrl` from the request. + // + RedirectURL string `json:"redirectUrl"` +} + +func (o *AuthorizeActionPackResponse) GetRedirectURL() string { + if o == nil { + return "" + } + return o.RedirectURL +} diff --git a/tests/mockserver/internal/sdk/models/components/chatsuggestion.go b/tests/mockserver/internal/sdk/models/components/chatsuggestion.go index d6c0bfb0..b8269ceb 100644 --- a/tests/mockserver/internal/sdk/models/components/chatsuggestion.go +++ b/tests/mockserver/internal/sdk/models/components/chatsuggestion.go @@ -5,8 +5,12 @@ package components type ChatSuggestion struct { // The actionable chat query to run when the user selects this suggestion. Query *string `json:"query,omitempty"` + // Button text to show for the suggestion action. + Cta *string `json:"cta,omitempty"` // Targeted Glean Chat feature for the suggestion. Feature *string `json:"feature,omitempty"` + // Document IDs that grounded the suggestion. + SourceDocumentIds []string `json:"sourceDocumentIds,omitempty"` } func (o *ChatSuggestion) GetQuery() *string { @@ -16,9 +20,23 @@ func (o *ChatSuggestion) GetQuery() *string { return o.Query } +func (o *ChatSuggestion) GetCta() *string { + if o == nil { + return nil + } + return o.Cta +} + func (o *ChatSuggestion) GetFeature() *string { if o == nil { return nil } return o.Feature } + +func (o *ChatSuggestion) GetSourceDocumentIds() []string { + if o == nil { + return nil + } + return o.SourceDocumentIds +} diff --git a/tests/mockserver/internal/sdk/models/components/collection.go b/tests/mockserver/internal/sdk/models/components/collection.go index 29d98fc1..7455407b 100644 --- a/tests/mockserver/internal/sdk/models/components/collection.go +++ b/tests/mockserver/internal/sdk/models/components/collection.go @@ -28,6 +28,8 @@ type Collection struct { // The datasource type this Collection can hold. AllowedDatasource *string `json:"allowedDatasource,omitempty"` Permissions *ObjectPermissions `json:"permissions,omitempty"` + // An opaque token that represents this particular UGC. To be used for `/feedback` reporting. + TrackingToken *string `json:"trackingToken,omitempty"` // The unique ID of the Collection. ID int64 `json:"id"` CreateTime *time.Time `json:"createTime,omitempty"` @@ -137,6 +139,13 @@ func (o *Collection) GetPermissions() *ObjectPermissions { return o.Permissions } +func (o *Collection) GetTrackingToken() *string { + if o == nil { + return nil + } + return o.TrackingToken +} + func (o *Collection) GetID() int64 { if o == nil { return 0 diff --git a/tests/mockserver/internal/sdk/models/components/collectionerror.go b/tests/mockserver/internal/sdk/models/components/collectionerror.go index 1cf4a37d..2524a204 100644 --- a/tests/mockserver/internal/sdk/models/components/collectionerror.go +++ b/tests/mockserver/internal/sdk/models/components/collectionerror.go @@ -18,6 +18,7 @@ const ( CollectionErrorErrorCodeHeightViolation CollectionErrorErrorCode = "HEIGHT_VIOLATION" CollectionErrorErrorCodeWidthViolation CollectionErrorErrorCode = "WIDTH_VIOLATION" CollectionErrorErrorCodeNoPermissions CollectionErrorErrorCode = "NO_PERMISSIONS" + CollectionErrorErrorCodeCorruptItem CollectionErrorErrorCode = "CORRUPT_ITEM" ) func (e CollectionErrorErrorCode) ToPointer() *CollectionErrorErrorCode { @@ -42,6 +43,8 @@ func (e *CollectionErrorErrorCode) UnmarshalJSON(data []byte) error { case "WIDTH_VIOLATION": fallthrough case "NO_PERMISSIONS": + fallthrough + case "CORRUPT_ITEM": *e = CollectionErrorErrorCode(v) return nil default: diff --git a/tests/mockserver/internal/sdk/models/components/currentactiveusers.go b/tests/mockserver/internal/sdk/models/components/currentactiveusers.go index f4a046ec..c1398b96 100644 --- a/tests/mockserver/internal/sdk/models/components/currentactiveusers.go +++ b/tests/mockserver/internal/sdk/models/components/currentactiveusers.go @@ -3,9 +3,9 @@ package components type CurrentActiveUsers struct { - // Number of current Monthly Active Users, in the specified departments. + // Number of current Monthly Active Users. MonthlyActiveUsers *int64 `json:"monthlyActiveUsers,omitempty"` - // Number of current Weekly Active Users, in the specified departments. + // Number of current Weekly Active Users. WeeklyActiveUsers *int64 `json:"weeklyActiveUsers,omitempty"` } diff --git a/tests/mockserver/internal/sdk/models/components/custommetadatapropertydefinition.go b/tests/mockserver/internal/sdk/models/components/custommetadatapropertydefinition.go new file mode 100644 index 00000000..e3351e45 --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/custommetadatapropertydefinition.go @@ -0,0 +1,72 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +import ( + "encoding/json" + "fmt" +) + +// CustomMetadataPropertyDefinitionPropertyType - The type of metadata key. This governs the search and faceting behavior. +type CustomMetadataPropertyDefinitionPropertyType string + +const ( + CustomMetadataPropertyDefinitionPropertyTypeText CustomMetadataPropertyDefinitionPropertyType = "TEXT" + CustomMetadataPropertyDefinitionPropertyTypePicklist CustomMetadataPropertyDefinitionPropertyType = "PICKLIST" + CustomMetadataPropertyDefinitionPropertyTypeTextlist CustomMetadataPropertyDefinitionPropertyType = "TEXTLIST" + CustomMetadataPropertyDefinitionPropertyTypeMultipicklist CustomMetadataPropertyDefinitionPropertyType = "MULTIPICKLIST" +) + +func (e CustomMetadataPropertyDefinitionPropertyType) ToPointer() *CustomMetadataPropertyDefinitionPropertyType { + return &e +} +func (e *CustomMetadataPropertyDefinitionPropertyType) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "TEXT": + fallthrough + case "PICKLIST": + fallthrough + case "TEXTLIST": + fallthrough + case "MULTIPICKLIST": + *e = CustomMetadataPropertyDefinitionPropertyType(v) + return nil + default: + return fmt.Errorf("invalid value for CustomMetadataPropertyDefinitionPropertyType: %v", v) + } +} + +// CustomMetadataPropertyDefinition - The definition for a key within a Custom Metadata schema. Only the fields applicable to Custom Metadata are exposed. +type CustomMetadataPropertyDefinition struct { + // The name of the metadata key. + Name string `json:"name"` + // The type of metadata key. This governs the search and faceting behavior. + PropertyType CustomMetadataPropertyDefinitionPropertyType `json:"propertyType"` + // If true then the property will not be indexed for retrieval and ranking. + SkipIndexing *bool `json:"skipIndexing,omitempty"` +} + +func (o *CustomMetadataPropertyDefinition) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *CustomMetadataPropertyDefinition) GetPropertyType() CustomMetadataPropertyDefinitionPropertyType { + if o == nil { + return CustomMetadataPropertyDefinitionPropertyType("") + } + return o.PropertyType +} + +func (o *CustomMetadataPropertyDefinition) GetSkipIndexing() *bool { + if o == nil { + return nil + } + return o.SkipIndexing +} diff --git a/tests/mockserver/internal/sdk/models/components/custommetadataputrequest.go b/tests/mockserver/internal/sdk/models/components/custommetadataputrequest.go new file mode 100644 index 00000000..fe2262c3 --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/custommetadataputrequest.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// CustomMetadataPutRequest - Request body for adding or updating custom metadata on a document +type CustomMetadataPutRequest struct { + // Array of custom metadata key-value pairs + CustomMetadata []CustomProperty `json:"customMetadata"` +} + +func (o *CustomMetadataPutRequest) GetCustomMetadata() []CustomProperty { + if o == nil { + return []CustomProperty{} + } + return o.CustomMetadata +} diff --git a/tests/mockserver/internal/sdk/models/components/custommetadataschema.go b/tests/mockserver/internal/sdk/models/components/custommetadataschema.go new file mode 100644 index 00000000..8f4e09bf --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/custommetadataschema.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// CustomMetadataSchema - Schema for custom metadata containing metadata key definitions +type CustomMetadataSchema struct { + // Array of metadata key definitions + MetadataKeys []CustomMetadataPropertyDefinition `json:"metadataKeys"` +} + +func (o *CustomMetadataSchema) GetMetadataKeys() []CustomMetadataPropertyDefinition { + if o == nil { + return []CustomMetadataPropertyDefinition{} + } + return o.MetadataKeys +} diff --git a/tests/mockserver/internal/sdk/models/components/datasourcecredentialstatus.go b/tests/mockserver/internal/sdk/models/components/datasourcecredentialstatus.go new file mode 100644 index 00000000..1a8b125a --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/datasourcecredentialstatus.go @@ -0,0 +1,44 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +import ( + "encoding/json" + "fmt" +) + +// DatasourceCredentialStatus - Lifecycle state of the credentials installed for a datasource instance. Mirrors the internal admin Status enum so the handler can surface the same health signals already tracked today. EXPIRING_SOON is represented as VALID_WITH_WARNINGS (with detail in `message`); EXPIRED is surfaced as INVALID plus a non-null `expiresAt` in the past. +type DatasourceCredentialStatus string + +const ( + DatasourceCredentialStatusValid DatasourceCredentialStatus = "VALID" + DatasourceCredentialStatusValidWithWarnings DatasourceCredentialStatus = "VALID_WITH_WARNINGS" + DatasourceCredentialStatusValidating DatasourceCredentialStatus = "VALIDATING" + DatasourceCredentialStatusInvalid DatasourceCredentialStatus = "INVALID" + DatasourceCredentialStatusMissing DatasourceCredentialStatus = "MISSING" +) + +func (e DatasourceCredentialStatus) ToPointer() *DatasourceCredentialStatus { + return &e +} +func (e *DatasourceCredentialStatus) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "VALID": + fallthrough + case "VALID_WITH_WARNINGS": + fallthrough + case "VALIDATING": + fallthrough + case "INVALID": + fallthrough + case "MISSING": + *e = DatasourceCredentialStatus(v) + return nil + default: + return fmt.Errorf("invalid value for DatasourceCredentialStatus: %v", v) + } +} diff --git a/tests/mockserver/internal/sdk/models/components/datasourcecredentialstatusresponse.go b/tests/mockserver/internal/sdk/models/components/datasourcecredentialstatusresponse.go new file mode 100644 index 00000000..3195e113 --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/datasourcecredentialstatusresponse.go @@ -0,0 +1,61 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +import ( + "mockserver/internal/sdk/utils" + "time" +) + +// DatasourceCredentialStatusResponse - Status of the credentials currently installed for a datasource instance. +type DatasourceCredentialStatusResponse struct { + // Lifecycle state of the credentials installed for a datasource instance. Mirrors the internal admin Status enum so the handler can surface the same health signals already tracked today. EXPIRING_SOON is represented as VALID_WITH_WARNINGS (with detail in `message`); EXPIRED is surfaced as INVALID plus a non-null `expiresAt` in the past. + // + Status DatasourceCredentialStatus `json:"status"` + // When the credentials were last rotated. Omitted when not known. + LastRotatedAt *time.Time `json:"lastRotatedAt,omitempty"` + // When the active credentials expire. Omitted when not known or not applicable to this credential type. + // + ExpiresAt *time.Time `json:"expiresAt,omitempty"` + // Optional human-readable detail about the current credential status. + Message *string `json:"message,omitempty"` +} + +func (d DatasourceCredentialStatusResponse) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DatasourceCredentialStatusResponse) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, []string{"status"}); err != nil { + return err + } + return nil +} + +func (o *DatasourceCredentialStatusResponse) GetStatus() DatasourceCredentialStatus { + if o == nil { + return DatasourceCredentialStatus("") + } + return o.Status +} + +func (o *DatasourceCredentialStatusResponse) GetLastRotatedAt() *time.Time { + if o == nil { + return nil + } + return o.LastRotatedAt +} + +func (o *DatasourceCredentialStatusResponse) GetExpiresAt() *time.Time { + if o == nil { + return nil + } + return o.ExpiresAt +} + +func (o *DatasourceCredentialStatusResponse) GetMessage() *string { + if o == nil { + return nil + } + return o.Message +} diff --git a/tests/mockserver/internal/sdk/models/components/debugdocumentlifecyclerequest.go b/tests/mockserver/internal/sdk/models/components/debugdocumentlifecyclerequest.go new file mode 100644 index 00000000..93255bb0 --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/debugdocumentlifecyclerequest.go @@ -0,0 +1,43 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// DebugDocumentLifecycleRequest - Describes the request body of the /debug/{datasource}/document/events API call. +type DebugDocumentLifecycleRequest struct { + // Object type of the document to get lifecycle events for. + ObjectType string `json:"objectType"` + // Glean Document ID within the datasource to get lifecycle events for. + DocID string `json:"docId"` + // The start date for events to be fetched. Cannot be more than 30 days (default 7 days) in the past. + StartDate *string `json:"startDate,omitempty"` + // Max number of events to be fetched. Cannot be more than 100 (default 20). + MaxEvents *int64 `json:"maxEvents,omitempty"` +} + +func (o *DebugDocumentLifecycleRequest) GetObjectType() string { + if o == nil { + return "" + } + return o.ObjectType +} + +func (o *DebugDocumentLifecycleRequest) GetDocID() string { + if o == nil { + return "" + } + return o.DocID +} + +func (o *DebugDocumentLifecycleRequest) GetStartDate() *string { + if o == nil { + return nil + } + return o.StartDate +} + +func (o *DebugDocumentLifecycleRequest) GetMaxEvents() *int64 { + if o == nil { + return nil + } + return o.MaxEvents +} diff --git a/tests/mockserver/internal/sdk/models/components/debugdocumentlifecycleresponse.go b/tests/mockserver/internal/sdk/models/components/debugdocumentlifecycleresponse.go new file mode 100644 index 00000000..343802ed --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/debugdocumentlifecycleresponse.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// DebugDocumentLifecycleResponse - Describes the response body of the /debug/{datasource}/document/events API call +type DebugDocumentLifecycleResponse struct { + // List of lifecycle events corresponding to the document + LifeCycleEvents []LifeCycleEvent `json:"lifeCycleEvents,omitempty"` +} + +func (o *DebugDocumentLifecycleResponse) GetLifeCycleEvents() []LifeCycleEvent { + if o == nil { + return nil + } + return o.LifeCycleEvents +} diff --git a/tests/mockserver/internal/sdk/models/components/editcollectionresponse.go b/tests/mockserver/internal/sdk/models/components/editcollectionresponse.go index ba96dfa1..63c1ab5a 100644 --- a/tests/mockserver/internal/sdk/models/components/editcollectionresponse.go +++ b/tests/mockserver/internal/sdk/models/components/editcollectionresponse.go @@ -19,6 +19,7 @@ const ( EditCollectionResponseErrorCodeHeightViolation EditCollectionResponseErrorCode = "HEIGHT_VIOLATION" EditCollectionResponseErrorCodeWidthViolation EditCollectionResponseErrorCode = "WIDTH_VIOLATION" EditCollectionResponseErrorCodeNoPermissions EditCollectionResponseErrorCode = "NO_PERMISSIONS" + EditCollectionResponseErrorCodeCorruptItem EditCollectionResponseErrorCode = "CORRUPT_ITEM" ) func (e EditCollectionResponseErrorCode) ToPointer() *EditCollectionResponseErrorCode { @@ -43,6 +44,8 @@ func (e *EditCollectionResponseErrorCode) UnmarshalJSON(data []byte) error { case "WIDTH_VIOLATION": fallthrough case "NO_PERMISSIONS": + fallthrough + case "CORRUPT_ITEM": *e = EditCollectionResponseErrorCode(v) return nil default: @@ -71,6 +74,8 @@ type EditCollectionResponse struct { // The datasource type this Collection can hold. AllowedDatasource *string `json:"allowedDatasource,omitempty"` Permissions *ObjectPermissions `json:"permissions,omitempty"` + // An opaque token that represents this particular UGC. To be used for `/feedback` reporting. + TrackingToken *string `json:"trackingToken,omitempty"` // The unique ID of the Collection. ID int64 `json:"id"` CreateTime *time.Time `json:"createTime,omitempty"` @@ -183,6 +188,13 @@ func (o *EditCollectionResponse) GetPermissions() *ObjectPermissions { return o.Permissions } +func (o *EditCollectionResponse) GetTrackingToken() *string { + if o == nil { + return nil + } + return o.TrackingToken +} + func (o *EditCollectionResponse) GetID() int64 { if o == nil { return 0 diff --git a/tests/mockserver/internal/sdk/models/components/editworkflowrequest.go b/tests/mockserver/internal/sdk/models/components/editworkflowrequest.go new file mode 100644 index 00000000..4c803a25 --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/editworkflowrequest.go @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +type EditWorkflowRequest struct { + // The name of the workflow. + Name *string `json:"name,omitempty"` + // The workflow ID we want to update. + ID *string `json:"id,omitempty"` +} + +func (o *EditWorkflowRequest) GetName() *string { + if o == nil { + return nil + } + return o.Name +} + +func (o *EditWorkflowRequest) GetID() *string { + if o == nil { + return nil + } + return o.ID +} diff --git a/tests/mockserver/internal/sdk/models/components/feedback.go b/tests/mockserver/internal/sdk/models/components/feedback.go index 2f916b07..c89a1ce6 100644 --- a/tests/mockserver/internal/sdk/models/components/feedback.go +++ b/tests/mockserver/internal/sdk/models/components/feedback.go @@ -14,6 +14,8 @@ type FeedbackCategory string const ( FeedbackCategoryAnnouncement FeedbackCategory = "ANNOUNCEMENT" + FeedbackCategoryAnswers FeedbackCategory = "ANSWERS" + FeedbackCategoryArtifacts FeedbackCategory = "ARTIFACTS" FeedbackCategoryAutocomplete FeedbackCategory = "AUTOCOMPLETE" FeedbackCategoryCollections FeedbackCategory = "COLLECTIONS" FeedbackCategoryFeed FeedbackCategory = "FEED" @@ -38,6 +40,10 @@ func (e *FeedbackCategory) UnmarshalJSON(data []byte) error { switch v { case "ANNOUNCEMENT": fallthrough + case "ANSWERS": + fallthrough + case "ARTIFACTS": + fallthrough case "AUTOCOMPLETE": fallthrough case "COLLECTIONS": @@ -66,48 +72,48 @@ func (e *FeedbackCategory) UnmarshalJSON(data []byte) error { } } -// Event - The action the user took within a Glean client with respect to the object referred to by the given `trackingToken`. -type Event string +// FeedbackEvent - The action the user took within a Glean client with respect to the object referred to by the given `trackingToken`. +type FeedbackEvent string const ( - EventClick Event = "CLICK" - EventContainerClick Event = "CONTAINER_CLICK" - EventCopyLink Event = "COPY_LINK" - EventCreate Event = "CREATE" - EventDismiss Event = "DISMISS" - EventDownvote Event = "DOWNVOTE" - EventEmail Event = "EMAIL" - EventExecute Event = "EXECUTE" - EventFilter Event = "FILTER" - EventFirstToken Event = "FIRST_TOKEN" - EventFocusIn Event = "FOCUS_IN" - EventLastToken Event = "LAST_TOKEN" - EventManualFeedback Event = "MANUAL_FEEDBACK" - EventManualFeedbackSideBySide Event = "MANUAL_FEEDBACK_SIDE_BY_SIDE" - EventFeedbackTimeSaved Event = "FEEDBACK_TIME_SAVED" - EventMarkAsRead Event = "MARK_AS_READ" - EventMessage Event = "MESSAGE" - EventMiddleClick Event = "MIDDLE_CLICK" - EventPageBlur Event = "PAGE_BLUR" - EventPageFocus Event = "PAGE_FOCUS" - EventPageLeave Event = "PAGE_LEAVE" - EventPreview Event = "PREVIEW" - EventRelatedClick Event = "RELATED_CLICK" - EventRightClick Event = "RIGHT_CLICK" - EventSectionClick Event = "SECTION_CLICK" - EventSeen Event = "SEEN" - EventSelect Event = "SELECT" - EventShare Event = "SHARE" - EventShowMore Event = "SHOW_MORE" - EventUpvote Event = "UPVOTE" - EventView Event = "VIEW" - EventVisible Event = "VISIBLE" + FeedbackEventClick FeedbackEvent = "CLICK" + FeedbackEventContainerClick FeedbackEvent = "CONTAINER_CLICK" + FeedbackEventCopyLink FeedbackEvent = "COPY_LINK" + FeedbackEventCreate FeedbackEvent = "CREATE" + FeedbackEventDismiss FeedbackEvent = "DISMISS" + FeedbackEventDownvote FeedbackEvent = "DOWNVOTE" + FeedbackEventEmail FeedbackEvent = "EMAIL" + FeedbackEventExecute FeedbackEvent = "EXECUTE" + FeedbackEventFilter FeedbackEvent = "FILTER" + FeedbackEventFirstToken FeedbackEvent = "FIRST_TOKEN" + FeedbackEventFocusIn FeedbackEvent = "FOCUS_IN" + FeedbackEventLastToken FeedbackEvent = "LAST_TOKEN" + FeedbackEventManualFeedback FeedbackEvent = "MANUAL_FEEDBACK" + FeedbackEventManualFeedbackSideBySide FeedbackEvent = "MANUAL_FEEDBACK_SIDE_BY_SIDE" + FeedbackEventFeedbackTimeSaved FeedbackEvent = "FEEDBACK_TIME_SAVED" + FeedbackEventMarkAsRead FeedbackEvent = "MARK_AS_READ" + FeedbackEventMessage FeedbackEvent = "MESSAGE" + FeedbackEventMiddleClick FeedbackEvent = "MIDDLE_CLICK" + FeedbackEventPageBlur FeedbackEvent = "PAGE_BLUR" + FeedbackEventPageFocus FeedbackEvent = "PAGE_FOCUS" + FeedbackEventPageLeave FeedbackEvent = "PAGE_LEAVE" + FeedbackEventPreview FeedbackEvent = "PREVIEW" + FeedbackEventRelatedClick FeedbackEvent = "RELATED_CLICK" + FeedbackEventRightClick FeedbackEvent = "RIGHT_CLICK" + FeedbackEventSectionClick FeedbackEvent = "SECTION_CLICK" + FeedbackEventSeen FeedbackEvent = "SEEN" + FeedbackEventSelect FeedbackEvent = "SELECT" + FeedbackEventShare FeedbackEvent = "SHARE" + FeedbackEventShowMore FeedbackEvent = "SHOW_MORE" + FeedbackEventUpvote FeedbackEvent = "UPVOTE" + FeedbackEventView FeedbackEvent = "VIEW" + FeedbackEventVisible FeedbackEvent = "VISIBLE" ) -func (e Event) ToPointer() *Event { +func (e FeedbackEvent) ToPointer() *FeedbackEvent { return &e } -func (e *Event) UnmarshalJSON(data []byte) error { +func (e *FeedbackEvent) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -176,10 +182,10 @@ func (e *Event) UnmarshalJSON(data []byte) error { case "VIEW": fallthrough case "VISIBLE": - *e = Event(v) + *e = FeedbackEvent(v) return nil default: - return fmt.Errorf("invalid value for Event: %v", v) + return fmt.Errorf("invalid value for FeedbackEvent: %v", v) } } @@ -217,7 +223,7 @@ type Feedback struct { // A list of server-generated trackingTokens to which this event applies. TrackingTokens []string `json:"trackingTokens"` // The action the user took within a Glean client with respect to the object referred to by the given `trackingToken`. - Event Event `json:"event"` + Event FeedbackEvent `json:"event"` // Position of the element in the case that the client controls order (such as feed and autocomplete). Position *int64 `json:"position,omitempty"` // For type MANUAL_FEEDBACK, contains string of user feedback. For autocomplete, partial query string. For feed, string of user feedback in addition to manual feedback signals extracted from all suggested content. @@ -279,9 +285,9 @@ func (o *Feedback) GetTrackingTokens() []string { return o.TrackingTokens } -func (o *Feedback) GetEvent() Event { +func (o *Feedback) GetEvent() FeedbackEvent { if o == nil { - return Event("") + return FeedbackEvent("") } return o.Event } diff --git a/tests/mockserver/internal/sdk/models/components/feedentry.go b/tests/mockserver/internal/sdk/models/components/feedentry.go index af0239e8..1274083a 100644 --- a/tests/mockserver/internal/sdk/models/components/feedentry.go +++ b/tests/mockserver/internal/sdk/models/components/feedentry.go @@ -100,11 +100,16 @@ const ( JustificationTypeActiveDiscussion JustificationType = "ACTIVE_DISCUSSION" JustificationTypeMidDayCatchUp JustificationType = "MID_DAY_CATCH_UP" JustificationTypeQuerySuggestion JustificationType = "QUERY_SUGGESTION" + JustificationTypeCoworkCujPromo JustificationType = "COWORK_CUJ_PROMO" JustificationTypeWeeklyMeetings JustificationType = "WEEKLY_MEETINGS" JustificationTypeFollowUp JustificationType = "FOLLOW_UP" JustificationTypeMilestoneTimelineCheck JustificationType = "MILESTONE_TIMELINE_CHECK" JustificationTypeProjectDiscussionDigest JustificationType = "PROJECT_DISCUSSION_DIGEST" + JustificationTypeProjectFocusBlock JustificationType = "PROJECT_FOCUS_BLOCK" JustificationTypeProjectNextStep JustificationType = "PROJECT_NEXT_STEP" + JustificationTypeDemoCard JustificationType = "DEMO_CARD" + JustificationTypeOooPlanner JustificationType = "OOO_PLANNER" + JustificationTypeOooCatchUp JustificationType = "OOO_CATCH_UP" ) func (e JustificationType) ToPointer() *JustificationType { @@ -204,6 +209,8 @@ func (e *JustificationType) UnmarshalJSON(data []byte) error { fallthrough case "QUERY_SUGGESTION": fallthrough + case "COWORK_CUJ_PROMO": + fallthrough case "WEEKLY_MEETINGS": fallthrough case "FOLLOW_UP": @@ -212,7 +219,15 @@ func (e *JustificationType) UnmarshalJSON(data []byte) error { fallthrough case "PROJECT_DISCUSSION_DIGEST": fallthrough + case "PROJECT_FOCUS_BLOCK": + fallthrough case "PROJECT_NEXT_STEP": + fallthrough + case "DEMO_CARD": + fallthrough + case "OOO_PLANNER": + fallthrough + case "OOO_CATCH_UP": *e = JustificationType(v) return nil default: diff --git a/tests/mockserver/internal/sdk/models/components/feedrequest.go b/tests/mockserver/internal/sdk/models/components/feedrequest.go index 50f12942..7c94e464 100644 --- a/tests/mockserver/internal/sdk/models/components/feedrequest.go +++ b/tests/mockserver/internal/sdk/models/components/feedrequest.go @@ -41,11 +41,16 @@ const ( FeedRequestCategoryStarterKit FeedRequestCategory = "STARTER_KIT" FeedRequestCategoryMidDayCatchUp FeedRequestCategory = "MID_DAY_CATCH_UP" FeedRequestCategoryQuerySuggestion FeedRequestCategory = "QUERY_SUGGESTION" + FeedRequestCategoryCoworkCujPromo FeedRequestCategory = "COWORK_CUJ_PROMO" FeedRequestCategoryWeeklyMeetings FeedRequestCategory = "WEEKLY_MEETINGS" FeedRequestCategoryFollowUp FeedRequestCategory = "FOLLOW_UP" FeedRequestCategoryMilestoneTimelineCheck FeedRequestCategory = "MILESTONE_TIMELINE_CHECK" FeedRequestCategoryProjectDiscussionDigest FeedRequestCategory = "PROJECT_DISCUSSION_DIGEST" + FeedRequestCategoryProjectFocusBlock FeedRequestCategory = "PROJECT_FOCUS_BLOCK" FeedRequestCategoryProjectNextStep FeedRequestCategory = "PROJECT_NEXT_STEP" + FeedRequestCategoryDemoCard FeedRequestCategory = "DEMO_CARD" + FeedRequestCategoryOooPlanner FeedRequestCategory = "OOO_PLANNER" + FeedRequestCategoryOooCatchUp FeedRequestCategory = "OOO_CATCH_UP" ) func (e FeedRequestCategory) ToPointer() *FeedRequestCategory { @@ -119,6 +124,8 @@ func (e *FeedRequestCategory) UnmarshalJSON(data []byte) error { fallthrough case "QUERY_SUGGESTION": fallthrough + case "COWORK_CUJ_PROMO": + fallthrough case "WEEKLY_MEETINGS": fallthrough case "FOLLOW_UP": @@ -127,7 +134,15 @@ func (e *FeedRequestCategory) UnmarshalJSON(data []byte) error { fallthrough case "PROJECT_DISCUSSION_DIGEST": fallthrough + case "PROJECT_FOCUS_BLOCK": + fallthrough case "PROJECT_NEXT_STEP": + fallthrough + case "DEMO_CARD": + fallthrough + case "OOO_PLANNER": + fallthrough + case "OOO_CATCH_UP": *e = FeedRequestCategory(v) return nil default: diff --git a/tests/mockserver/internal/sdk/models/components/feedresult.go b/tests/mockserver/internal/sdk/models/components/feedresult.go index 55bc99d4..ddd4f095 100644 --- a/tests/mockserver/internal/sdk/models/components/feedresult.go +++ b/tests/mockserver/internal/sdk/models/components/feedresult.go @@ -42,11 +42,16 @@ const ( FeedResultCategoryStarterKit FeedResultCategory = "STARTER_KIT" FeedResultCategoryMidDayCatchUp FeedResultCategory = "MID_DAY_CATCH_UP" FeedResultCategoryQuerySuggestion FeedResultCategory = "QUERY_SUGGESTION" + FeedResultCategoryCoworkCujPromo FeedResultCategory = "COWORK_CUJ_PROMO" FeedResultCategoryWeeklyMeetings FeedResultCategory = "WEEKLY_MEETINGS" FeedResultCategoryFollowUp FeedResultCategory = "FOLLOW_UP" FeedResultCategoryMilestoneTimelineCheck FeedResultCategory = "MILESTONE_TIMELINE_CHECK" FeedResultCategoryProjectDiscussionDigest FeedResultCategory = "PROJECT_DISCUSSION_DIGEST" + FeedResultCategoryProjectFocusBlock FeedResultCategory = "PROJECT_FOCUS_BLOCK" FeedResultCategoryProjectNextStep FeedResultCategory = "PROJECT_NEXT_STEP" + FeedResultCategoryDemoCard FeedResultCategory = "DEMO_CARD" + FeedResultCategoryOooPlanner FeedResultCategory = "OOO_PLANNER" + FeedResultCategoryOooCatchUp FeedResultCategory = "OOO_CATCH_UP" ) func (e FeedResultCategory) ToPointer() *FeedResultCategory { @@ -120,6 +125,8 @@ func (e *FeedResultCategory) UnmarshalJSON(data []byte) error { fallthrough case "QUERY_SUGGESTION": fallthrough + case "COWORK_CUJ_PROMO": + fallthrough case "WEEKLY_MEETINGS": fallthrough case "FOLLOW_UP": @@ -128,7 +135,15 @@ func (e *FeedResultCategory) UnmarshalJSON(data []byte) error { fallthrough case "PROJECT_DISCUSSION_DIGEST": fallthrough + case "PROJECT_FOCUS_BLOCK": + fallthrough case "PROJECT_NEXT_STEP": + fallthrough + case "DEMO_CARD": + fallthrough + case "OOO_PLANNER": + fallthrough + case "OOO_CATCH_UP": *e = FeedResultCategory(v) return nil default: diff --git a/tests/mockserver/internal/sdk/models/components/getcollectionresponse.go b/tests/mockserver/internal/sdk/models/components/getcollectionresponse.go index e8446d27..e02580ca 100644 --- a/tests/mockserver/internal/sdk/models/components/getcollectionresponse.go +++ b/tests/mockserver/internal/sdk/models/components/getcollectionresponse.go @@ -3,11 +3,13 @@ package components type GetCollectionResponse struct { - Collection *Collection `json:"collection,omitempty"` - RootCollection *Collection `json:"rootCollection,omitempty"` - // An opaque token that represents this particular Collection. To be used for `/feedback` reporting. - TrackingToken *string `json:"trackingToken,omitempty"` - Error *CollectionError `json:"error,omitempty"` + Collection *Collection `json:"collection,omitempty"` + RootCollection *Collection `json:"rootCollection,omitempty"` + Error *CollectionError `json:"error,omitempty"` + // Use `collection.trackingToken` instead. + // + // Deprecated: Deprecated on 2026-05-07, removal scheduled for 2027-01-15: Use `collection.trackingToken` instead.. + TrackingToken *string `json:"trackingToken,omitempty"` } func (o *GetCollectionResponse) GetCollection() *Collection { @@ -24,16 +26,16 @@ func (o *GetCollectionResponse) GetRootCollection() *Collection { return o.RootCollection } -func (o *GetCollectionResponse) GetTrackingToken() *string { +func (o *GetCollectionResponse) GetError() *CollectionError { if o == nil { return nil } - return o.TrackingToken + return o.Error } -func (o *GetCollectionResponse) GetError() *CollectionError { +func (o *GetCollectionResponse) GetTrackingToken() *string { if o == nil { return nil } - return o.Error + return o.TrackingToken } diff --git a/tests/mockserver/internal/sdk/models/components/insightsassistantrequest.go b/tests/mockserver/internal/sdk/models/components/insightsassistantrequest.go index 6d54c660..29a882de 100644 --- a/tests/mockserver/internal/sdk/models/components/insightsassistantrequest.go +++ b/tests/mockserver/internal/sdk/models/components/insightsassistantrequest.go @@ -5,7 +5,9 @@ package components type InsightsAssistantRequest struct { // Departments for which Insights are requested. Departments []string `json:"departments,omitempty"` - DayRange *Period `json:"dayRange,omitempty"` + // Manager emails whose teams should be filtered for. Empty array means no filtering. + ManagerEmails []string `json:"managerEmails,omitempty"` + DayRange *Period `json:"dayRange,omitempty"` } func (o *InsightsAssistantRequest) GetDepartments() []string { @@ -15,6 +17,13 @@ func (o *InsightsAssistantRequest) GetDepartments() []string { return o.Departments } +func (o *InsightsAssistantRequest) GetManagerEmails() []string { + if o == nil { + return nil + } + return o.ManagerEmails +} + func (o *InsightsAssistantRequest) GetDayRange() *Period { if o == nil { return nil diff --git a/tests/mockserver/internal/sdk/models/components/insightschatsummary.go b/tests/mockserver/internal/sdk/models/components/insightschatsummary.go index d60b2e3e..d5fe3dfc 100644 --- a/tests/mockserver/internal/sdk/models/components/insightschatsummary.go +++ b/tests/mockserver/internal/sdk/models/components/insightschatsummary.go @@ -3,9 +3,9 @@ package components type InsightsChatSummary struct { - // Number of current Monthly Active Users, in the specified departments. + // Number of current Monthly Active Users. MonthlyActiveUsers *int64 `json:"monthlyActiveUsers,omitempty"` - // Number of current Weekly Active Users, in the specified departments. + // Number of current Weekly Active Users. WeeklyActiveUsers *int64 `json:"weeklyActiveUsers,omitempty"` // Total number of chats by users over the specified time period. NumChats *int64 `json:"numChats,omitempty"` diff --git a/tests/mockserver/internal/sdk/models/components/insightsoverviewrequest.go b/tests/mockserver/internal/sdk/models/components/insightsoverviewrequest.go index 79e6d2e9..5e903919 100644 --- a/tests/mockserver/internal/sdk/models/components/insightsoverviewrequest.go +++ b/tests/mockserver/internal/sdk/models/components/insightsoverviewrequest.go @@ -5,7 +5,9 @@ package components type InsightsOverviewRequest struct { // Departments for which Insights are requested. Departments []string `json:"departments,omitempty"` - DayRange *Period `json:"dayRange,omitempty"` + // Manager emails whose teams should be filtered for. Empty array means no filtering. + ManagerEmails []string `json:"managerEmails,omitempty"` + DayRange *Period `json:"dayRange,omitempty"` } func (o *InsightsOverviewRequest) GetDepartments() []string { @@ -15,6 +17,13 @@ func (o *InsightsOverviewRequest) GetDepartments() []string { return o.Departments } +func (o *InsightsOverviewRequest) GetManagerEmails() []string { + if o == nil { + return nil + } + return o.ManagerEmails +} + func (o *InsightsOverviewRequest) GetDayRange() *Period { if o == nil { return nil diff --git a/tests/mockserver/internal/sdk/models/components/insightsoverviewresponse.go b/tests/mockserver/internal/sdk/models/components/insightsoverviewresponse.go index 4350ae6c..2e8c2ec9 100644 --- a/tests/mockserver/internal/sdk/models/components/insightsoverviewresponse.go +++ b/tests/mockserver/internal/sdk/models/components/insightsoverviewresponse.go @@ -3,9 +3,9 @@ package components type InsightsOverviewResponse struct { - // Number of current Monthly Active Users, in the specified departments. + // Number of current Monthly Active Users. MonthlyActiveUsers *int64 `json:"monthlyActiveUsers,omitempty"` - // Number of current Weekly Active Users, in the specified departments. + // Number of current Weekly Active Users. WeeklyActiveUsers *int64 `json:"weeklyActiveUsers,omitempty"` // Department name(s). Departments []string `json:"departments,omitempty"` @@ -18,11 +18,14 @@ type InsightsOverviewResponse struct { SearchActiveUsers *CurrentActiveUsers `json:"searchActiveUsers,omitempty"` AssistantActiveUsers *CurrentActiveUsers `json:"assistantActiveUsers,omitempty"` AgentsActiveUsers *CurrentActiveUsers `json:"agentsActiveUsers,omitempty"` + McpActiveUsers *CurrentActiveUsers `json:"mcpActiveUsers,omitempty"` ExtensionSummary *CurrentActiveUsers `json:"extensionSummary,omitempty"` UgcSummary *CurrentActiveUsers `json:"ugcSummary,omitempty"` // Unix timestamp of the last update for the insights data in the response. LastUpdatedTs *int64 `json:"lastUpdatedTs,omitempty"` // Search session satisfaction rate, over the specified time period in the specified departments. + // + // Deprecated: Deprecated on 2026-05-13, removal scheduled for 2027-01-15: This property is no longer supported. Please contact Support for alternatives.. SearchSessionSatisfaction *float32 `json:"searchSessionSatisfaction,omitempty"` MonthlyActiveUserTimeseries *LabeledCountInfo `json:"monthlyActiveUserTimeseries,omitempty"` WeeklyActiveUserTimeseries *LabeledCountInfo `json:"weeklyActiveUserTimeseries,omitempty"` @@ -36,9 +39,13 @@ type InsightsOverviewResponse struct { AgentsMonthlyActiveUserTimeseries *LabeledCountInfo `json:"agentsMonthlyActiveUserTimeseries,omitempty"` AgentsWeeklyActiveUserTimeseries *LabeledCountInfo `json:"agentsWeeklyActiveUserTimeseries,omitempty"` AgentsDailyActiveUserTimeseries *LabeledCountInfo `json:"agentsDailyActiveUserTimeseries,omitempty"` + McpMonthlyActiveUserTimeseries *LabeledCountInfo `json:"mcpMonthlyActiveUserTimeseries,omitempty"` + McpWeeklyActiveUserTimeseries *LabeledCountInfo `json:"mcpWeeklyActiveUserTimeseries,omitempty"` + McpDailyActiveUserTimeseries *LabeledCountInfo `json:"mcpDailyActiveUserTimeseries,omitempty"` SearchesTimeseries *LabeledCountInfo `json:"searchesTimeseries,omitempty"` AssistantInteractionsTimeseries *LabeledCountInfo `json:"assistantInteractionsTimeseries,omitempty"` AgentRunsTimeseries *LabeledCountInfo `json:"agentRunsTimeseries,omitempty"` + McpCallsTimeseries *LabeledCountInfo `json:"mcpCallsTimeseries,omitempty"` // Counts of search result clicks, by datasource, over the specified time period in the specified departments. SearchDatasourceCounts map[string]int64 `json:"searchDatasourceCounts,omitempty"` // Counts of cited documents in chat, by datasource, over the specified time period in the specified departments. @@ -117,6 +124,13 @@ func (o *InsightsOverviewResponse) GetAgentsActiveUsers() *CurrentActiveUsers { return o.AgentsActiveUsers } +func (o *InsightsOverviewResponse) GetMcpActiveUsers() *CurrentActiveUsers { + if o == nil { + return nil + } + return o.McpActiveUsers +} + func (o *InsightsOverviewResponse) GetExtensionSummary() *CurrentActiveUsers { if o == nil { return nil @@ -229,6 +243,27 @@ func (o *InsightsOverviewResponse) GetAgentsDailyActiveUserTimeseries() *Labeled return o.AgentsDailyActiveUserTimeseries } +func (o *InsightsOverviewResponse) GetMcpMonthlyActiveUserTimeseries() *LabeledCountInfo { + if o == nil { + return nil + } + return o.McpMonthlyActiveUserTimeseries +} + +func (o *InsightsOverviewResponse) GetMcpWeeklyActiveUserTimeseries() *LabeledCountInfo { + if o == nil { + return nil + } + return o.McpWeeklyActiveUserTimeseries +} + +func (o *InsightsOverviewResponse) GetMcpDailyActiveUserTimeseries() *LabeledCountInfo { + if o == nil { + return nil + } + return o.McpDailyActiveUserTimeseries +} + func (o *InsightsOverviewResponse) GetSearchesTimeseries() *LabeledCountInfo { if o == nil { return nil @@ -250,6 +285,13 @@ func (o *InsightsOverviewResponse) GetAgentRunsTimeseries() *LabeledCountInfo { return o.AgentRunsTimeseries } +func (o *InsightsOverviewResponse) GetMcpCallsTimeseries() *LabeledCountInfo { + if o == nil { + return nil + } + return o.McpCallsTimeseries +} + func (o *InsightsOverviewResponse) GetSearchDatasourceCounts() map[string]int64 { if o == nil { return nil diff --git a/tests/mockserver/internal/sdk/models/components/insightsrequest.go b/tests/mockserver/internal/sdk/models/components/insightsrequest.go index ae74e0f9..5d275bd5 100644 --- a/tests/mockserver/internal/sdk/models/components/insightsrequest.go +++ b/tests/mockserver/internal/sdk/models/components/insightsrequest.go @@ -3,9 +3,11 @@ package components type InsightsRequest struct { - OverviewRequest *InsightsOverviewRequest `json:"overviewRequest,omitempty"` - AssistantRequest *InsightsAssistantRequest `json:"assistantRequest,omitempty"` - AgentsRequest *AgentsInsightsV2Request `json:"agentsRequest,omitempty"` + OverviewRequest *InsightsOverviewRequest `json:"overviewRequest,omitempty"` + AssistantRequest *InsightsAssistantRequest `json:"assistantRequest,omitempty"` + AgentsRequest *AgentsInsightsV2Request `json:"agentsRequest,omitempty"` + McpRequest *McpInsightsRequest `json:"mcpRequest,omitempty"` + McpBreakdownRequest *McpBreakdownInsightsRequest `json:"mcpBreakdownRequest,omitempty"` // If true, suppresses the generation of per-user Insights in the response. Default is false. DisablePerUserInsights *bool `json:"disablePerUserInsights,omitempty"` } @@ -31,6 +33,20 @@ func (o *InsightsRequest) GetAgentsRequest() *AgentsInsightsV2Request { return o.AgentsRequest } +func (o *InsightsRequest) GetMcpRequest() *McpInsightsRequest { + if o == nil { + return nil + } + return o.McpRequest +} + +func (o *InsightsRequest) GetMcpBreakdownRequest() *McpBreakdownInsightsRequest { + if o == nil { + return nil + } + return o.McpBreakdownRequest +} + func (o *InsightsRequest) GetDisablePerUserInsights() *bool { if o == nil { return nil diff --git a/tests/mockserver/internal/sdk/models/components/insightsresponse.go b/tests/mockserver/internal/sdk/models/components/insightsresponse.go index 0f601c58..9914a52e 100644 --- a/tests/mockserver/internal/sdk/models/components/insightsresponse.go +++ b/tests/mockserver/internal/sdk/models/components/insightsresponse.go @@ -3,10 +3,12 @@ package components type InsightsResponse struct { - GleanAssist *GleanAssistInsightsResponse `json:"gleanAssist,omitempty"` - OverviewResponse *InsightsOverviewResponse `json:"overviewResponse,omitempty"` - AssistantResponse *AssistantInsightsResponse `json:"assistantResponse,omitempty"` - AgentsResponse *AgentsInsightsV2Response `json:"agentsResponse,omitempty"` + GleanAssist *GleanAssistInsightsResponse `json:"gleanAssist,omitempty"` + OverviewResponse *InsightsOverviewResponse `json:"overviewResponse,omitempty"` + AssistantResponse *AssistantInsightsResponse `json:"assistantResponse,omitempty"` + AgentsResponse *AgentsInsightsV2Response `json:"agentsResponse,omitempty"` + McpResponse *McpInsightsResponse `json:"mcpResponse,omitempty"` + McpBreakdownResponse *McpBreakdownInsightsResponse `json:"mcpBreakdownResponse,omitempty"` } func (o *InsightsResponse) GetGleanAssist() *GleanAssistInsightsResponse { @@ -36,3 +38,17 @@ func (o *InsightsResponse) GetAgentsResponse() *AgentsInsightsV2Response { } return o.AgentsResponse } + +func (o *InsightsResponse) GetMcpResponse() *McpInsightsResponse { + if o == nil { + return nil + } + return o.McpResponse +} + +func (o *InsightsResponse) GetMcpBreakdownResponse() *McpBreakdownInsightsResponse { + if o == nil { + return nil + } + return o.McpBreakdownResponse +} diff --git a/tests/mockserver/internal/sdk/models/components/insightssearchsummary.go b/tests/mockserver/internal/sdk/models/components/insightssearchsummary.go index 23269c55..408d84ba 100644 --- a/tests/mockserver/internal/sdk/models/components/insightssearchsummary.go +++ b/tests/mockserver/internal/sdk/models/components/insightssearchsummary.go @@ -3,9 +3,9 @@ package components type InsightsSearchSummary struct { - // Number of current Monthly Active Users, in the specified departments. + // Number of current Monthly Active Users. MonthlyActiveUsers *int64 `json:"monthlyActiveUsers,omitempty"` - // Number of current Weekly Active Users, in the specified departments. + // Number of current Weekly Active Users. WeeklyActiveUsers *int64 `json:"weeklyActiveUsers,omitempty"` // Total number of searches by users over the specified time period. NumSearches *int64 `json:"numSearches,omitempty"` diff --git a/tests/mockserver/internal/sdk/models/components/lifecycleevent.go b/tests/mockserver/internal/sdk/models/components/lifecycleevent.go new file mode 100644 index 00000000..0e3627a7 --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/lifecycleevent.go @@ -0,0 +1,62 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +import ( + "encoding/json" + "fmt" +) + +// LifeCycleEventEvent - Type of event +type LifeCycleEventEvent string + +const ( + LifeCycleEventEventUploaded LifeCycleEventEvent = "UPLOADED" + LifeCycleEventEventIndexed LifeCycleEventEvent = "INDEXED" + LifeCycleEventEventDeletionRequested LifeCycleEventEvent = "DELETION_REQUESTED" + LifeCycleEventEventDeleted LifeCycleEventEvent = "DELETED" +) + +func (e LifeCycleEventEvent) ToPointer() *LifeCycleEventEvent { + return &e +} +func (e *LifeCycleEventEvent) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "UPLOADED": + fallthrough + case "INDEXED": + fallthrough + case "DELETION_REQUESTED": + fallthrough + case "DELETED": + *e = LifeCycleEventEvent(v) + return nil + default: + return fmt.Errorf("invalid value for LifeCycleEventEvent: %v", v) + } +} + +type LifeCycleEvent struct { + // Type of event + Event *LifeCycleEventEvent `json:"event,omitempty"` + // Timestamp of the event + Timestamp *string `json:"timestamp,omitempty"` +} + +func (o *LifeCycleEvent) GetEvent() *LifeCycleEventEvent { + if o == nil { + return nil + } + return o.Event +} + +func (o *LifeCycleEvent) GetTimestamp() *string { + if o == nil { + return nil + } + return o.Timestamp +} diff --git a/tests/mockserver/internal/sdk/models/components/mcpbreakdowninsightsrequest.go b/tests/mockserver/internal/sdk/models/components/mcpbreakdowninsightsrequest.go new file mode 100644 index 00000000..ef9a081c --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/mcpbreakdowninsightsrequest.go @@ -0,0 +1,115 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +import ( + "encoding/json" + "fmt" +) + +// BreakdownType - Type of breakdown to return. +type BreakdownType string + +const ( + BreakdownTypeUsers BreakdownType = "USERS" + BreakdownTypeHostApplications BreakdownType = "HOST_APPLICATIONS" + BreakdownTypeTools BreakdownType = "TOOLS" + BreakdownTypeServers BreakdownType = "SERVERS" +) + +func (e BreakdownType) ToPointer() *BreakdownType { + return &e +} +func (e *BreakdownType) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "USERS": + fallthrough + case "HOST_APPLICATIONS": + fallthrough + case "TOOLS": + fallthrough + case "SERVERS": + *e = BreakdownType(v) + return nil + default: + return fmt.Errorf("invalid value for BreakdownType: %v", v) + } +} + +type McpBreakdownInsightsRequest struct { + // Departments for which Insights are requested. + Departments []string `json:"departments,omitempty"` + // Manager user IDs whose teams should be filtered for. Empty array means no filtering. + ManagerIds []string `json:"managerIds,omitempty"` + // Manager emails whose teams should be filtered for. Empty array means no filtering. + ManagerEmails []string `json:"managerEmails,omitempty"` + DayRange *Period `json:"dayRange,omitempty"` + // Type of breakdown to return. + BreakdownType *BreakdownType `json:"breakdownType,omitempty"` + // Host applications to filter by. Empty array means all host applications. + HostApplications []string `json:"hostApplications,omitempty"` + // MCP tools to filter by. Empty array means all tools. + Tools []string `json:"tools,omitempty"` + // MCP servers to filter by. Empty array means all servers. + Servers []string `json:"servers,omitempty"` +} + +func (o *McpBreakdownInsightsRequest) GetDepartments() []string { + if o == nil { + return nil + } + return o.Departments +} + +func (o *McpBreakdownInsightsRequest) GetManagerIds() []string { + if o == nil { + return nil + } + return o.ManagerIds +} + +func (o *McpBreakdownInsightsRequest) GetManagerEmails() []string { + if o == nil { + return nil + } + return o.ManagerEmails +} + +func (o *McpBreakdownInsightsRequest) GetDayRange() *Period { + if o == nil { + return nil + } + return o.DayRange +} + +func (o *McpBreakdownInsightsRequest) GetBreakdownType() *BreakdownType { + if o == nil { + return nil + } + return o.BreakdownType +} + +func (o *McpBreakdownInsightsRequest) GetHostApplications() []string { + if o == nil { + return nil + } + return o.HostApplications +} + +func (o *McpBreakdownInsightsRequest) GetTools() []string { + if o == nil { + return nil + } + return o.Tools +} + +func (o *McpBreakdownInsightsRequest) GetServers() []string { + if o == nil { + return nil + } + return o.Servers +} diff --git a/tests/mockserver/internal/sdk/models/components/mcpbreakdowninsightsresponse.go b/tests/mockserver/internal/sdk/models/components/mcpbreakdowninsightsresponse.go new file mode 100644 index 00000000..8ae55f17 --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/mcpbreakdowninsightsresponse.go @@ -0,0 +1,38 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +type McpBreakdownInsightsResponse struct { + UsersBreakdown []McpUserBreakdown `json:"usersBreakdown,omitempty"` + HostApplicationsBreakdown []McpHostApplicationBreakdown `json:"hostApplicationsBreakdown,omitempty"` + ToolsBreakdown []McpToolBreakdown `json:"toolsBreakdown,omitempty"` + ServersBreakdown []McpServerBreakdown `json:"serversBreakdown,omitempty"` +} + +func (o *McpBreakdownInsightsResponse) GetUsersBreakdown() []McpUserBreakdown { + if o == nil { + return nil + } + return o.UsersBreakdown +} + +func (o *McpBreakdownInsightsResponse) GetHostApplicationsBreakdown() []McpHostApplicationBreakdown { + if o == nil { + return nil + } + return o.HostApplicationsBreakdown +} + +func (o *McpBreakdownInsightsResponse) GetToolsBreakdown() []McpToolBreakdown { + if o == nil { + return nil + } + return o.ToolsBreakdown +} + +func (o *McpBreakdownInsightsResponse) GetServersBreakdown() []McpServerBreakdown { + if o == nil { + return nil + } + return o.ServersBreakdown +} diff --git a/tests/mockserver/internal/sdk/models/components/mcphostapplicationbreakdown.go b/tests/mockserver/internal/sdk/models/components/mcphostapplicationbreakdown.go new file mode 100644 index 00000000..5b57f57b --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/mcphostapplicationbreakdown.go @@ -0,0 +1,33 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +type McpHostApplicationBreakdown struct { + // Host application name. + HostApplication *string `json:"hostApplication,omitempty"` + // Total number of MCP calls made from this host application in the specified time period. + TotalCalls *int64 `json:"totalCalls,omitempty"` + // Total number of active users from this host application in the specified time period. + ActiveUsers *int64 `json:"activeUsers,omitempty"` +} + +func (o *McpHostApplicationBreakdown) GetHostApplication() *string { + if o == nil { + return nil + } + return o.HostApplication +} + +func (o *McpHostApplicationBreakdown) GetTotalCalls() *int64 { + if o == nil { + return nil + } + return o.TotalCalls +} + +func (o *McpHostApplicationBreakdown) GetActiveUsers() *int64 { + if o == nil { + return nil + } + return o.ActiveUsers +} diff --git a/tests/mockserver/internal/sdk/models/components/mcpinsightsrequest.go b/tests/mockserver/internal/sdk/models/components/mcpinsightsrequest.go new file mode 100644 index 00000000..930b2a4e --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/mcpinsightsrequest.go @@ -0,0 +1,41 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +type McpInsightsRequest struct { + // Departments for which Insights are requested. + Departments []string `json:"departments,omitempty"` + // Manager user IDs whose teams should be filtered for. Empty array means no filtering. + ManagerIds []string `json:"managerIds,omitempty"` + // Manager emails whose teams should be filtered for. Empty array means no filtering. + ManagerEmails []string `json:"managerEmails,omitempty"` + DayRange *Period `json:"dayRange,omitempty"` +} + +func (o *McpInsightsRequest) GetDepartments() []string { + if o == nil { + return nil + } + return o.Departments +} + +func (o *McpInsightsRequest) GetManagerIds() []string { + if o == nil { + return nil + } + return o.ManagerIds +} + +func (o *McpInsightsRequest) GetManagerEmails() []string { + if o == nil { + return nil + } + return o.ManagerEmails +} + +func (o *McpInsightsRequest) GetDayRange() *Period { + if o == nil { + return nil + } + return o.DayRange +} diff --git a/tests/mockserver/internal/sdk/models/components/mcpinsightsresponse.go b/tests/mockserver/internal/sdk/models/components/mcpinsightsresponse.go new file mode 100644 index 00000000..2d1a08e0 --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/mcpinsightsresponse.go @@ -0,0 +1,73 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +type McpInsightsResponse struct { + // Number of current Monthly Active Users. + MonthlyActiveUsers *int64 `json:"monthlyActiveUsers,omitempty"` + // Number of current Weekly Active Users. + WeeklyActiveUsers *int64 `json:"weeklyActiveUsers,omitempty"` + // Number of current Daily Active Users. + DailyActiveUsers *int64 `json:"dailyActiveUsers,omitempty"` + MonthlyActiveUserTimeseries *LabeledCountInfo `json:"monthlyActiveUserTimeseries,omitempty"` + WeeklyActiveUserTimeseries *LabeledCountInfo `json:"weeklyActiveUserTimeseries,omitempty"` + DailyActiveUserTimeseries *LabeledCountInfo `json:"dailyActiveUserTimeseries,omitempty"` + OverallDailyActiveUserTimeseries *LabeledCountInfo `json:"overallDailyActiveUserTimeseries,omitempty"` + TopHostApplicationsActiveUserTimeseries []LabeledCountInfo `json:"topHostApplicationsActiveUserTimeseries,omitempty"` +} + +func (o *McpInsightsResponse) GetMonthlyActiveUsers() *int64 { + if o == nil { + return nil + } + return o.MonthlyActiveUsers +} + +func (o *McpInsightsResponse) GetWeeklyActiveUsers() *int64 { + if o == nil { + return nil + } + return o.WeeklyActiveUsers +} + +func (o *McpInsightsResponse) GetDailyActiveUsers() *int64 { + if o == nil { + return nil + } + return o.DailyActiveUsers +} + +func (o *McpInsightsResponse) GetMonthlyActiveUserTimeseries() *LabeledCountInfo { + if o == nil { + return nil + } + return o.MonthlyActiveUserTimeseries +} + +func (o *McpInsightsResponse) GetWeeklyActiveUserTimeseries() *LabeledCountInfo { + if o == nil { + return nil + } + return o.WeeklyActiveUserTimeseries +} + +func (o *McpInsightsResponse) GetDailyActiveUserTimeseries() *LabeledCountInfo { + if o == nil { + return nil + } + return o.DailyActiveUserTimeseries +} + +func (o *McpInsightsResponse) GetOverallDailyActiveUserTimeseries() *LabeledCountInfo { + if o == nil { + return nil + } + return o.OverallDailyActiveUserTimeseries +} + +func (o *McpInsightsResponse) GetTopHostApplicationsActiveUserTimeseries() []LabeledCountInfo { + if o == nil { + return nil + } + return o.TopHostApplicationsActiveUserTimeseries +} diff --git a/tests/mockserver/internal/sdk/models/components/mcpserverbreakdown.go b/tests/mockserver/internal/sdk/models/components/mcpserverbreakdown.go new file mode 100644 index 00000000..6559a26d --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/mcpserverbreakdown.go @@ -0,0 +1,42 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +type McpServerBreakdown struct { + // MCP server name. + Server *string `json:"server,omitempty"` + // Total number of MCP calls for this server in the specified time period. + TotalCalls *int64 `json:"totalCalls,omitempty"` + // Total number of active users for this server in the specified time period. + ActiveUsers *int64 `json:"activeUsers,omitempty"` + // Host applications using this server in the specified time period. + HostApplications []string `json:"hostApplications,omitempty"` +} + +func (o *McpServerBreakdown) GetServer() *string { + if o == nil { + return nil + } + return o.Server +} + +func (o *McpServerBreakdown) GetTotalCalls() *int64 { + if o == nil { + return nil + } + return o.TotalCalls +} + +func (o *McpServerBreakdown) GetActiveUsers() *int64 { + if o == nil { + return nil + } + return o.ActiveUsers +} + +func (o *McpServerBreakdown) GetHostApplications() []string { + if o == nil { + return nil + } + return o.HostApplications +} diff --git a/tests/mockserver/internal/sdk/models/components/mcptoolbreakdown.go b/tests/mockserver/internal/sdk/models/components/mcptoolbreakdown.go new file mode 100644 index 00000000..be104ab7 --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/mcptoolbreakdown.go @@ -0,0 +1,42 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +type McpToolBreakdown struct { + // MCP tool name. + Tool *string `json:"tool,omitempty"` + // Total number of MCP calls for this tool in the specified time period. + TotalCalls *int64 `json:"totalCalls,omitempty"` + // Total number of active users for this tool in the specified time period. + ActiveUsers *int64 `json:"activeUsers,omitempty"` + // Host applications using this tool in the specified time period. + HostApplications []string `json:"hostApplications,omitempty"` +} + +func (o *McpToolBreakdown) GetTool() *string { + if o == nil { + return nil + } + return o.Tool +} + +func (o *McpToolBreakdown) GetTotalCalls() *int64 { + if o == nil { + return nil + } + return o.TotalCalls +} + +func (o *McpToolBreakdown) GetActiveUsers() *int64 { + if o == nil { + return nil + } + return o.ActiveUsers +} + +func (o *McpToolBreakdown) GetHostApplications() []string { + if o == nil { + return nil + } + return o.HostApplications +} diff --git a/tests/mockserver/internal/sdk/models/components/mcpuserbreakdown.go b/tests/mockserver/internal/sdk/models/components/mcpuserbreakdown.go new file mode 100644 index 00000000..73014b6f --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/mcpuserbreakdown.go @@ -0,0 +1,50 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +type McpUserBreakdown struct { + Person *Person `json:"person,omitempty"` + // Total number of MCP calls made by this user in the specified time period. + TotalCalls *int64 `json:"totalCalls,omitempty"` + // Host applications used by this user in the specified time period. + HostApplications []string `json:"hostApplications,omitempty"` + // MCP tools used by this user in the specified time period. + Tools []string `json:"tools,omitempty"` + // MCP servers used by this user in the specified time period. + Servers []string `json:"servers,omitempty"` +} + +func (o *McpUserBreakdown) GetPerson() *Person { + if o == nil { + return nil + } + return o.Person +} + +func (o *McpUserBreakdown) GetTotalCalls() *int64 { + if o == nil { + return nil + } + return o.TotalCalls +} + +func (o *McpUserBreakdown) GetHostApplications() []string { + if o == nil { + return nil + } + return o.HostApplications +} + +func (o *McpUserBreakdown) GetTools() []string { + if o == nil { + return nil + } + return o.Tools +} + +func (o *McpUserBreakdown) GetServers() []string { + if o == nil { + return nil + } + return o.Servers +} diff --git a/tests/mockserver/internal/sdk/models/components/peragentinsight.go b/tests/mockserver/internal/sdk/models/components/peragentinsight.go index 127d21db..8530b14c 100644 --- a/tests/mockserver/internal/sdk/models/components/peragentinsight.go +++ b/tests/mockserver/internal/sdk/models/components/peragentinsight.go @@ -18,7 +18,8 @@ type PerAgentInsight struct { // Total number of upvotes for this agent over the specified time period. UpvoteCount *int64 `json:"upvoteCount,omitempty"` // Total number of downvotes for this agent over the specified time period. - DownvoteCount *int64 `json:"downvoteCount,omitempty"` + DownvoteCount *int64 `json:"downvoteCount,omitempty"` + Owner *Person `json:"owner,omitempty"` } func (o *PerAgentInsight) GetAgentID() *string { @@ -76,3 +77,10 @@ func (o *PerAgentInsight) GetDownvoteCount() *int64 { } return o.DownvoteCount } + +func (o *PerAgentInsight) GetOwner() *Person { + if o == nil { + return nil + } + return o.Owner +} diff --git a/tests/mockserver/internal/sdk/models/components/peruserinsight.go b/tests/mockserver/internal/sdk/models/components/peruserinsight.go index a300842e..0cda09fd 100644 --- a/tests/mockserver/internal/sdk/models/components/peruserinsight.go +++ b/tests/mockserver/internal/sdk/models/components/peruserinsight.go @@ -20,6 +20,8 @@ type PerUserInsight struct { NumAiAnswers *int64 `json:"numAiAnswers,omitempty"` // Total number of agent runs for this user over the specified time period. NumAgentRuns *int64 `json:"numAgentRuns,omitempty"` + // Total number of MCP calls for this user over the specified time period. + NumMcpCalls *int64 `json:"numMcpCalls,omitempty"` } func (o *PerUserInsight) GetPerson() *Person { @@ -84,3 +86,10 @@ func (o *PerUserInsight) GetNumAgentRuns() *int64 { } return o.NumAgentRuns } + +func (o *PerUserInsight) GetNumMcpCalls() *int64 { + if o == nil { + return nil + } + return o.NumMcpCalls +} diff --git a/tests/mockserver/internal/sdk/models/components/propertydefinition.go b/tests/mockserver/internal/sdk/models/components/propertydefinition.go index d1631c91..e17d0096 100644 --- a/tests/mockserver/internal/sdk/models/components/propertydefinition.go +++ b/tests/mockserver/internal/sdk/models/components/propertydefinition.go @@ -7,23 +7,23 @@ import ( "fmt" ) -// PropertyType - The type of custom property - this governs the search and faceting behavior. Note that MULTIPICKLIST is not yet supported. -type PropertyType string +// PropertyDefinitionPropertyType - The type of custom property - this governs the search and faceting behavior. Note that MULTIPICKLIST is not yet supported. +type PropertyDefinitionPropertyType string const ( - PropertyTypeText PropertyType = "TEXT" - PropertyTypeDate PropertyType = "DATE" - PropertyTypeInt PropertyType = "INT" - PropertyTypeUserid PropertyType = "USERID" - PropertyTypePicklist PropertyType = "PICKLIST" - PropertyTypeTextlist PropertyType = "TEXTLIST" - PropertyTypeMultipicklist PropertyType = "MULTIPICKLIST" + PropertyDefinitionPropertyTypeText PropertyDefinitionPropertyType = "TEXT" + PropertyDefinitionPropertyTypeDate PropertyDefinitionPropertyType = "DATE" + PropertyDefinitionPropertyTypeInt PropertyDefinitionPropertyType = "INT" + PropertyDefinitionPropertyTypeUserid PropertyDefinitionPropertyType = "USERID" + PropertyDefinitionPropertyTypePicklist PropertyDefinitionPropertyType = "PICKLIST" + PropertyDefinitionPropertyTypeTextlist PropertyDefinitionPropertyType = "TEXTLIST" + PropertyDefinitionPropertyTypeMultipicklist PropertyDefinitionPropertyType = "MULTIPICKLIST" ) -func (e PropertyType) ToPointer() *PropertyType { +func (e PropertyDefinitionPropertyType) ToPointer() *PropertyDefinitionPropertyType { return &e } -func (e *PropertyType) UnmarshalJSON(data []byte) error { +func (e *PropertyDefinitionPropertyType) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -42,10 +42,10 @@ func (e *PropertyType) UnmarshalJSON(data []byte) error { case "TEXTLIST": fallthrough case "MULTIPICKLIST": - *e = PropertyType(v) + *e = PropertyDefinitionPropertyType(v) return nil default: - return fmt.Errorf("invalid value for PropertyType: %v", v) + return fmt.Errorf("invalid value for PropertyDefinitionPropertyType: %v", v) } } @@ -86,8 +86,8 @@ type PropertyDefinition struct { // The user friendly label for the property that will be used if a plural context. DisplayLabelPlural *string `json:"displayLabelPlural,omitempty"` // The type of custom property - this governs the search and faceting behavior. Note that MULTIPICKLIST is not yet supported. - PropertyType *PropertyType `json:"propertyType,omitempty"` - UIOptions *UIOptions `json:"uiOptions,omitempty"` + PropertyType *PropertyDefinitionPropertyType `json:"propertyType,omitempty"` + UIOptions *UIOptions `json:"uiOptions,omitempty"` // If true then the property will not show up as a facet in the UI. HideUIFacet *bool `json:"hideUiFacet,omitempty"` // Will be used to set the order of facets in the UI, if present. If set for one facet, must be set for all non-hidden UI facets. Must take on an integer value from 1 (shown at the top) to N (shown last), where N is the number of non-hidden UI facets. These facets will be ordered below the built-in "Type" and "Tag" operators. @@ -119,7 +119,7 @@ func (o *PropertyDefinition) GetDisplayLabelPlural() *string { return o.DisplayLabelPlural } -func (o *PropertyDefinition) GetPropertyType() *PropertyType { +func (o *PropertyDefinition) GetPropertyType() *PropertyDefinitionPropertyType { if o == nil { return nil } diff --git a/tests/mockserver/internal/sdk/models/components/rotatedatasourcecredentialsrequest.go b/tests/mockserver/internal/sdk/models/components/rotatedatasourcecredentialsrequest.go new file mode 100644 index 00000000..3733a707 --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/rotatedatasourcecredentialsrequest.go @@ -0,0 +1,17 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// RotateDatasourceCredentialsRequest - Request to rotate the credentials used by a datasource instance. Replaces the active credential material with the supplied values. +// `credentials.values` must contain only keys recognized as credential material for the datasource type (for example `clientSecret` for OAuth, `apiToken` for API-token auth, `privateKey` for certificate auth). Unrecognized keys, or keys that correspond to non-credential configuration, cause a 400; use the configure endpoint to change non-credential config. +type RotateDatasourceCredentialsRequest struct { + // Configuration for a datasource instance + Credentials DatasourceInstanceConfiguration `json:"credentials"` +} + +func (o *RotateDatasourceCredentialsRequest) GetCredentials() DatasourceInstanceConfiguration { + if o == nil { + return DatasourceInstanceConfiguration{} + } + return o.Credentials +} diff --git a/tests/mockserver/internal/sdk/models/components/successresponse.go b/tests/mockserver/internal/sdk/models/components/successresponse.go new file mode 100644 index 00000000..f1aba12e --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/successresponse.go @@ -0,0 +1,31 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +import ( + "mockserver/internal/sdk/utils" +) + +// SuccessResponse - Success response for custom metadata operations +type SuccessResponse struct { + // Indicates if the operation was successful + Success *bool `default:"true" json:"success"` +} + +func (s SuccessResponse) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SuccessResponse) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, nil); err != nil { + return err + } + return nil +} + +func (o *SuccessResponse) GetSuccess() *bool { + if o == nil { + return nil + } + return o.Success +} diff --git a/tests/mockserver/internal/sdk/models/components/ugctype.go b/tests/mockserver/internal/sdk/models/components/ugctype.go index 3be651fc..bc085b15 100644 --- a/tests/mockserver/internal/sdk/models/components/ugctype.go +++ b/tests/mockserver/internal/sdk/models/components/ugctype.go @@ -27,6 +27,8 @@ const ( UgcTypeShortcutsType UgcType = "SHORTCUTS_TYPE" UgcTypeSlideType UgcType = "SLIDE_TYPE" UgcTypeSpreadsheetType UgcType = "SPREADSHEET_TYPE" + UgcTypeInlineHTMLType UgcType = "INLINE_HTML_TYPE" + UgcTypePodcastType UgcType = "PODCAST_TYPE" UgcTypeWorkflowsType UgcType = "WORKFLOWS_TYPE" ) @@ -73,6 +75,10 @@ func (e *UgcType) UnmarshalJSON(data []byte) error { fallthrough case "SPREADSHEET_TYPE": fallthrough + case "INLINE_HTML_TYPE": + fallthrough + case "PODCAST_TYPE": + fallthrough case "WORKFLOWS_TYPE": *e = UgcType(v) return nil diff --git a/tests/mockserver/internal/sdk/models/components/workflow.go b/tests/mockserver/internal/sdk/models/components/workflow.go index 94feae3f..dfe489b8 100644 --- a/tests/mockserver/internal/sdk/models/components/workflow.go +++ b/tests/mockserver/internal/sdk/models/components/workflow.go @@ -11,11 +11,18 @@ type Workflow struct { // Server Unix timestamp of the last update time. LastUpdateTimestamp *int64 `json:"lastUpdateTimestamp,omitempty"` // Server Unix timestamp of the last time the draft was saved. - LastDraftSavedAt *int64 `json:"lastDraftSavedAt,omitempty"` - LastUpdatedBy *Person `json:"lastUpdatedBy,omitempty"` - Permissions *ObjectPermissions `json:"permissions,omitempty"` + LastDraftSavedAt *int64 `json:"lastDraftSavedAt,omitempty"` + LastDraftSavedBy *Person `json:"lastDraftSavedBy,omitempty"` + // ID of the VCS user (e.g. GitHub username) who last saved the draft. Set only by the draft save path via the external Git integration API. + LastDraftGitAuthorID *string `json:"lastDraftGitAuthorId,omitempty"` + LastUpdatedBy *Person `json:"lastUpdatedBy,omitempty"` + Permissions *ObjectPermissions `json:"permissions,omitempty"` // The ID of the workflow. ID *string `json:"id,omitempty"` + // When present, indicates this workflow is admin-verified. Set via the dedicated admin settings endpoint, not by regular edits. + Verified *bool `json:"verified,omitempty"` + // When true, displays organization name instead of author name in agent card. Set via the dedicated admin settings endpoint, not by regular edits. + ShowOrganizationAsAuthor *bool `json:"showOrganizationAsAuthor,omitempty"` } func (o *Workflow) GetName() *string { @@ -53,6 +60,20 @@ func (o *Workflow) GetLastDraftSavedAt() *int64 { return o.LastDraftSavedAt } +func (o *Workflow) GetLastDraftSavedBy() *Person { + if o == nil { + return nil + } + return o.LastDraftSavedBy +} + +func (o *Workflow) GetLastDraftGitAuthorID() *string { + if o == nil { + return nil + } + return o.LastDraftGitAuthorID +} + func (o *Workflow) GetLastUpdatedBy() *Person { if o == nil { return nil @@ -73,3 +94,17 @@ func (o *Workflow) GetID() *string { } return o.ID } + +func (o *Workflow) GetVerified() *bool { + if o == nil { + return nil + } + return o.Verified +} + +func (o *Workflow) GetShowOrganizationAsAuthor() *bool { + if o == nil { + return nil + } + return o.ShowOrganizationAsAuthor +} diff --git a/tests/mockserver/internal/sdk/models/operations/authorizeactionpack.go b/tests/mockserver/internal/sdk/models/operations/authorizeactionpack.go new file mode 100644 index 00000000..9c7fd68f --- /dev/null +++ b/tests/mockserver/internal/sdk/models/operations/authorizeactionpack.go @@ -0,0 +1,47 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "mockserver/internal/sdk/models/components" +) + +type AuthorizeActionPackRequest struct { + // ID of the action pack to query or authorize. + ActionPackID string `pathParam:"style=simple,explode=false,name=actionPackId"` + Body components.AuthorizeActionPackRequest `request:"mediaType=application/json"` +} + +func (o *AuthorizeActionPackRequest) GetActionPackID() string { + if o == nil { + return "" + } + return o.ActionPackID +} + +func (o *AuthorizeActionPackRequest) GetBody() components.AuthorizeActionPackRequest { + if o == nil { + return components.AuthorizeActionPackRequest{} + } + return o.Body +} + +type AuthorizeActionPackResponse struct { + HTTPMeta components.HTTPMetadata `json:"-"` + // Successful operation + AuthorizeActionPackResponse *components.AuthorizeActionPackResponse +} + +func (o *AuthorizeActionPackResponse) GetHTTPMeta() components.HTTPMetadata { + if o == nil { + return components.HTTPMetadata{} + } + return o.HTTPMeta +} + +func (o *AuthorizeActionPackResponse) GetAuthorizeActionPackResponse() *components.AuthorizeActionPackResponse { + if o == nil { + return nil + } + return o.AuthorizeActionPackResponse +} diff --git a/tests/mockserver/internal/sdk/models/operations/deleterestapiindexcustommetadataschemagroupname.go b/tests/mockserver/internal/sdk/models/operations/deleterestapiindexcustommetadataschemagroupname.go new file mode 100644 index 00000000..0d1f7202 --- /dev/null +++ b/tests/mockserver/internal/sdk/models/operations/deleterestapiindexcustommetadataschemagroupname.go @@ -0,0 +1,39 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "mockserver/internal/sdk/models/components" +) + +type DeleteRestAPIIndexCustomMetadataSchemaGroupNameRequest struct { + // Name of the metadata group schema + GroupName string `pathParam:"style=simple,explode=false,name=groupName"` +} + +func (o *DeleteRestAPIIndexCustomMetadataSchemaGroupNameRequest) GetGroupName() string { + if o == nil { + return "" + } + return o.GroupName +} + +type DeleteRestAPIIndexCustomMetadataSchemaGroupNameResponse struct { + HTTPMeta components.HTTPMetadata `json:"-"` + // OK + SuccessResponse *components.SuccessResponse +} + +func (o *DeleteRestAPIIndexCustomMetadataSchemaGroupNameResponse) GetHTTPMeta() components.HTTPMetadata { + if o == nil { + return components.HTTPMetadata{} + } + return o.HTTPMeta +} + +func (o *DeleteRestAPIIndexCustomMetadataSchemaGroupNameResponse) GetSuccessResponse() *components.SuccessResponse { + if o == nil { + return nil + } + return o.SuccessResponse +} diff --git a/tests/mockserver/internal/sdk/models/operations/deleterestapiindexdocumentdocidcustommetadatagroupname.go b/tests/mockserver/internal/sdk/models/operations/deleterestapiindexdocumentdocidcustommetadatagroupname.go new file mode 100644 index 00000000..beb27fc3 --- /dev/null +++ b/tests/mockserver/internal/sdk/models/operations/deleterestapiindexdocumentdocidcustommetadatagroupname.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "mockserver/internal/sdk/models/components" +) + +type DeleteRestAPIIndexDocumentDocIDCustomMetadataGroupNameRequest struct { + // Unique Glean identifier of the document + DocID string `pathParam:"style=simple,explode=false,name=docId"` + // Name of the metadata group as specified while adding schema + GroupName string `pathParam:"style=simple,explode=false,name=groupName"` +} + +func (o *DeleteRestAPIIndexDocumentDocIDCustomMetadataGroupNameRequest) GetDocID() string { + if o == nil { + return "" + } + return o.DocID +} + +func (o *DeleteRestAPIIndexDocumentDocIDCustomMetadataGroupNameRequest) GetGroupName() string { + if o == nil { + return "" + } + return o.GroupName +} + +type DeleteRestAPIIndexDocumentDocIDCustomMetadataGroupNameResponse struct { + HTTPMeta components.HTTPMetadata `json:"-"` + // OK + SuccessResponse *components.SuccessResponse +} + +func (o *DeleteRestAPIIndexDocumentDocIDCustomMetadataGroupNameResponse) GetHTTPMeta() components.HTTPMetadata { + if o == nil { + return components.HTTPMetadata{} + } + return o.HTTPMeta +} + +func (o *DeleteRestAPIIndexDocumentDocIDCustomMetadataGroupNameResponse) GetSuccessResponse() *components.SuccessResponse { + if o == nil { + return nil + } + return o.SuccessResponse +} diff --git a/tests/mockserver/internal/sdk/models/operations/editagent.go b/tests/mockserver/internal/sdk/models/operations/editagent.go new file mode 100644 index 00000000..e65fa406 --- /dev/null +++ b/tests/mockserver/internal/sdk/models/operations/editagent.go @@ -0,0 +1,56 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "mockserver/internal/sdk/models/components" +) + +type EditAgentRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` + // The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + TimezoneOffset *int64 `queryParam:"style=form,explode=true,name=timezoneOffset"` + // The ID of the agent. + AgentID string `pathParam:"style=simple,explode=false,name=agent_id"` + Body components.EditWorkflowRequest `request:"mediaType=application/json"` +} + +func (o *EditAgentRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + +func (o *EditAgentRequest) GetTimezoneOffset() *int64 { + if o == nil { + return nil + } + return o.TimezoneOffset +} + +func (o *EditAgentRequest) GetAgentID() string { + if o == nil { + return "" + } + return o.AgentID +} + +func (o *EditAgentRequest) GetBody() components.EditWorkflowRequest { + if o == nil { + return components.EditWorkflowRequest{} + } + return o.Body +} + +type EditAgentResponse struct { + HTTPMeta components.HTTPMetadata `json:"-"` +} + +func (o *EditAgentResponse) GetHTTPMeta() components.HTTPMetadata { + if o == nil { + return components.HTTPMetadata{} + } + return o.HTTPMeta +} diff --git a/tests/mockserver/internal/sdk/models/operations/getactionpackauthstatus.go b/tests/mockserver/internal/sdk/models/operations/getactionpackauthstatus.go new file mode 100644 index 00000000..9b7a1160 --- /dev/null +++ b/tests/mockserver/internal/sdk/models/operations/getactionpackauthstatus.go @@ -0,0 +1,39 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "mockserver/internal/sdk/models/components" +) + +type GetActionPackAuthStatusRequest struct { + // ID of the action pack to query or authorize. + ActionPackID string `pathParam:"style=simple,explode=false,name=actionPackId"` +} + +func (o *GetActionPackAuthStatusRequest) GetActionPackID() string { + if o == nil { + return "" + } + return o.ActionPackID +} + +type GetActionPackAuthStatusResponse struct { + HTTPMeta components.HTTPMetadata `json:"-"` + // Successful operation + ActionPackAuthStatusResponse *components.ActionPackAuthStatusResponse +} + +func (o *GetActionPackAuthStatusResponse) GetHTTPMeta() components.HTTPMetadata { + if o == nil { + return components.HTTPMetadata{} + } + return o.HTTPMeta +} + +func (o *GetActionPackAuthStatusResponse) GetActionPackAuthStatusResponse() *components.ActionPackAuthStatusResponse { + if o == nil { + return nil + } + return o.ActionPackAuthStatusResponse +} diff --git a/tests/mockserver/internal/sdk/models/operations/getchatfile.go b/tests/mockserver/internal/sdk/models/operations/getchatfile.go new file mode 100644 index 00000000..b2bd8aac --- /dev/null +++ b/tests/mockserver/internal/sdk/models/operations/getchatfile.go @@ -0,0 +1,51 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "io" + "mockserver/internal/sdk/models/components" +) + +type GetChatFileRequest struct { + // Identifier of the chat file to download. + FileID string `pathParam:"style=simple,explode=false,name=fileId"` + // When true and the file is a PDF, the response is served inline (Content-Disposition: inline) instead of as an attachment. + // + Preview *bool `queryParam:"style=form,explode=true,name=preview"` +} + +func (o *GetChatFileRequest) GetFileID() string { + if o == nil { + return "" + } + return o.FileID +} + +func (o *GetChatFileRequest) GetPreview() *bool { + if o == nil { + return nil + } + return o.Preview +} + +type GetChatFileResponse struct { + HTTPMeta components.HTTPMetadata `json:"-"` + // File content. + // The Close method must be called on this field, even if it is not used, to prevent resource leaks. + ResponseStream io.ReadCloser +} + +func (o *GetChatFileResponse) GetHTTPMeta() components.HTTPMetadata { + if o == nil { + return components.HTTPMetadata{} + } + return o.HTTPMeta +} + +func (o *GetChatFileResponse) GetResponseStream() io.ReadCloser { + if o == nil { + return nil + } + return o.ResponseStream +} diff --git a/tests/mockserver/internal/sdk/models/operations/getdatasourcecredentialstatus.go b/tests/mockserver/internal/sdk/models/operations/getdatasourcecredentialstatus.go new file mode 100644 index 00000000..bc0d1e27 --- /dev/null +++ b/tests/mockserver/internal/sdk/models/operations/getdatasourcecredentialstatus.go @@ -0,0 +1,39 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "mockserver/internal/sdk/models/components" +) + +type GetDatasourceCredentialStatusRequest struct { + // The full datasource instance identifier (e.g. o365sharepoint_abc123) + DatasourceInstanceID string `pathParam:"style=simple,explode=false,name=datasourceInstanceId"` +} + +func (o *GetDatasourceCredentialStatusRequest) GetDatasourceInstanceID() string { + if o == nil { + return "" + } + return o.DatasourceInstanceID +} + +type GetDatasourceCredentialStatusResponse struct { + HTTPMeta components.HTTPMetadata `json:"-"` + // OK + DatasourceCredentialStatusResponse *components.DatasourceCredentialStatusResponse +} + +func (o *GetDatasourceCredentialStatusResponse) GetHTTPMeta() components.HTTPMetadata { + if o == nil { + return components.HTTPMetadata{} + } + return o.HTTPMeta +} + +func (o *GetDatasourceCredentialStatusResponse) GetDatasourceCredentialStatusResponse() *components.DatasourceCredentialStatusResponse { + if o == nil { + return nil + } + return o.DatasourceCredentialStatusResponse +} diff --git a/tests/mockserver/internal/sdk/models/operations/getpersonphoto.go b/tests/mockserver/internal/sdk/models/operations/getpersonphoto.go new file mode 100644 index 00000000..4d865674 --- /dev/null +++ b/tests/mockserver/internal/sdk/models/operations/getpersonphoto.go @@ -0,0 +1,69 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "io" + "mockserver/internal/sdk/models/components" +) + +type GetPersonPhotoRequest struct { + // The obfuscated ID of the person whose photo to retrieve. + PersonID string `pathParam:"style=simple,explode=false,name=person_id"` + // Optional datasource override for crawled photos (e.g. AZURE, GDRIVE, OKTA). When omitted, the datasource is derived from the person's stored photo URL or the deployment's primary person datasource. + // + Ds *string `queryParam:"style=form,explode=true,name=ds"` +} + +func (o *GetPersonPhotoRequest) GetPersonID() string { + if o == nil { + return "" + } + return o.PersonID +} + +func (o *GetPersonPhotoRequest) GetDs() *string { + if o == nil { + return nil + } + return o.Ds +} + +type GetPersonPhotoResponse struct { + HTTPMeta components.HTTPMetadata `json:"-"` + // Photo bytes returned successfully. + // The Close method must be called on this field, even if it is not used, to prevent resource leaks. + TwoHundredImagePngResponseStream io.ReadCloser + // Photo bytes returned successfully. + // The Close method must be called on this field, even if it is not used, to prevent resource leaks. + TwoHundredImageJpegResponseStream io.ReadCloser + Headers map[string][]string +} + +func (o *GetPersonPhotoResponse) GetHTTPMeta() components.HTTPMetadata { + if o == nil { + return components.HTTPMetadata{} + } + return o.HTTPMeta +} + +func (o *GetPersonPhotoResponse) GetTwoHundredImagePngResponseStream() io.ReadCloser { + if o == nil { + return nil + } + return o.TwoHundredImagePngResponseStream +} + +func (o *GetPersonPhotoResponse) GetTwoHundredImageJpegResponseStream() io.ReadCloser { + if o == nil { + return nil + } + return o.TwoHundredImageJpegResponseStream +} + +func (o *GetPersonPhotoResponse) GetHeaders() map[string][]string { + if o == nil { + return map[string][]string{} + } + return o.Headers +} diff --git a/tests/mockserver/internal/sdk/models/operations/getrestapiindexcustommetadataschemagroupname.go b/tests/mockserver/internal/sdk/models/operations/getrestapiindexcustommetadataschemagroupname.go new file mode 100644 index 00000000..e38d331a --- /dev/null +++ b/tests/mockserver/internal/sdk/models/operations/getrestapiindexcustommetadataschemagroupname.go @@ -0,0 +1,39 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "mockserver/internal/sdk/models/components" +) + +type GetRestAPIIndexCustomMetadataSchemaGroupNameRequest struct { + // Name of the metadata group schema + GroupName string `pathParam:"style=simple,explode=false,name=groupName"` +} + +func (o *GetRestAPIIndexCustomMetadataSchemaGroupNameRequest) GetGroupName() string { + if o == nil { + return "" + } + return o.GroupName +} + +type GetRestAPIIndexCustomMetadataSchemaGroupNameResponse struct { + HTTPMeta components.HTTPMetadata `json:"-"` + // OK + CustomMetadataSchema *components.CustomMetadataSchema +} + +func (o *GetRestAPIIndexCustomMetadataSchemaGroupNameResponse) GetHTTPMeta() components.HTTPMetadata { + if o == nil { + return components.HTTPMetadata{} + } + return o.HTTPMeta +} + +func (o *GetRestAPIIndexCustomMetadataSchemaGroupNameResponse) GetCustomMetadataSchema() *components.CustomMetadataSchema { + if o == nil { + return nil + } + return o.CustomMetadataSchema +} diff --git a/tests/mockserver/internal/sdk/models/operations/postapiindexv1debugdatasourcedocumentevents.go b/tests/mockserver/internal/sdk/models/operations/postapiindexv1debugdatasourcedocumentevents.go new file mode 100644 index 00000000..33447581 --- /dev/null +++ b/tests/mockserver/internal/sdk/models/operations/postapiindexv1debugdatasourcedocumentevents.go @@ -0,0 +1,47 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "mockserver/internal/sdk/models/components" +) + +type PostAPIIndexV1DebugDatasourceDocumentEventsRequest struct { + // The datasource to which the document belongs + Datasource string `pathParam:"style=simple,explode=false,name=datasource"` + Body components.DebugDocumentLifecycleRequest `request:"mediaType=application/json"` +} + +func (o *PostAPIIndexV1DebugDatasourceDocumentEventsRequest) GetDatasource() string { + if o == nil { + return "" + } + return o.Datasource +} + +func (o *PostAPIIndexV1DebugDatasourceDocumentEventsRequest) GetBody() components.DebugDocumentLifecycleRequest { + if o == nil { + return components.DebugDocumentLifecycleRequest{} + } + return o.Body +} + +type PostAPIIndexV1DebugDatasourceDocumentEventsResponse struct { + HTTPMeta components.HTTPMetadata `json:"-"` + // OK + DebugDocumentLifecycleResponse *components.DebugDocumentLifecycleResponse +} + +func (o *PostAPIIndexV1DebugDatasourceDocumentEventsResponse) GetHTTPMeta() components.HTTPMetadata { + if o == nil { + return components.HTTPMetadata{} + } + return o.HTTPMeta +} + +func (o *PostAPIIndexV1DebugDatasourceDocumentEventsResponse) GetDebugDocumentLifecycleResponse() *components.DebugDocumentLifecycleResponse { + if o == nil { + return nil + } + return o.DebugDocumentLifecycleResponse +} diff --git a/tests/mockserver/internal/sdk/models/operations/putrestapiindexcustommetadataschemagroupname.go b/tests/mockserver/internal/sdk/models/operations/putrestapiindexcustommetadataschemagroupname.go new file mode 100644 index 00000000..8aabd064 --- /dev/null +++ b/tests/mockserver/internal/sdk/models/operations/putrestapiindexcustommetadataschemagroupname.go @@ -0,0 +1,47 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "mockserver/internal/sdk/models/components" +) + +type PutRestAPIIndexCustomMetadataSchemaGroupNameRequest struct { + // Name of the metadata group schema + GroupName string `pathParam:"style=simple,explode=false,name=groupName"` + Body components.CustomMetadataSchema `request:"mediaType=application/json"` +} + +func (o *PutRestAPIIndexCustomMetadataSchemaGroupNameRequest) GetGroupName() string { + if o == nil { + return "" + } + return o.GroupName +} + +func (o *PutRestAPIIndexCustomMetadataSchemaGroupNameRequest) GetBody() components.CustomMetadataSchema { + if o == nil { + return components.CustomMetadataSchema{} + } + return o.Body +} + +type PutRestAPIIndexCustomMetadataSchemaGroupNameResponse struct { + HTTPMeta components.HTTPMetadata `json:"-"` + // OK + SuccessResponse *components.SuccessResponse +} + +func (o *PutRestAPIIndexCustomMetadataSchemaGroupNameResponse) GetHTTPMeta() components.HTTPMetadata { + if o == nil { + return components.HTTPMetadata{} + } + return o.HTTPMeta +} + +func (o *PutRestAPIIndexCustomMetadataSchemaGroupNameResponse) GetSuccessResponse() *components.SuccessResponse { + if o == nil { + return nil + } + return o.SuccessResponse +} diff --git a/tests/mockserver/internal/sdk/models/operations/putrestapiindexdocumentdocidcustommetadatagroupname.go b/tests/mockserver/internal/sdk/models/operations/putrestapiindexdocumentdocidcustommetadatagroupname.go new file mode 100644 index 00000000..2722a184 --- /dev/null +++ b/tests/mockserver/internal/sdk/models/operations/putrestapiindexdocumentdocidcustommetadatagroupname.go @@ -0,0 +1,56 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "mockserver/internal/sdk/models/components" +) + +type PutRestAPIIndexDocumentDocIDCustomMetadataGroupNameRequest struct { + // Unique Glean identifier of the document + DocID string `pathParam:"style=simple,explode=false,name=docId"` + // Name of the metadata group as specified while adding schema + GroupName string `pathParam:"style=simple,explode=false,name=groupName"` + Body components.CustomMetadataPutRequest `request:"mediaType=application/json"` +} + +func (o *PutRestAPIIndexDocumentDocIDCustomMetadataGroupNameRequest) GetDocID() string { + if o == nil { + return "" + } + return o.DocID +} + +func (o *PutRestAPIIndexDocumentDocIDCustomMetadataGroupNameRequest) GetGroupName() string { + if o == nil { + return "" + } + return o.GroupName +} + +func (o *PutRestAPIIndexDocumentDocIDCustomMetadataGroupNameRequest) GetBody() components.CustomMetadataPutRequest { + if o == nil { + return components.CustomMetadataPutRequest{} + } + return o.Body +} + +type PutRestAPIIndexDocumentDocIDCustomMetadataGroupNameResponse struct { + HTTPMeta components.HTTPMetadata `json:"-"` + // OK + SuccessResponse *components.SuccessResponse +} + +func (o *PutRestAPIIndexDocumentDocIDCustomMetadataGroupNameResponse) GetHTTPMeta() components.HTTPMetadata { + if o == nil { + return components.HTTPMetadata{} + } + return o.HTTPMeta +} + +func (o *PutRestAPIIndexDocumentDocIDCustomMetadataGroupNameResponse) GetSuccessResponse() *components.SuccessResponse { + if o == nil { + return nil + } + return o.SuccessResponse +} diff --git a/tests/mockserver/internal/sdk/models/operations/rotatedatasourcecredentials.go b/tests/mockserver/internal/sdk/models/operations/rotatedatasourcecredentials.go new file mode 100644 index 00000000..f5ac0b26 --- /dev/null +++ b/tests/mockserver/internal/sdk/models/operations/rotatedatasourcecredentials.go @@ -0,0 +1,47 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "mockserver/internal/sdk/models/components" +) + +type RotateDatasourceCredentialsRequest struct { + // The full datasource instance identifier (e.g. o365sharepoint_abc123) + DatasourceInstanceID string `pathParam:"style=simple,explode=false,name=datasourceInstanceId"` + Body components.RotateDatasourceCredentialsRequest `request:"mediaType=application/json"` +} + +func (o *RotateDatasourceCredentialsRequest) GetDatasourceInstanceID() string { + if o == nil { + return "" + } + return o.DatasourceInstanceID +} + +func (o *RotateDatasourceCredentialsRequest) GetBody() components.RotateDatasourceCredentialsRequest { + if o == nil { + return components.RotateDatasourceCredentialsRequest{} + } + return o.Body +} + +type RotateDatasourceCredentialsResponse struct { + HTTPMeta components.HTTPMetadata `json:"-"` + // OK + DatasourceCredentialStatusResponse *components.DatasourceCredentialStatusResponse +} + +func (o *RotateDatasourceCredentialsResponse) GetHTTPMeta() components.HTTPMetadata { + if o == nil { + return components.HTTPMetadata{} + } + return o.HTTPMeta +} + +func (o *RotateDatasourceCredentialsResponse) GetDatasourceCredentialStatusResponse() *components.DatasourceCredentialStatusResponse { + if o == nil { + return nil + } + return o.DatasourceCredentialStatusResponse +} diff --git a/tests/mockserver/internal/sdk/models/sdkerrors/errorinforesponse.go b/tests/mockserver/internal/sdk/models/sdkerrors/errorinforesponse.go new file mode 100644 index 00000000..75ecfbc9 --- /dev/null +++ b/tests/mockserver/internal/sdk/models/sdkerrors/errorinforesponse.go @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package sdkerrors + +import ( + "encoding/json" + "mockserver/internal/sdk/models/components" +) + +// ErrorInfoResponse - Error response for custom metadata operations +type ErrorInfoResponse struct { + // Error message describing what went wrong + Error_ string `json:"error"` + // Additional details about the error + Message *string `json:"message,omitempty"` + HTTPMeta components.HTTPMetadata `json:"-"` +} + +var _ error = &ErrorInfoResponse{} + +func (e *ErrorInfoResponse) Error() string { + data, _ := json.Marshal(e) + return string(data) +} diff --git a/tests/summarize_test.go b/tests/summarize_test.go index 0cf81ea7..1b3aa16c 100644 --- a/tests/summarize_test.go +++ b/tests/summarize_test.go @@ -25,10 +25,9 @@ func TestSummarize_Summarize(t *testing.T) { res, err := s.Client.Documents.Summarize(ctx, components.SummarizeRequest{ DocumentSpecs: []components.DocumentSpecUnion{ - components.CreateDocumentSpecUnionDocumentSpec3( - components.DocumentSpec3{ - UgcType: components.DocumentSpecUgcType1Collections, - ContentID: 993975, + components.CreateDocumentSpecUnionDocumentSpec1( + components.DocumentSpec1{ + URL: "https://judicious-squid.info", }, ), components.CreateDocumentSpecUnionDocumentSpec2( diff --git a/tests/tools_test.go b/tests/tools_test.go index 83f78574..05315314 100644 --- a/tests/tools_test.go +++ b/tests/tools_test.go @@ -53,3 +53,39 @@ func TestTools_PostRestAPIV1ToolsCall(t *testing.T) { assert.Equal(t, 200, res.HTTPMeta.Response.StatusCode) } + +func TestTools_GetActionPackAuthStatus(t *testing.T) { + ctx := context.Background() + + testHTTPClient := createTestHTTPClient("getActionPackAuthStatus") + + s := apiclientgo.New( + apiclientgo.WithServerURL(utils.GetEnv("TEST_SERVER_URL", "http://localhost:18080")), + apiclientgo.WithClient(testHTTPClient), + apiclientgo.WithSecurity(utils.GetEnv("GLEAN_API_TOKEN", "value")), + ) + + res, err := s.Tools.GetActionPackAuthStatus(ctx, "") + require.NoError(t, err) + assert.Equal(t, 200, res.HTTPMeta.Response.StatusCode) + +} + +func TestTools_AuthorizeActionPack(t *testing.T) { + ctx := context.Background() + + testHTTPClient := createTestHTTPClient("authorizeActionPack") + + s := apiclientgo.New( + apiclientgo.WithServerURL(utils.GetEnv("TEST_SERVER_URL", "http://localhost:18080")), + apiclientgo.WithClient(testHTTPClient), + apiclientgo.WithSecurity(utils.GetEnv("GLEAN_API_TOKEN", "value")), + ) + + res, err := s.Tools.AuthorizeActionPack(ctx, "", components.AuthorizeActionPackRequest{ + ReturnURL: "https://merry-allocation.org/", + }) + require.NoError(t, err) + assert.Equal(t, 200, res.HTTPMeta.Response.StatusCode) + +} diff --git a/tools.go b/tools.go index 74bc08d9..e29e5f5c 100644 --- a/tools.go +++ b/tools.go @@ -14,7 +14,6 @@ import ( "github.com/gleanwork/api-client-go/models/operations" "github.com/gleanwork/api-client-go/retry" "net/http" - "net/url" ) type Tools struct { @@ -31,11 +30,13 @@ func newTools(rootSDK *Glean, sdkConfig config.SDKConfiguration, hooks *hooks.Ho } } -// List available tools -// Returns a filtered set of available tools based on optional tool name parameters. If no filters are provided, all available tools are returned. -func (s *Tools) List(ctx context.Context, toolNames []string, opts ...operations.Option) (*operations.GetRestAPIV1ToolsListResponse, error) { - request := operations.GetRestAPIV1ToolsListRequest{ - ToolNames: toolNames, +// GetActionPackAuthStatus - Get end-user authentication status for an action pack. +// Reports whether the calling user is already authenticated against the third-party +// tool backing the specified action pack. Intended for headless / server-driven clients +// that render an "Authorize" prompt when the user has not yet consented to the tool. +func (s *Tools) GetActionPackAuthStatus(ctx context.Context, actionPackID string, opts ...operations.Option) (*operations.GetActionPackAuthStatusResponse, error) { + request := operations.GetActionPackAuthStatusRequest{ + ActionPackID: actionPackID, } o := operations.Options{} @@ -56,7 +57,7 @@ func (s *Tools) List(ctx context.Context, toolNames []string, opts ...operations } else { baseURL = *o.ServerURL } - opURL, err := url.JoinPath(baseURL, "/rest/api/v1/tools/list") + opURL, err := utils.GenerateURL(ctx, baseURL, "/rest/api/v1/actions/actionpack/{actionPackId}/auth", request, nil) if err != nil { return nil, fmt.Errorf("error generating URL: %w", err) } @@ -66,7 +67,7 @@ func (s *Tools) List(ctx context.Context, toolNames []string, opts ...operations SDKConfiguration: s.sdkConfiguration, BaseURL: baseURL, Context: ctx, - OperationID: "get_/rest/api/v1/tools/list", + OperationID: "getActionPackAuthStatus", OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -89,10 +90,6 @@ func (s *Tools) List(ctx context.Context, toolNames []string, opts ...operations req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { - return nil, fmt.Errorf("error populating query params: %w", err) - } - if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err } @@ -192,7 +189,7 @@ func (s *Tools) List(ctx context.Context, toolNames []string, opts ...operations } } - res := &operations.GetRestAPIV1ToolsListResponse{ + res := &operations.GetActionPackAuthStatusResponse{ HTTPMeta: components.HTTPMetadata{ Request: req, Response: httpRes, @@ -208,12 +205,12 @@ func (s *Tools) List(ctx context.Context, toolNames []string, opts ...operations return nil, err } - var out components.ToolsListResponse + var out components.ActionPackAuthStatusResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - res.ToolsListResponse = &out + res.ActionPackAuthStatusResponse = &out default: rawBody, err := utils.ConsumeRawBody(httpRes) if err != nil { @@ -253,9 +250,20 @@ func (s *Tools) List(ctx context.Context, toolNames []string, opts ...operations } -// Run - Execute the specified tool -// Execute the specified tool with provided parameters -func (s *Tools) Run(ctx context.Context, request components.ToolsCallRequest, opts ...operations.Option) (*operations.PostRestAPIV1ToolsCallResponse, error) { +// AuthorizeActionPack - Start the OAuth authorization flow for an action pack. +// Starts the third-party OAuth flow for the specified action pack and returns the +// redirect URL that the client should navigate the end user to. After the OAuth +// callback completes, the user's browser is redirected back to `returnUrl` with a +// status query parameter (`?glean_action_auth=success|error&actionPackId=...`). +// +// `returnUrl` must match the tenant's configured return URL allowlist; otherwise the +// request is rejected with 400. +func (s *Tools) AuthorizeActionPack(ctx context.Context, actionPackID string, authorizeActionPackRequest components.AuthorizeActionPackRequest, opts ...operations.Option) (*operations.AuthorizeActionPackResponse, error) { + request := operations.AuthorizeActionPackRequest{ + ActionPackID: actionPackID, + AuthorizeActionPackRequest: authorizeActionPackRequest, + } + o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -274,7 +282,7 @@ func (s *Tools) Run(ctx context.Context, request components.ToolsCallRequest, op } else { baseURL = *o.ServerURL } - opURL, err := url.JoinPath(baseURL, "/rest/api/v1/tools/call") + opURL, err := utils.GenerateURL(ctx, baseURL, "/rest/api/v1/actions/actionpack/{actionPackId}/auth", request, nil) if err != nil { return nil, fmt.Errorf("error generating URL: %w", err) } @@ -284,11 +292,11 @@ func (s *Tools) Run(ctx context.Context, request components.ToolsCallRequest, op SDKConfiguration: s.sdkConfiguration, BaseURL: baseURL, Context: ctx, - OperationID: "post_/rest/api/v1/tools/call", + OperationID: "authorizeActionPack", OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "Request", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "AuthorizeActionPackRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -413,7 +421,7 @@ func (s *Tools) Run(ctx context.Context, request components.ToolsCallRequest, op } } - res := &operations.PostRestAPIV1ToolsCallResponse{ + res := &operations.AuthorizeActionPackResponse{ HTTPMeta: components.HTTPMetadata{ Request: req, Response: httpRes, @@ -429,12 +437,12 @@ func (s *Tools) Run(ctx context.Context, request components.ToolsCallRequest, op return nil, err } - var out components.ToolsCallResponse + var out components.AuthorizeActionPackResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - res.ToolsCallResponse = &out + res.AuthorizeActionPackResponse = &out default: rawBody, err := utils.ConsumeRawBody(httpRes) if err != nil { @@ -446,6 +454,8 @@ func (s *Tools) Run(ctx context.Context, request components.ToolsCallRequest, op fallthrough case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 429: diff --git a/troubleshooting.go b/troubleshooting.go new file mode 100644 index 00000000..948d7986 --- /dev/null +++ b/troubleshooting.go @@ -0,0 +1,256 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package apiclientgo + +import ( + "bytes" + "context" + "fmt" + "github.com/gleanwork/api-client-go/internal/config" + "github.com/gleanwork/api-client-go/internal/hooks" + "github.com/gleanwork/api-client-go/internal/utils" + "github.com/gleanwork/api-client-go/models/apierrors" + "github.com/gleanwork/api-client-go/models/components" + "github.com/gleanwork/api-client-go/models/operations" + "github.com/gleanwork/api-client-go/retry" + "net/http" +) + +type Troubleshooting struct { + rootSDK *Glean + sdkConfiguration config.SDKConfiguration + hooks *hooks.Hooks +} + +func newTroubleshooting(rootSDK *Glean, sdkConfig config.SDKConfiguration, hooks *hooks.Hooks) *Troubleshooting { + return &Troubleshooting{ + rootSDK: rootSDK, + sdkConfiguration: sdkConfig, + hooks: hooks, + } +} + +// PostAPIIndexV1DebugDatasourceDocumentEvents - Beta: Get document lifecycle events +// +// Retrieves lifecycle events for a specific document including upload time, index times and deletions. Rate limited to 1 request per minute per datasource. Currently in beta, might undergo breaking changes without prior notice. +func (s *Troubleshooting) PostAPIIndexV1DebugDatasourceDocumentEvents(ctx context.Context, datasource string, debugDocumentLifecycleRequest components.DebugDocumentLifecycleRequest, opts ...operations.Option) (*operations.PostAPIIndexV1DebugDatasourceDocumentEventsResponse, error) { + request := operations.PostAPIIndexV1DebugDatasourceDocumentEventsRequest{ + Datasource: datasource, + DebugDocumentLifecycleRequest: debugDocumentLifecycleRequest, + } + + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/index/v1/debug/{datasource}/document/events", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "post_/api/index/v1/debug/{datasource}/document/events", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "DebugDocumentLifecycleRequest", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json; charset=UTF-8") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.PostAPIIndexV1DebugDatasourceDocumentEventsResponse{ + HTTPMeta: components.HTTPMetadata{ + Request: req, + Response: httpRes, + }, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json; charset=UTF-8`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out components.DebugDocumentLifecycleResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.DebugDocumentLifecycleResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode == 400: + fallthrough + case httpRes.StatusCode == 401: + fallthrough + case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, apierrors.NewAPIError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +}