diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index e35d2d3f..0db12cf3 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,20 +1,21 @@ lockVersion: 2.0.0 id: 9d90eb9e-33f8-4170-8944-988f4000aad0 management: - docChecksum: d8e27f2118bb2e9b6f10f3c87ad1abab + docChecksum: 9498f48bd97b401f657ecef3d73c80b9 docVersion: 0.9.0 - speakeasyVersion: 1.761.8 - generationVersion: 2.881.2 - releaseVersion: 0.11.43 - configChecksum: 674210255998da9fa4f159aa8fa14609 + speakeasyVersion: 1.762.0 + generationVersion: 2.882.0 + 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: 5ee7a756-2e91-41da-9414-c84822560833 + pristine_commit_hash: 969ac75c32204d9d75a3085b77835ba92f83dd7f + pristine_tree_hash: 945c534657d9de05c42d7ca8c5ab2c1ba0bdb92e features: go: + acceptHeaders: 2.81.2 additionalDependencies: 0.1.0 additionalProperties: 0.1.2 constsAndDefaults: 0.1.14 @@ -22,6 +23,7 @@ features: defaultEnabledRetries: 0.2.0 deprecations: 2.81.3 devContainers: 2.90.0 + downloadStreams: 0.1.2 envVarSecurityUsage: 0.3.2 examples: 2.81.6 flattening: 2.81.2 @@ -66,8 +68,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 +84,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,6 +118,10 @@ 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 @@ -118,8 +136,8 @@ 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 @@ -132,6 +150,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 +192,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 +248,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 +262,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 +276,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 +300,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 +320,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 +332,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 +350,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 +398,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 @@ -514,16 +560,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 +688,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 @@ -728,6 +774,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 +830,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 +1120,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 +1162,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,8 +1232,8 @@ 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 @@ -1184,6 +1246,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 +1260,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:d11129552a5378721240db37ef60d379ae76dd54 + pristine_git_object: 839cc3f0284b5cdec80949a013325e8357ba2353 docs/models/components/feedrequestoptions.md: id: 76c5e4412304 last_write_checksum: sha1:674915ceaa3b9eec9d9543dc9f0e6a85b394174e @@ -1210,8 +1276,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:3a8123ecac511a5221103f8d97974ad5b5ce1745 + pristine_git_object: 949126dbc49faf0c122018564df7bf1720364386 docs/models/components/fieldscope.md: id: 23caffb85bb7 last_write_checksum: sha1:65cdffa9b7bf28a760c906f49dc7417f37b9e56f @@ -1290,8 +1356,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 +1556,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:ea5e2b3ae846146b8832c6dbb4b776566af96b75 + pristine_git_object: 22445dfe3306597516304b6ced3532d4172d4d36 docs/models/components/insightsrequest.md: id: cf96ae543699 - last_write_checksum: sha1:f76505c6ea86309e8dc7798b77307ef90c208d49 - pristine_git_object: 40af7932456984133a76b42f2908c2a48400ed62 + last_write_checksum: sha1:a972211c8ab2372bb916ceaa766b4c3054801e03 + pristine_git_object: 7bbd003feaaf26b35ea22abf7915615f2818ca35 docs/models/components/insightsresponse.md: id: 8fad04b60c85 last_write_checksum: sha1:ab75defe206e7acbc294c59718b7db0b303978a6 pristine_git_object: 3a6e47230a2382061785f87a5444842d660064a4 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 +1596,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:4fc5467d27d47aed3ccf2b66b29b04ee1a05b115 + pristine_git_object: b1ee36ed3876be218a77403ec216f5d5820b3a4b docs/models/components/knowledgetype.md: id: cf27a7cefa69 last_write_checksum: sha1:f7294d6350e558a0a626ac41241ccbf0facacf10 @@ -1544,6 +1610,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 +1702,10 @@ 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/meeting.md: id: 40604b996772 last_write_checksum: sha1:1146372010096c9731bd23e2e470f00607e1f276 @@ -1698,8 +1776,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 @@ -1928,6 +2006,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 @@ -2214,8 +2296,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:6b6777680b8a92d95a2463144c0c6ef2b0a5b9c6 + pristine_git_object: e6a04259ada3eae50f576ce76b55de2ea87a371b docs/models/components/uiconfig.md: id: 755fbd873311 last_write_checksum: sha1:682048883ac81a43f5ff7becd6906e1146dfa46a @@ -2378,8 +2460,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:f1182992b031d752fe380b7ba2ab2fd61638cd2a + pristine_git_object: 312e5ed6f5f4793db82760d040b9008465ec498b docs/models/components/workflowfeedbackinfo.md: id: fc6ea7558326 last_write_checksum: sha1:f54515e67180906a8b81931baa055bd474796f66 @@ -2436,6 +2518,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 @@ -2620,6 +2710,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 +2766,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 +2806,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 +2838,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 +2886,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 @@ -2952,6 +3082,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 @@ -3096,6 +3234,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 +3324,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,20 +3344,36 @@ 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 @@ -3222,12 +3384,12 @@ trackedFiles: 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 +3444,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,12 +3464,12 @@ 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:d79b12f1f0753f024d3ea872177004cab80c5252 + pristine_git_object: cbc05b54f9a06d6c7cfe54d6e4f5abbdfa48c60d go.mod: id: c47645c391ad last_write_checksum: sha1:86e3d2575dc26780579383eddbc5be5adbd21501 @@ -3420,6 +3586,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 +3616,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 +3660,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 +3674,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 +3688,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 +3712,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 @@ -3718,12 +3908,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 +4012,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 @@ -3892,6 +4082,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 +4122,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 +4356,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 +4452,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:7303be10f5880e43df0419ca33fcf9bbef3c93ff + pristine_git_object: 5f852be57657adf40119d74fe5f713529d322c3e 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:0687fa83b0923020379fd4e8e1420bc017fa34b5 + pristine_git_object: 33acc4ed281e4edcf32feadce33d7e48de5a7ddb models/components/feedrequest.go: id: 9f0a682fc981 - last_write_checksum: sha1:199744f59afc71f04dd378ae807f64aac78c9ee9 - pristine_git_object: 1026ad6276c310da5d78954fef3da5c71bb751fb + last_write_checksum: sha1:2bc2655db36ef6d44bc7c41d4580d98f22ae3551 + pristine_git_object: 9b31af8a51b261c9d3c39a942cfb01cfc0d885e4 models/components/feedrequestoptions.go: id: a56c104c989d last_write_checksum: sha1:7f238a9abb079c78202b1a9f65c87b82420f63ec @@ -4266,8 +4476,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:429af1b4c4795790a735e8007a2c904846d1aea3 + pristine_git_object: 601c2f199ad91ce7982a4da025cb21a7d4be7f61 models/components/followupaction.go: id: aba266d23418 last_write_checksum: sha1:0a17407e6beba30680e5c38151e426a5ce7aab76 @@ -4326,8 +4536,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 +4696,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:e44f70d255e38dce3447a9602564224a8cb419f5 + pristine_git_object: 8369c28f11b8d55b2903a241e45189b40699c8db models/components/insightsrequest.go: id: 864d5ff0b637 - last_write_checksum: sha1:10c2b3d25ce68b783f5981548a0e21aa0a43a908 - pristine_git_object: 0584ef8a8bae1e43d8dfb151cab6ee4e303ecedb + last_write_checksum: sha1:d78cfa530757c43883987ac0161e3d259f3003aa + pristine_git_object: 0ff177febbbb7d7b9a142207f049bfd40732ebf7 models/components/insightsresponse.go: id: 83ce7672a5ac last_write_checksum: sha1:ce5a3ab2a80425410db6050a26270c7145a8cd44 pristine_git_object: fc18fb373e3b1e7cdc452f7dd48b590925c6c5df 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 +4734,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 +4794,10 @@ 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/meeting.go: id: 2cd4590b4f60 last_write_checksum: sha1:1030dafde1a5a19baa206aa6ec8d371462fc4ea3 @@ -4622,8 +4840,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 @@ -4784,6 +5002,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 @@ -5022,8 +5244,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:5b2348806a59e8ca4208e832a98489f9ff85ec40 + pristine_git_object: 4e5a6afe011c7b6828653dec4ee73c5bb67ce6cf models/components/unauthorizeddatasourceinstance.go: id: 172020c59199 last_write_checksum: sha1:208f3d9f66716905af4149eb8fa81efc975b5212 @@ -5154,8 +5376,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:9bcb67e2be25de7f926147b71488372d84dd7a89 + pristine_git_object: 6f1342dc9dc64946a4220cf291978f9937e84366 models/components/workflowfeedbackinfo.go: id: b79e4c51cab0 last_write_checksum: sha1:e07ac6f363c804aac890c59603988d5c60ab185b @@ -5188,6 +5410,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 @@ -5292,6 +5518,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 +5546,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 +5570,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 +5582,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 +5606,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 @@ -5430,8 +5676,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 +5730,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 @@ -5596,6 +5846,10 @@ trackedFiles: 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 +5932,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 +5954,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 @@ -5734,16 +5992,16 @@ trackedFiles: pristine_git_object: 575da0cd8ef17be5896fcc5500806aa57b097274 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 @@ -5799,19 +6057,27 @@ trackedFiles: tests/mockserver/internal/handler/generated_handler.go: last_write_checksum: sha1:32101ddff940c59f43a805af303cf645a2bcca0d tests/mockserver/internal/handler/generated_handlers.go: - last_write_checksum: sha1:19821864a3ed96150e35949d5d12e9220cfb6ff6 + last_write_checksum: sha1:02058c10c217df3ec3f564e0dd9b103ac25fea3d + tests/mockserver/internal/handler/pathgetrestapiv1actionsactionpackactionpackidauth.go: + last_write_checksum: sha1:29914fc3785eaf9980aad75324ebece95ad62e10 tests/mockserver/internal/handler/pathgetrestapiv1agentsagentid.go: last_write_checksum: sha1:5210b43a5c1c7157ff57f7140449d82dc622931f tests/mockserver/internal/handler/pathgetrestapiv1agentsagentidschemas.go: last_write_checksum: sha1:a70fc628d284a0c11701c7d69a5d22dfdf118706 + tests/mockserver/internal/handler/pathgetrestapiv1chatfilesfileid.go: + last_write_checksum: sha1:887b475c2bb4766471ef5c168ed08b9333d8cad9 tests/mockserver/internal/handler/pathgetrestapiv1configuredatasourcesdatasourceidinstancesinstanceid.go: last_write_checksum: sha1:be1ef6d303273236aa6b9797453a04bb778cdd62 + tests/mockserver/internal/handler/pathgetrestapiv1datasourcedatasourceinstanceidcredentialstatus.go: + last_write_checksum: sha1:6738c2aab3e1125b511f4eed18ac16c51be2c001 tests/mockserver/internal/handler/pathgetrestapiv1governancedatafindingsexports.go: last_write_checksum: sha1:06b13f04c06621c32cd5d4664612a3804ffc49c2 tests/mockserver/internal/handler/pathgetrestapiv1governancedatapolicies.go: last_write_checksum: sha1:6089d4b8e771bd03d202691f0be1c3a7ed9fb6e8 tests/mockserver/internal/handler/pathgetrestapiv1governancedatapoliciesid.go: last_write_checksum: sha1:08b8057f91f2a800304987937336f033580406df + tests/mockserver/internal/handler/pathgetrestapiv1peoplepersonidphoto.go: + last_write_checksum: sha1:086d9b020ab7cd0e78ed6d28933e95c09b82e498 tests/mockserver/internal/handler/pathgetrestapiv1toolslist.go: last_write_checksum: sha1:8b0d26cd221009e78396ed0c573e78c0ac719e36 tests/mockserver/internal/handler/pathpatchrestapiv1configuredatasourcesdatasourceidinstancesinstanceid.go: @@ -5866,6 +6132,8 @@ trackedFiles: last_write_checksum: sha1:d663a6564269f2894bb75a0b7bb0a98421d25d07 tests/mockserver/internal/handler/pathpostapiindexv1updatepermissions.go: last_write_checksum: sha1:30d3d3c8d634fa56d0510224f26e4538ba76dc89 + tests/mockserver/internal/handler/pathpostrestapiv1actionsactionpackactionpackidauth.go: + last_write_checksum: sha1:6e74488c94c9f19f95861e6b5940457c55078190 tests/mockserver/internal/handler/pathpostrestapiv1activity.go: last_write_checksum: sha1:740b590218da942539e85a585bec78c0777ae934 tests/mockserver/internal/handler/pathpostrestapiv1addcollectionitems.go: @@ -5887,9 +6155,11 @@ trackedFiles: tests/mockserver/internal/handler/pathpostrestapiv1createauthtoken.go: last_write_checksum: sha1:6ce83ba03066acb436796c018d19715615f548c1 tests/mockserver/internal/handler/pathpostrestapiv1createcollection.go: - last_write_checksum: sha1:14b4a1d98dd55ce2b487ae1aaab4a7dece08df25 + last_write_checksum: sha1:f9f4c718408bddadbdf826194f07970bb111e57e tests/mockserver/internal/handler/pathpostrestapiv1createshortcut.go: last_write_checksum: sha1:2f9468a50936c4cb0fb2101d97c1425cb36ba2d4 + tests/mockserver/internal/handler/pathpostrestapiv1datasourcedatasourceinstanceidcredentials.go: + last_write_checksum: sha1:d037020783a24705c0efd9f83310746517d032d5 tests/mockserver/internal/handler/pathpostrestapiv1deleteallchats.go: last_write_checksum: sha1:7342efa7a55bf0d83da3680c9504c5b582c738e4 tests/mockserver/internal/handler/pathpostrestapiv1deleteannouncement.go: @@ -5921,7 +6191,7 @@ trackedFiles: tests/mockserver/internal/handler/pathpostrestapiv1getanswer.go: last_write_checksum: sha1:80bc08894cebfd78f82d3d80f93fd85a11b55d45 tests/mockserver/internal/handler/pathpostrestapiv1getchat.go: - last_write_checksum: sha1:b48e2313407814ee4f8ed181b8e5299a84960c44 + last_write_checksum: sha1:2267292ba8173cf8df70ddbc6ac02ff3439cb879 tests/mockserver/internal/handler/pathpostrestapiv1getchatapplication.go: last_write_checksum: sha1:7b81898137fdb3a89b4dcfa318b9b5b92e8860c0 tests/mockserver/internal/handler/pathpostrestapiv1getchatfiles.go: @@ -5994,6 +6264,12 @@ trackedFiles: last_write_checksum: sha1:af9187f31972ef308fb4bc82de73d6dd71b9fb64 tests/mockserver/internal/logging/oas_operation_call.go: last_write_checksum: sha1:1ec2244b5fc171dfe7e4e339420b2b17f0df48c9 + tests/mockserver/internal/sdk/models/components/actionauthtype.go: + last_write_checksum: sha1:bd904943895ea34005f594e13f12481f96c11286 + tests/mockserver/internal/sdk/models/components/actionpackauthstatus.go: + last_write_checksum: sha1:3782e2b34ee497143dea41e1cfee8e516f2a80eb + tests/mockserver/internal/sdk/models/components/actionpackauthstatusresponse.go: + last_write_checksum: sha1:578df01f6d9f140122c63b6b9b2b01cda1ad6280 tests/mockserver/internal/sdk/models/components/actionsummary.go: last_write_checksum: sha1:32cfaf32c20b96fe223b11c6150435d39c9be8da tests/mockserver/internal/sdk/models/components/activity.go: @@ -6003,7 +6279,7 @@ trackedFiles: tests/mockserver/internal/sdk/models/components/activityeventparams.go: last_write_checksum: sha1:a1b15541d7959aede9843cb777a2fd8b610e70bb tests/mockserver/internal/sdk/models/components/addcollectionitemserror.go: - last_write_checksum: sha1:d3b9af4f6e64c36285dfade93354289a4b38ecd6 + last_write_checksum: sha1:869fdf5cca8dcac2989f9dae882b9e8d7da3c4f3 tests/mockserver/internal/sdk/models/components/addcollectionitemsrequest.go: last_write_checksum: sha1:072fa8f9fcb499a52eaa1eedabe52790b255d7cf tests/mockserver/internal/sdk/models/components/addcollectionitemsresponse.go: @@ -6025,23 +6301,25 @@ trackedFiles: tests/mockserver/internal/sdk/models/components/agentschemas.go: last_write_checksum: sha1:d0cbb79eee354dff93838a2d6525538d440b7ffc tests/mockserver/internal/sdk/models/components/agentsinsightsv2request.go: - last_write_checksum: sha1:5bbebc8109a68e2b22dc0ca044b009a4ff491d1f + last_write_checksum: sha1:7759601379c524537409b44daa7a7a3f36c142b6 tests/mockserver/internal/sdk/models/components/agentsinsightsv2response.go: - last_write_checksum: sha1:37dfa579c66588425502ca91ae07cb9529bebd65 + last_write_checksum: sha1:2bf27d5c4fa4ed8db97d93e983abede54affd688 tests/mockserver/internal/sdk/models/components/agentstimesavedinsight.go: last_write_checksum: sha1:1c07a7a8e8de690de25bddba511878bc5d40a515 tests/mockserver/internal/sdk/models/components/agentsusagebydepartmentinsight.go: last_write_checksum: sha1:21c46d3f5363b157c2e4ee70451c7d0b3e8d77df + tests/mockserver/internal/sdk/models/components/agentusecaseinsight.go: + last_write_checksum: sha1:e7d3ef7ff9b2b85433c788603548074ca5d6233a tests/mockserver/internal/sdk/models/components/agentusersinsight.go: last_write_checksum: sha1:2f737cbf66693fdffffc4d9f30a3f26b09d35eb6 tests/mockserver/internal/sdk/models/components/allowlistoptions.go: last_write_checksum: sha1:db278a11846646ca8794392f2846087d1fba114f tests/mockserver/internal/sdk/models/components/announcement.go: - last_write_checksum: sha1:73643c448e9758eca5d2ef21e89e61f81e922d76 + last_write_checksum: sha1:038cda5de3f5d66db97e95c8a838f3c1a14bf265 tests/mockserver/internal/sdk/models/components/anonymousevent.go: last_write_checksum: sha1:0b48a4942a454618f0b0f16047396d8354b1b90e tests/mockserver/internal/sdk/models/components/answer.go: - last_write_checksum: sha1:cb63350f5c0c0e0914fdf22fbf2edbfcd70d4c71 + last_write_checksum: sha1:5bde5e290cf6af6e0f9d82d0ba053f0f2bd35e7e tests/mockserver/internal/sdk/models/components/answercreationdata.go: last_write_checksum: sha1:249e06425fd059c0b7d11078f1fabb9a66fe0e8c tests/mockserver/internal/sdk/models/components/answerlike.go: @@ -6049,13 +6327,17 @@ trackedFiles: tests/mockserver/internal/sdk/models/components/answerlikes.go: last_write_checksum: sha1:512d5f73f8d017b70e9f799a9aaafabf5e40bf1c tests/mockserver/internal/sdk/models/components/answerresult.go: - last_write_checksum: sha1:f865dd4aa0c0e51c8c0676fff89bfbfe76c355db + last_write_checksum: sha1:3b909c9aaa8337bfa3d5397d17d8f0e4305d4a2a tests/mockserver/internal/sdk/models/components/appresult.go: last_write_checksum: sha1:5d7841e6270918e5e1b59873c394d8a0b2eb1bc9 tests/mockserver/internal/sdk/models/components/assistantinsightsresponse.go: - last_write_checksum: sha1:1646bc05ef8352596a60c567dd6c437008d79e31 + last_write_checksum: sha1:cf4bf37d272fba27bfe92b0f3e39f073550a4fb0 tests/mockserver/internal/sdk/models/components/authconfig.go: last_write_checksum: sha1:e9e386e4a0c3ea918f1a2b332f91a129d77ac307 + tests/mockserver/internal/sdk/models/components/authorizeactionpackrequest.go: + last_write_checksum: sha1:4c85e9cc50180f07d2857be440bae9f465f5f468 + tests/mockserver/internal/sdk/models/components/authorizeactionpackresponse.go: + last_write_checksum: sha1:2a458d0fb35074c83cd5dc41543c300942f5b7e5 tests/mockserver/internal/sdk/models/components/authstatus.go: last_write_checksum: sha1:ca2727d0dcddf2ee072f3b26529d2952d7e72a21 tests/mockserver/internal/sdk/models/components/authtoken.go: @@ -6143,9 +6425,9 @@ trackedFiles: tests/mockserver/internal/sdk/models/components/codeline.go: last_write_checksum: sha1:408c1ae5131cd47cd23e5d000f09b6e5abb37490 tests/mockserver/internal/sdk/models/components/collection.go: - last_write_checksum: sha1:12056f9bd68eae6ff3f19b5d3c62d03d853e9f7d + last_write_checksum: sha1:160595e0533f3727c86ea12c1dc5a40390d96096 tests/mockserver/internal/sdk/models/components/collectionerror.go: - last_write_checksum: sha1:41ffdb13b05cb13821d7c16e10d5cce4d207e533 + last_write_checksum: sha1:af5d0f2a4ae7be15beee13a00917ea8b5fd616a9 tests/mockserver/internal/sdk/models/components/collectionitem.go: last_write_checksum: sha1:ad1782147347847dd4703268d9bcaeb3c2aa201b tests/mockserver/internal/sdk/models/components/collectionitemdescriptor.go: @@ -6195,7 +6477,7 @@ trackedFiles: tests/mockserver/internal/sdk/models/components/createshortcutresponse.go: last_write_checksum: sha1:aa8fbfc7682edb55f79cd9e241d9795d4c8579ea tests/mockserver/internal/sdk/models/components/currentactiveusers.go: - last_write_checksum: sha1:17848a68125b3da6593d232146557b0dc6ae144a + last_write_checksum: sha1:4c876d24b835be3c5975308c132a4599bc11a71a tests/mockserver/internal/sdk/models/components/customdatasourceconfig.go: last_write_checksum: sha1:5cb7123d955c9782fec8f8c70570d77a0712d08d tests/mockserver/internal/sdk/models/components/customdatavalue.go: @@ -6230,6 +6512,10 @@ trackedFiles: last_write_checksum: sha1:7461564626030cdc092d351d101243469e0cf16a tests/mockserver/internal/sdk/models/components/datasourceconfigurationresponse.go: last_write_checksum: sha1:0e571c4aab6d7ed0f03e2d834369353cdf4b82d3 + tests/mockserver/internal/sdk/models/components/datasourcecredentialstatus.go: + last_write_checksum: sha1:90d1b895e332bd5c6ff3c7b40ac56cb3a8bba56f + tests/mockserver/internal/sdk/models/components/datasourcecredentialstatusresponse.go: + last_write_checksum: sha1:b1a2021160824873379267afaf77f2b1097e9b6f tests/mockserver/internal/sdk/models/components/datasourcegroupdefinition.go: last_write_checksum: sha1:7901f25f2a1b52801631df10246ed50357d37837 tests/mockserver/internal/sdk/models/components/datasourceinstanceconfiguration.go: @@ -6246,6 +6532,10 @@ trackedFiles: last_write_checksum: sha1:f6f3c52b7b1a6be8ee1c0ca86ebd6f97ba4f136a tests/mockserver/internal/sdk/models/components/debugdatasourcestatusresponse.go: last_write_checksum: sha1:0a49cda4545fbe83a365f0d35e47fe3f4aa86247 + tests/mockserver/internal/sdk/models/components/debugdocumentlifecyclerequest.go: + last_write_checksum: sha1:af5b062925d5b00f4e54c32f3634b4ba2ac8cb47 + tests/mockserver/internal/sdk/models/components/debugdocumentlifecycleresponse.go: + last_write_checksum: sha1:d8c90e229ff15d6e0f26890d80d2cb40473405ba tests/mockserver/internal/sdk/models/components/debugdocumentrequest.go: last_write_checksum: sha1:5b299213bc4d94dcdbc7d20bd106eeb11b127f4c tests/mockserver/internal/sdk/models/components/debugdocumentresponse.go: @@ -6359,9 +6649,11 @@ trackedFiles: tests/mockserver/internal/sdk/models/components/editcollectionrequest.go: last_write_checksum: sha1:f201e2c36501bd5765225de622e8be83bb73296a tests/mockserver/internal/sdk/models/components/editcollectionresponse.go: - last_write_checksum: sha1:5be12d63cd7d11c81ebe23f7bf1a43d41bfc7e38 + last_write_checksum: sha1:1b50a116c74acbe6f304f4541d3741669923d707 tests/mockserver/internal/sdk/models/components/editpinrequest.go: last_write_checksum: sha1:fb86074a6869523e05e6e3ac02f08da3ee21dc5b + tests/mockserver/internal/sdk/models/components/editworkflowrequest.go: + last_write_checksum: sha1:619a1ec45aaf5de635c7e5b8c5afe3feb50c1940 tests/mockserver/internal/sdk/models/components/employeeinfodefinition.go: last_write_checksum: sha1:f1eeb77d277fe939ed396f91341bed042c3e07e5 tests/mockserver/internal/sdk/models/components/employeeteaminfo.go: @@ -6405,19 +6697,19 @@ trackedFiles: tests/mockserver/internal/sdk/models/components/favoriteinfo.go: last_write_checksum: sha1:64a199091535bec155fa46cd3022c50574f8e329 tests/mockserver/internal/sdk/models/components/feedback.go: - last_write_checksum: sha1:0ace13f3aea5502c4b169f1ea633d10c7b791d56 + last_write_checksum: sha1:5c4b638c0c4d37e908ebca2eccf9128f08546096 tests/mockserver/internal/sdk/models/components/feedbackchatexchange.go: last_write_checksum: sha1:59418d4b2dc683c810308022eade51a8894ab3b0 tests/mockserver/internal/sdk/models/components/feedentry.go: - last_write_checksum: sha1:a99ce1279f66a52476d400921e69d37abed2c283 + last_write_checksum: sha1:ddb5b707132e985c0605740f5a6e9464fa055f6a tests/mockserver/internal/sdk/models/components/feedrequest.go: - last_write_checksum: sha1:ee94cd67bcfc3881a07dded1fa906f058e5bc82c + last_write_checksum: sha1:4a06e95d21a9abd4c4e941bd681b9ce6ba07f8e3 tests/mockserver/internal/sdk/models/components/feedrequestoptions.go: last_write_checksum: sha1:fa30b7fd6ee3e45896d7bbe36e33e7c0cb9000ba tests/mockserver/internal/sdk/models/components/feedresponse.go: last_write_checksum: sha1:f6f77be921621cf1a133463043fc1871533e2e22 tests/mockserver/internal/sdk/models/components/feedresult.go: - last_write_checksum: sha1:aca6ac6c9624912587232ca30b5fd4997b865c30 + last_write_checksum: sha1:85e7b8f393de79ed53155b543f85969097912386 tests/mockserver/internal/sdk/models/components/followupaction.go: last_write_checksum: sha1:32a31f7af77a58ce6f3284e8550d01fcf0d3bddd tests/mockserver/internal/sdk/models/components/generatedattachment.go: @@ -6447,7 +6739,7 @@ trackedFiles: tests/mockserver/internal/sdk/models/components/getcollectionrequest.go: last_write_checksum: sha1:f4213443c174441aca4924c764bb5bdf9d500653 tests/mockserver/internal/sdk/models/components/getcollectionresponse.go: - last_write_checksum: sha1:0839c84f2a8111d9d66a65c1d736fb2092d48822 + last_write_checksum: sha1:a016fa2a8c1668cd2a9e37bd4b461e48cee61bf4 tests/mockserver/internal/sdk/models/components/getdatasourceconfigrequest.go: last_write_checksum: sha1:8c4922eef911b0ac609b55bb3db3b20ad4dae298 tests/mockserver/internal/sdk/models/components/getdlpreportresponse.go: @@ -6527,25 +6819,27 @@ trackedFiles: tests/mockserver/internal/sdk/models/components/inputoptions.go: last_write_checksum: sha1:80d7508aa49da639f53def509fb1300d50b27a45 tests/mockserver/internal/sdk/models/components/insightsassistantrequest.go: - last_write_checksum: sha1:eac843a444bc1a4407ac673f756bb9684564aef7 + last_write_checksum: sha1:e420017f2d5df6e11b16e57611253957ccf470dc tests/mockserver/internal/sdk/models/components/insightschatsummary.go: - last_write_checksum: sha1:bc7bb408c578673cad60c321487c0804e0600dd6 + last_write_checksum: sha1:40fe8e7f03b21f4f1790491c48a65dba9e3514bd tests/mockserver/internal/sdk/models/components/insightsoverviewrequest.go: - last_write_checksum: sha1:f41a223c0da4e4edee140cdd8a7697a45969a239 + last_write_checksum: sha1:1e607db283c6a0395011c9482508d3ad5544b44e tests/mockserver/internal/sdk/models/components/insightsoverviewresponse.go: - last_write_checksum: sha1:926270f59a7276459f6efea061ad9d0a5fd0d857 + last_write_checksum: sha1:8115386100ef8c626189f684215c8b1f04721b78 tests/mockserver/internal/sdk/models/components/insightsrequest.go: - last_write_checksum: sha1:f8bb4f19bca0be78fec51bf4d8e90d29ad25b940 + last_write_checksum: sha1:f85f626b0a21bbf9c5c130d7643da560a7ca852b tests/mockserver/internal/sdk/models/components/insightsresponse.go: last_write_checksum: sha1:f691027ad483a3268a91961f6313983b385abb51 tests/mockserver/internal/sdk/models/components/insightssearchsummary.go: - last_write_checksum: sha1:7640f939a1f08bb1d3ed16361412801cad2c9d48 + last_write_checksum: sha1:d8593121130c17b11118c88686aedf7a004503c3 tests/mockserver/internal/sdk/models/components/invalidoperatorvalueerror.go: last_write_checksum: sha1:6e8e407afa9e6caf4bc946a51054037a0b64100f tests/mockserver/internal/sdk/models/components/inviteinfo.go: last_write_checksum: sha1:a34f4007a255687f057ad9d07c76096ffc122a99 tests/mockserver/internal/sdk/models/components/labeledcountinfo.go: last_write_checksum: sha1:93763fcdc7d3a1e7b6ffc5cfc2e77fe7270e736d + tests/mockserver/internal/sdk/models/components/lifecycleevent.go: + last_write_checksum: sha1:a6c849e86ad63b7dfeff2752a28f5bbb40be1d06 tests/mockserver/internal/sdk/models/components/listanswersrequest.go: last_write_checksum: sha1:0a4be0587f8647a1c4f6702a256e8b6849a1234b tests/mockserver/internal/sdk/models/components/listanswersresponse.go: @@ -6574,6 +6868,8 @@ trackedFiles: last_write_checksum: sha1:354a117e44a667479f91bd5969a6caa22a948e95 tests/mockserver/internal/sdk/models/components/manualfeedbacksidebysideinfo.go: last_write_checksum: sha1:9c066d47590c5ee9823f57a51466268e2893a13b + tests/mockserver/internal/sdk/models/components/mcpbreakdowninsightsrequest.go: + last_write_checksum: sha1:70341128cd46d9472de34bd3d58ac377f37d2580 tests/mockserver/internal/sdk/models/components/meeting.go: last_write_checksum: sha1:3cf5bc5fd2b5a40c545bfe1d9f768a98c3360d11 tests/mockserver/internal/sdk/models/components/message.go: @@ -6595,7 +6891,7 @@ trackedFiles: tests/mockserver/internal/sdk/models/components/peopleresponse.go: last_write_checksum: sha1:370070abc7236a46218b5d2eeb74f00a4a082aba tests/mockserver/internal/sdk/models/components/peragentinsight.go: - last_write_checksum: sha1:2589f47e3230b4acac344d2a6898e1e01b9d70fb + last_write_checksum: sha1:a2a967c60dd0334daa9cd8176282c81176887c6d tests/mockserver/internal/sdk/models/components/period.go: last_write_checksum: sha1:dd7b20879b387cbdb3a38113398daeee9f09c4ff tests/mockserver/internal/sdk/models/components/permissions.go: @@ -6676,6 +6972,8 @@ trackedFiles: last_write_checksum: sha1:11f1bf56e8b41e71b3b458d39f4a18b9ad7ae0e3 tests/mockserver/internal/sdk/models/components/resulttab.go: last_write_checksum: sha1:0c61e42fad9332219ca1e3642fb386c3cf9228ad + tests/mockserver/internal/sdk/models/components/rotatedatasourcecredentialsrequest.go: + last_write_checksum: sha1:142794daff76893b8a56e02aa1a480e3257f4c3f tests/mockserver/internal/sdk/models/components/rotatetokenresponse.go: last_write_checksum: sha1:669e30d5f7f5fb79cbae3f949a18347caaacfb2c tests/mockserver/internal/sdk/models/components/scopetype.go: @@ -6795,7 +7093,7 @@ trackedFiles: tests/mockserver/internal/sdk/models/components/toolslistresponse.go: last_write_checksum: sha1:12c38931f0f2810e038e30a743845a97b876d03c tests/mockserver/internal/sdk/models/components/ugctype.go: - last_write_checksum: sha1:d8c8ca33947ffdca4a7b8a9ecb00379fa15624b0 + last_write_checksum: sha1:80946db3c430b7189d55eeafc684285390642c30 tests/mockserver/internal/sdk/models/components/unauthorizeddatasourceinstance.go: last_write_checksum: sha1:39fb84396b33bc645fb5e6ebcea36ab88b5db179 tests/mockserver/internal/sdk/models/components/unpin.go: @@ -6861,7 +7159,7 @@ trackedFiles: tests/mockserver/internal/sdk/models/components/viewerinfo.go: last_write_checksum: sha1:bf5d4b48cfa2e68cc2b2b7c47d1f0668d18e1b56 tests/mockserver/internal/sdk/models/components/workflow.go: - last_write_checksum: sha1:7acd3b72508c37b20f0e5f633e4ea14b3df1f874 + last_write_checksum: sha1:faa52946a99d64c4d7e468e76bf44ef33f094bb2 tests/mockserver/internal/sdk/models/components/workflowfeedbackinfo.go: last_write_checksum: sha1:6723c2b80df391bab5e91b8ac23f9ca4938665f7 tests/mockserver/internal/sdk/models/components/workflowresult.go: @@ -6878,6 +7176,8 @@ trackedFiles: last_write_checksum: sha1:cd6a0cbf098c64d2873723c6db34d4d104aafee4 tests/mockserver/internal/sdk/models/operations/adminsearch.go: last_write_checksum: sha1:8349967c39c2200f8b798379f9d601234dd0ea08 + tests/mockserver/internal/sdk/models/operations/authorizeactionpack.go: + last_write_checksum: sha1:c78c40c14e10717246e43461e2168240ccbb6a52 tests/mockserver/internal/sdk/models/operations/autocomplete.go: last_write_checksum: sha1:242f4ac0044ef328043fc3a5d0effdeccb7f291f tests/mockserver/internal/sdk/models/operations/chat.go: @@ -6930,6 +7230,8 @@ trackedFiles: last_write_checksum: sha1:f3ba004b4b770392d747b21d15fd09be91c096f0 tests/mockserver/internal/sdk/models/operations/downloadreportcsv.go: last_write_checksum: sha1:5be47a665f15ebd67c3ccb0be070936ac3f0a04b + tests/mockserver/internal/sdk/models/operations/editagent.go: + last_write_checksum: sha1:399ba5ffdca374600a2e89d3613158fb8e050a48 tests/mockserver/internal/sdk/models/operations/editanswer.go: last_write_checksum: sha1:6319063f92d2532ab663554171253c25f7b0f865 tests/mockserver/internal/sdk/models/operations/editcollection.go: @@ -6942,6 +7244,8 @@ trackedFiles: last_write_checksum: sha1:5cc00b3895c2391dab6e7706a97903ed226c8f10 tests/mockserver/internal/sdk/models/operations/feedback.go: last_write_checksum: sha1:7d5a51aed8eacae15096b90250b2a35f647b45ac + tests/mockserver/internal/sdk/models/operations/getactionpackauthstatus.go: + last_write_checksum: sha1:59f683b0141feca6a0db93cdbc99d977c0d0b481 tests/mockserver/internal/sdk/models/operations/getagent.go: last_write_checksum: sha1:97fa8b77eab495bb56cda7e91667fd77d8567faa tests/mockserver/internal/sdk/models/operations/getagentschemas.go: @@ -6952,10 +7256,14 @@ trackedFiles: last_write_checksum: sha1:830d4df2089c82c236e71784eb380eb58c1e2ec0 tests/mockserver/internal/sdk/models/operations/getchatapplication.go: last_write_checksum: sha1:8f6f58e46b6e1ac9a5172dfdc09f28446335dd25 + tests/mockserver/internal/sdk/models/operations/getchatfile.go: + last_write_checksum: sha1:1a218e7e0b4de008c5bb4947aa1ff1b6019b6589 tests/mockserver/internal/sdk/models/operations/getchatfiles.go: last_write_checksum: sha1:b9331fcb429d8bb22487234f7fa3627ee91b21f9 tests/mockserver/internal/sdk/models/operations/getcollection.go: last_write_checksum: sha1:758de3276a51cb9ef5e2bc09d8e689a95ff4fc53 + tests/mockserver/internal/sdk/models/operations/getdatasourcecredentialstatus.go: + last_write_checksum: sha1:2943041f083244fbccda983df0a06ee0d04031eb tests/mockserver/internal/sdk/models/operations/getdatasourceinstanceconfiguration.go: last_write_checksum: sha1:1570d25442383d4a4d95f8e55ffc0f6c426f683e tests/mockserver/internal/sdk/models/operations/getdocpermissions.go: @@ -6966,6 +7274,8 @@ trackedFiles: last_write_checksum: sha1:d4bf58f85d349c021ec670d2a7fc308e13c64a11 tests/mockserver/internal/sdk/models/operations/getdocvisibility.go: last_write_checksum: sha1:5402b1db287c42416c4f4aea7768be3d562f42c9 + tests/mockserver/internal/sdk/models/operations/getpersonphoto.go: + last_write_checksum: sha1:5d1aac3d1f32842d4855f0278d7602ac5723c3dd tests/mockserver/internal/sdk/models/operations/getpin.go: last_write_checksum: sha1:7bf799aefdcb8165fe3fe2d5a756a0fa7b2251dc tests/mockserver/internal/sdk/models/operations/getpolicy.go: @@ -7024,6 +7334,8 @@ trackedFiles: last_write_checksum: sha1:f00c6615010a5d00bbab9188dbdfea578bdedac5 tests/mockserver/internal/sdk/models/operations/postapiindexv1debugdatasourcedocument.go: last_write_checksum: sha1:3e6d9847f34b084afaa15e0358ca2f0fbd6f761a + tests/mockserver/internal/sdk/models/operations/postapiindexv1debugdatasourcedocumentevents.go: + last_write_checksum: sha1:f989e66a6ee1143f9e068974ef6383c78e5fd01a tests/mockserver/internal/sdk/models/operations/postapiindexv1debugdatasourcedocuments.go: last_write_checksum: sha1:32dcdcf2c32961719a7ebeba45c06291c31c5d3b tests/mockserver/internal/sdk/models/operations/postapiindexv1debugdatasourcestatus.go: @@ -7080,6 +7392,8 @@ trackedFiles: last_write_checksum: sha1:a598e25aef310bd7c8c7c37987899e6f88e918f9 tests/mockserver/internal/sdk/models/operations/recommendations.go: last_write_checksum: sha1:6ae07252753671a40f928d93b959ea0403154494 + tests/mockserver/internal/sdk/models/operations/rotatedatasourcecredentials.go: + last_write_checksum: sha1:e3ba704236a66ebc3e5c3d36865df95bae4620e9 tests/mockserver/internal/sdk/models/operations/search.go: last_write_checksum: sha1:8ebd0389fc5b227f30ce9e4ff19b12516c4b5329 tests/mockserver/internal/sdk/models/operations/searchagents.go: @@ -7172,16 +7486,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:6da9f736fef20def1b16946fe93d02a1c5cb94ec + pristine_git_object: 4bfe1645d67bb70c7dc680bf793b2c4d9ae38d2f 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 +7506,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 +7843,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"}}]}} messages: speakeasy-default-messages: requestBody: @@ -7991,6 +8309,83 @@ 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"} + 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 +8534,13 @@ generatedTests: checkdatasourceauth: "2026-02-19T15:51:40Z" getDatasourceInstanceConfiguration: "2026-03-09T18:37:01Z" updateDatasourceInstanceConfiguration: "2026-03-09T18:37:01Z" + getChatFile: "2026-05-13T02:46:13Z" + getPersonPhoto: "2026-05-13T02:46:13Z" + getActionPackAuthStatus: "2026-05-13T02:46:13Z" + authorizeActionPack: "2026-05-13T02:46:13Z" + getDatasourceCredentialStatus: "2026-05-13T02:46:13Z" + rotateDatasourceCredentials: "2026-05-13T02:46:13Z" +releaseNotes: "## Go SDK Changes:\n* `Glean.Client.Collections.AddItems()`: `response` **Changed** (Breaking ⚠️)\n* `Glean.Client.Collections.Retrieve()`: `response` **Changed**\n* `Glean.Client.Answers.List()`: `response.AnswerResults[].Answer` **Changed**\n* `Glean.Tools.GetActionPackAuthStatus()`: **Added**\n* `Glean.Tools.AuthorizeActionPack()`: **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.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.Chat.GetChatFile()`: **Added**\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.Agents.EditAgent()`: **Added**\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.Entities.GetPersonPhoto()`: **Added**\n* `Glean.Client.Collections.UpdateItem()`: `response.Collection` **Changed**\n* `Glean.Client.Pins.List()`: `response.Pins[].Attribution.RelatedDocuments[]` **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.Collections.List()`: `response.Collections[]` **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..f5bae5dc 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: f92939fdba66a05a4e772c1baf450600181ccffd 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: 647eaa38c051fec5593ab69cfdbc89e96fe5932f 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,44 @@ 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/v1/governance/data/policies/{id}: get: operationId: getpolicy @@ -4014,6 +4264,93 @@ paths: 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: | + 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/datasourceInstanceId' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RotateDatasourceCredentialsRequest' + required: true + 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/chat#stream: post: tags: @@ -5636,6 +5973,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 +6263,7 @@ components: allOf: - $ref: "#/components/schemas/CollectionMutableProperties" - $ref: "#/components/schemas/PermissionedObject" + - $ref: "#/components/schemas/UgcTrackingSignals" - type: object required: - id @@ -6062,6 +6406,7 @@ components: - $ref: "#/components/schemas/AnswerDocId" - $ref: "#/components/schemas/AnswerMutableProperties" - $ref: "#/components/schemas/PermissionedObject" + - $ref: "#/components/schemas/UgcTrackingSignals" - type: object required: - id @@ -7571,6 +7916,7 @@ components: - $ref: "#/components/schemas/AnnouncementMutableProperties" - $ref: "#/components/schemas/DraftProperties" - $ref: "#/components/schemas/PermissionedObject" + - $ref: "#/components/schemas/UgcTrackingSignals" - type: object properties: id: @@ -7681,7 +8027,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 +8859,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 +9080,7 @@ components: type: string enum: - EXISTING_ITEM + - CORRUPT_ITEM AddCollectionItemsResponse: properties: collection: @@ -8738,6 +9110,7 @@ components: - HEIGHT_VIOLATION - WIDTH_VIOLATION - NO_PERMISSIONS + - CORRUPT_ITEM CreateCollectionResponse: allOf: - type: object @@ -8843,11 +9216,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 +9340,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 +9355,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 +9375,57 @@ 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. + 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 +9440,8 @@ components: $ref: "#/components/schemas/AgentsInsightsV2Request" x-visibility: Public description: If specified, will return data for the Agents 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 +9492,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" @@ -9286,6 +9726,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 +9846,10 @@ components: type: array items: $ref: "#/components/schemas/PerAgentInsight" + topUseCasesInsights: + type: array + items: + $ref: "#/components/schemas/AgentUseCaseInsight" agentsUsageByDepartmentInsights: type: array items: @@ -10192,11 +10667,15 @@ 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 description: Categories of content requested. An allowlist gives flexibility to request content separately or together. requestOptions: $ref: "#/components/schemas/FeedRequestOptions" @@ -10533,6 +11012,7 @@ components: - SHORTCUTS_TYPE - SLIDE_TYPE - SPREADSHEET_TYPE + - INLINE_HTML_TYPE - WORKFLOWS_TYPE FavoriteInfo: type: object @@ -10562,16 +11042,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 +11057,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: @@ -10702,11 +11178,15 @@ 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 description: Type of the justification. justification: type: string @@ -10785,11 +11265,15 @@ 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 description: Category of the result, one of the requested categories in incoming request. primaryEntry: $ref: "#/components/schemas/FeedEntry" @@ -11361,6 +11845,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: @@ -13841,6 +14378,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 @@ -13914,6 +14491,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..46d278ad 100644 --- a/.speakeasy/tests.arazzo.yaml +++ b/.speakeasy/tests.arazzo.yaml @@ -164345,3 +164345,115 @@ 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: 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..8d77c819 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.761.8 +speakeasyVersion: 1.762.0 sources: Glean API: sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:5fafd8224d41224b85cbb5f39c686e5da647fadcd8211bc9fae3c0834341dae6 - sourceBlobDigest: sha256:884a6119e9d59c15d47e169eaa496571dae1c106d390990aee38a25cb51e42c3 + sourceRevisionDigest: sha256:d6aa6c50e6dd95660ecb0d4ea2a72f133c2cca5eb46eab186dccc95898121c89 + sourceBlobDigest: sha256:ad9a48f076d5ed16a30b1e29c4fdfd71564c36ab3136b2138c140ae69af439ef 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:d6aa6c50e6dd95660ecb0d4ea2a72f133c2cca5eb46eab186dccc95898121c89 + sourceBlobDigest: sha256:ad9a48f076d5ed16a30b1e29c4fdfd71564c36ab3136b2138c140ae69af439ef codeSamplesNamespace: glean-api-specs-go-code-samples - codeSamplesRevisionDigest: sha256:70b5bfe17cdf1e49dfbd9e43433e1f59ffdb24fafb63f801d7ddce32ab42e9ad + codeSamplesRevisionDigest: sha256:4033b30cf4501b97cee5dc1f31ba030f6d16d03fc98b53a715c88d56a85bc74b petstore: source: petstore-oas sourceNamespace: petstore-oas diff --git a/README.md b/README.md index cb77b8ac..c3b8404a 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) @@ -458,6 +472,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 + +
diff --git a/RELEASES.md b/RELEASES.md index e304650b..385b622e 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-05-13 02:42:56 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.762.0 (2.882.0) 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/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/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/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/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/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..839cc3f0 100644 --- a/docs/models/components/feedrequestcategory.md +++ b/docs/models/components/feedrequestcategory.md @@ -46,8 +46,12 @@ 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 | \ No newline at end of file diff --git a/docs/models/components/feedresultcategory.md b/docs/models/components/feedresultcategory.md index f5399635..949126db 100644 --- a/docs/models/components/feedresultcategory.md +++ b/docs/models/components/feedresultcategory.md @@ -51,8 +51,12 @@ 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 | \ 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..22445dfe 100644 --- a/docs/models/components/insightsoverviewresponse.md +++ b/docs/models/components/insightsoverviewresponse.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. | | `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. | diff --git a/docs/models/components/insightsrequest.md b/docs/models/components/insightsrequest.md index 40af7932..7bbd003f 100644 --- a/docs/models/components/insightsrequest.md +++ b/docs/models/components/insightsrequest.md @@ -3,9 +3,10 @@ ## 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 | +| `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/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..b1ee36ed 100644 --- a/docs/models/components/justificationtype.md +++ b/docs/models/components/justificationtype.md @@ -64,8 +64,12 @@ 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 | \ 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/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/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/ugctype.md b/docs/models/components/ugctype.md index ab33bae4..e6a04259 100644 --- a/docs/models/components/ugctype.md +++ b/docs/models/components/ugctype.md @@ -35,4 +35,5 @@ custom := components.UgcType("custom_value") | `UgcTypeShortcutsType` | SHORTCUTS_TYPE | | `UgcTypeSlideType` | SLIDE_TYPE | | `UgcTypeSpreadsheetType` | SPREADSHEET_TYPE | +| `UgcTypeInlineHTMLType` | INLINE_HTML_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..312e5ed6 100644 --- a/docs/models/components/workflow.md +++ b/docs/models/components/workflow.md @@ -3,13 +3,15 @@ ## 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. | | \ 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/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/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/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/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..cbc05b54 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.882.0 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.882.0 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/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/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/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..5f852be5 100644 --- a/models/components/feedback.go +++ b/models/components/feedback.go @@ -66,79 +66,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 +207,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 +248,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 +310,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..33acc4ed 100644 --- a/models/components/feedentry.go +++ b/models/components/feedentry.go @@ -100,11 +100,15 @@ 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" ) func (e JustificationType) ToPointer() *JustificationType { @@ -115,7 +119,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": return true } } diff --git a/models/components/feedrequest.go b/models/components/feedrequest.go index 1026ad62..9b31af8a 100644 --- a/models/components/feedrequest.go +++ b/models/components/feedrequest.go @@ -41,11 +41,15 @@ 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" ) func (e FeedRequestCategory) ToPointer() *FeedRequestCategory { @@ -119,6 +123,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 +133,13 @@ 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": *e = FeedRequestCategory(v) return nil default: diff --git a/models/components/feedresult.go b/models/components/feedresult.go index 3d75af04..601c2f19 100644 --- a/models/components/feedresult.go +++ b/models/components/feedresult.go @@ -37,11 +37,15 @@ 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" ) func (e FeedResultCategory) ToPointer() *FeedResultCategory { @@ -52,7 +56,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": 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..8369c28f 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"` diff --git a/models/components/insightsrequest.go b/models/components/insightsrequest.go index 0584ef8a..0ff177fe 100644 --- a/models/components/insightsrequest.go +++ b/models/components/insightsrequest.go @@ -3,9 +3,10 @@ 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"` + 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 +32,13 @@ func (i *InsightsRequest) GetAgentsRequest() *AgentsInsightsV2Request { return i.AgentsRequest } +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/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/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/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/ugctype.go b/models/components/ugctype.go index 10dc1c6f..4e5a6afe 100644 --- a/models/components/ugctype.go +++ b/models/components/ugctype.go @@ -22,6 +22,7 @@ const ( UgcTypeShortcutsType UgcType = "SHORTCUTS_TYPE" UgcTypeSlideType UgcType = "SLIDE_TYPE" UgcTypeSpreadsheetType UgcType = "SPREADSHEET_TYPE" + UgcTypeInlineHTMLType UgcType = "INLINE_HTML_TYPE" UgcTypeWorkflowsType UgcType = "WORKFLOWS_TYPE" ) @@ -33,7 +34,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", "WORKFLOWS_TYPE": return true } } diff --git a/models/components/workflow.go b/models/components/workflow.go index 7be34f84..6f1342dc 100644 --- a/models/components/workflow.go +++ b/models/components/workflow.go @@ -11,9 +11,12 @@ 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"` } @@ -53,6 +56,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 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/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/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/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/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/internal/handler/generated_handlers.go b/tests/mockserver/internal/handler/generated_handlers.go index 4eaa2afa..5b6ed364 100644 --- a/tests/mockserver/internal/handler/generated_handlers.go +++ b/tests/mockserver/internal/handler/generated_handlers.go @@ -12,12 +12,16 @@ import ( // GeneratedHandlers returns all generated handlers. func GeneratedHandlers(ctx context.Context, dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) []*GeneratedHandler { return []*GeneratedHandler{ + 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 +49,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 +62,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)), 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/pathpostrestapiv1createcollection.go b/tests/mockserver/internal/handler/pathpostrestapiv1createcollection.go index 371b9023..5c99a0ad 100644 --- a/tests/mockserver/internal/handler/pathpostrestapiv1createcollection.go +++ b/tests/mockserver/internal/handler/pathpostrestapiv1createcollection.go @@ -56,14 +56,14 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ operations.ResponseBody2{ Collection: &components.Collection{ Name: "", - Description: "whole busily jive hawk gee basic minus hence", + Description: "motionless whenever paintwork import over cuckoo", AddedRoles: []components.UserRoleSpecification{ components.UserRoleSpecification{ Person: &components.Person{ Name: "George Clooney", ObfuscatedID: "abc123", }, - Role: components.UserRoleAnswerModerator, + Role: components.UserRoleOwner, }, }, RemovedRoles: []components.UserRoleSpecification{ @@ -90,7 +90,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ }, }, }, - ID: 158969, + ID: 363711, Creator: &components.Person{ Name: "George Clooney", ObfuscatedID: "abc123", @@ -101,7 +101,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ }, Items: []components.CollectionItem{ components.CollectionItem{ - CollectionID: 110375, + CollectionID: 570197, CreatedBy: &components.Person{ Name: "George Clooney", ObfuscatedID: "abc123", @@ -266,13 +266,13 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ Name: "George Clooney", ObfuscatedID: "abc123", }, - Role: components.UserRoleEditor, + Role: components.UserRoleAnswerModerator, }, }, }, Collection: &components.Collection{ Name: "", - Description: "wedge colorfully orientate rally", + Description: "athwart skateboard newsstand farm bourgeoisie ah how elliptical aha well-to-do", AudienceFilters: []components.FacetFilter{ components.FacetFilter{ FieldName: types.String("type"), @@ -288,7 +288,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ }, }, }, - ID: 131797, + ID: 643990, Creator: &components.Person{ Name: "George Clooney", ObfuscatedID: "abc123", @@ -300,7 +300,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ Children: []components.Collection{ components.Collection{ Name: "", - Description: "outside yippee sidetrack mature regularly mouser inject worth", + Description: "woot purse salty even as advanced", AudienceFilters: []components.FacetFilter{ components.FacetFilter{ FieldName: types.String("type"), @@ -316,7 +316,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ }, }, }, - ID: 149448, + ID: 359978, Creator: &components.Person{ Name: "George Clooney", ObfuscatedID: "abc123", @@ -328,7 +328,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ }, }, }, - ItemType: components.CollectionItemItemTypeCollection, + ItemType: components.CollectionItemItemTypeURL, }, }, }, 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/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/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/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..a5d1ba18 100644 --- a/tests/mockserver/internal/sdk/models/components/feedback.go +++ b/tests/mockserver/internal/sdk/models/components/feedback.go @@ -66,48 +66,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 +176,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 +217,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 +279,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..7d39e7b3 100644 --- a/tests/mockserver/internal/sdk/models/components/feedentry.go +++ b/tests/mockserver/internal/sdk/models/components/feedentry.go @@ -100,11 +100,15 @@ 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" ) func (e JustificationType) ToPointer() *JustificationType { @@ -204,6 +208,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 +218,13 @@ 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": *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..2d13b7e1 100644 --- a/tests/mockserver/internal/sdk/models/components/feedrequest.go +++ b/tests/mockserver/internal/sdk/models/components/feedrequest.go @@ -41,11 +41,15 @@ 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" ) func (e FeedRequestCategory) ToPointer() *FeedRequestCategory { @@ -119,6 +123,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 +133,13 @@ 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": *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..3b247e2d 100644 --- a/tests/mockserver/internal/sdk/models/components/feedresult.go +++ b/tests/mockserver/internal/sdk/models/components/feedresult.go @@ -42,11 +42,15 @@ 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" ) func (e FeedResultCategory) ToPointer() *FeedResultCategory { @@ -120,6 +124,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 +134,13 @@ 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": *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..7a6391ce 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"` diff --git a/tests/mockserver/internal/sdk/models/components/insightsrequest.go b/tests/mockserver/internal/sdk/models/components/insightsrequest.go index ae74e0f9..25e541a0 100644 --- a/tests/mockserver/internal/sdk/models/components/insightsrequest.go +++ b/tests/mockserver/internal/sdk/models/components/insightsrequest.go @@ -3,9 +3,10 @@ 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"` + 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 +32,13 @@ func (o *InsightsRequest) GetAgentsRequest() *AgentsInsightsV2Request { return o.AgentsRequest } +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/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/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/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/ugctype.go b/tests/mockserver/internal/sdk/models/components/ugctype.go index 3be651fc..d0aa0112 100644 --- a/tests/mockserver/internal/sdk/models/components/ugctype.go +++ b/tests/mockserver/internal/sdk/models/components/ugctype.go @@ -27,6 +27,7 @@ const ( UgcTypeShortcutsType UgcType = "SHORTCUTS_TYPE" UgcTypeSlideType UgcType = "SLIDE_TYPE" UgcTypeSpreadsheetType UgcType = "SPREADSHEET_TYPE" + UgcTypeInlineHTMLType UgcType = "INLINE_HTML_TYPE" UgcTypeWorkflowsType UgcType = "WORKFLOWS_TYPE" ) @@ -73,6 +74,8 @@ func (e *UgcType) UnmarshalJSON(data []byte) error { fallthrough case "SPREADSHEET_TYPE": fallthrough + case "INLINE_HTML_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..32301d9b 100644 --- a/tests/mockserver/internal/sdk/models/components/workflow.go +++ b/tests/mockserver/internal/sdk/models/components/workflow.go @@ -11,9 +11,12 @@ 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"` } @@ -53,6 +56,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 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/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/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/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/summarize_test.go b/tests/summarize_test.go index 0cf81ea7..4bfe1645 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://dim-glider.com/", }, ), 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 + +}