Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(personhog): add WriteDistinctIds for the person consistency repair (#118343)

Eli Reismanfaf34aec3ac8
diff --git a/nodejs/src/common/generated/personhog/personhog/service/v1/service_pb.ts b/nodejs/src/common/generated/personhog/personhog/service/v1/service_pb.ts
index 6daa9cc1dee1..1ffa105e4050 100644
--- a/nodejs/src/common/generated/personhog/personhog/service/v1/service_pb.ts
+++ b/nodejs/src/common/generated/personhog/personhog/service/v1/service_pb.ts
@@ -116,6 +116,8 @@ import type {
SplitPersonResponseSchema,
UpdatePersonPropertiesRequestSchema,
UpdatePersonPropertiesResponseSchema,
+ WriteDistinctIdsRequestSchema,
+ WriteDistinctIdsResponseSchema,
} from '../../types/v1/person_pb'
import { file_personhog_types_v1_person } from '../../types/v1/person_pb'
@@ -125,7 +127,7 @@ import { file_personhog_types_v1_person } from '../../types/v1/person_pb'
export const file_personhog_service_v1_service: GenFile =
/*@__PURE__*/
fileDesc(
- 'CiJwZXJzb25ob2cvc2VydmljZS92MS9zZXJ2aWNlLnByb3RvEhRwZXJzb25ob2cuc2VydmljZS52MTK3MwoQUGVyc29uSG9nU2VydmljZRJYCglHZXRQZXJzb24SJC5wZXJzb25ob2cudHlwZXMudjEuR2V0UGVyc29uUmVxdWVzdBolLnBlcnNvbmhvZy50eXBlcy52MS5HZXRQZXJzb25SZXNwb25zZRJYCgpHZXRQZXJzb25zEiUucGVyc29uaG9nLnR5cGVzLnYxLkdldFBlcnNvbnNSZXF1ZXN0GiMucGVyc29uaG9nLnR5cGVzLnYxLlBlcnNvbnNSZXNwb25zZRJkCg9HZXRQZXJzb25CeVV1aWQSKi5wZXJzb25ob2cudHlwZXMudjEuR2V0UGVyc29uQnlVdWlkUmVxdWVzdBolLnBlcnNvbmhvZy50eXBlcy52MS5HZXRQZXJ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vcmVQZXJzb25zUmVzcG9uc2USbQoQV3JpdGVEaXN0aW5jdElkcxIrLnBlcnNvbmhvZy50eXBlcy52MS5Xcml0ZURpc3RpbmN0SWRzUmVxdWVzdBosLnBlcnNvbmhvZy50eXBlcy52MS5Xcml0ZURpc3RpbmN0SWRzUmVzcG9uc2ViBnByb3RvMw',
[
file_personhog_types_v1_person,
file_personhog_types_v1_group,
@@ -609,9 +611,9 @@ export const PersonHogService: GenService<{
output: typeof ListPersonsForTeamResponseSchema
}
/**
- * Writes for the person consistency repair. Raises claim lifecycle marks on the persons they
- * raise; restores only insert absent persons. Versions only go up. Same routing caveat as
- * DeletePersons above.
+ * Writes for the person consistency repair. Raises and mapping writes claim lifecycle marks on
+ * the persons they write; restores only insert absent persons. Versions only go up. Same routing
+ * caveat as DeletePersons above.
*
* @generated from rpc personhog.service.v1.PersonHogService.RaisePersonVersionFloors
*/
@@ -628,4 +630,12 @@ export const PersonHogService: GenService<{
input: typeof RestorePersonsRequestSchema
output: typeof RestorePersonsResponseSchema
}
+ /**
+ * @generated from rpc personhog.service.v1.PersonHogService.WriteDistinctIds
+ */
+ writeDistinctIds: {
+ methodKind: 'unary'
+ input: typeof WriteDistinctIdsRequestSchema
+ output: typeof WriteDistinctIdsResponseSchema
+ }
}> = /*@__PURE__*/ serviceDesc(file_personhog_service_v1_service, 0)
diff --git a/nodejs/src/common/generated/personhog/personhog/types/v1/person_pb.ts b/nodejs/src/common/generated/personhog/personhog/types/v1/person_pb.ts
index 9461311f5fe7..caf02ff6b3e5 100644
--- a/nodejs/src/common/generated/personhog/personhog/types/v1/person_pb.ts
+++ b/nodejs/src/common/generated/personhog/personhog/types/v1/person_pb.ts
@@ -13,7 +13,7 @@ import { file_personhog_types_v1_common } from './common_pb'
export const file_personhog_types_v1_person: GenFile =
/*@__PURE__*/
fileDesc(
- 'Ch9wZXJzb25ob2cvdHlwZXMvdjEvcGVyc29uLnByb3RvEhJwZXJzb25ob2cudHlwZXMudjEisgIKBlBlcn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Cg5SZXN0b3JlT3V0Y29tZRIfChtSRVNUT1JFX09VVENPTUVfVU5TUEVDSUZJRUQQABIcChhSRVNUT1JFX09VVENPTUVfSU5TRVJURUQQARIfChtSRVNUT1JFX09VVENPTUVfRVhJU1RTX0xJVkUQAhIlCiFSRVNUT1JFX09VVENPTUVfRVhJU1RTX1RPTUJTVE9ORUQQAxIiCh5SRVNUT1JFX09VVENPTUVfTk9fRElTVElOQ1RfSUQQBCqKAQoVRGlzdGluY3RJZFdyaXRlQWN0aW9uEigKJERJU1RJTkNUX0lEX1dSSVRFX0FDVElPTl9VTlNQRUNJRklFRBAAEiMKH0RJU1RJTkNUX0lEX1dSSVRFX0FDVElPTl9JTlNFUlQQARIiCh5ESVNUSU5DVF9JRF9XUklURV9BQ1RJT05fUkFJU0UQAir1AQoWRGlzdGluY3RJZFdyaXRlT3V0Y29tZRIpCiVESVNUSU5DVF9JRF9XUklURV9PVVRDT01FX1VOU1BFQ0lGSUVEEAASJQohRElTVElOQ1RfSURfV1JJVEVfT1VUQ09NRV9BUFBMSUVEEAESJwojRElTVElOQ1RfSURfV1JJVEVfT1VUQ09NRV9VTkNIQU5HRUQQAhIxCi1ESVNUSU5DVF9JRF9XUklURV9PVVRDT01FX1BSRUNPTkRJVElPTl9GQUlMRUQQAxItCilESVNUSU5DVF9JRF9XUklURV9PVVRDT01FX1BFUlNPTl9OT1RfTElWRRAEYgZwcm90bzM',
[file_personhog_types_v1_common]
)
@@ -2464,6 +2464,121 @@ export const RestorePersonsResponseSchema: GenMessage<RestorePersonsResponse> =
/*@__PURE__*/
messageDesc(file_personhog_types_v1_person, 76)
+/**
+ * @generated from message personhog.types.v1.DistinctIdWrite
+ */
+export type DistinctIdWrite = Message<'personhog.types.v1.DistinctIdWrite'> & {
+ /**
+ * @generated from field: string distinct_id = 1;
+ */
+ distinctId: string
+
+ /**
+ * @generated from field: personhog.types.v1.DistinctIdWriteAction action = 2;
+ */
+ action: DistinctIdWriteAction
+
+ /**
+ * The person the row must point at: the insert target, or the current owner for raise.
+ *
+ * @generated from field: string person_uuid = 3;
+ */
+ personUuid: string
+
+ /**
+ * @generated from field: int64 min_version = 4;
+ */
+ minVersion: bigint
+
+ /**
+ * When set, raise applies only while the row holds exactly this version.
+ *
+ * @generated from field: optional int64 expected_version = 5;
+ */
+ expectedVersion?: bigint
+}
+
+/**
+ * Describes the message personhog.types.v1.DistinctIdWrite.
+ * Use `create(DistinctIdWriteSchema)` to create a new message.
+ */
+export const DistinctIdWriteSchema: GenMessage<DistinctIdWrite> =
+ /*@__PURE__*/
+ messageDesc(file_personhog_types_v1_person, 77)
+
+/**
+ * @generated from message personhog.types.v1.WriteDistinctIdsRequest
+ */
+export type WriteDistinctIdsRequest = Message<'personhog.types.v1.WriteDistinctIdsRequest'> & {
+ /**
+ * @generated from field: int64 team_id = 1;
+ */
+ teamId: bigint
+
+ /**
+ * At most 250, no repeated distinct id.
+ *
+ * @generated from field: repeated personhog.types.v1.DistinctIdWrite writes = 2;
+ */
+ writes: DistinctIdWrite[]
+}
+
+/**
+ * Describes the message personhog.types.v1.WriteDistinctIdsRequest.
+ * Use `create(WriteDistinctIdsRequestSchema)` to create a new message.
+ */
+export const WriteDistinctIdsRequestSchema: GenMessage<WriteDistinctIdsRequest> =
+ /*@__PURE__*/
+ messageDesc(file_personhog_types_v1_person, 78)
+
+/**
+ * @generated from message personhog.types.v1.DistinctIdWriteResult
+ */
+export type DistinctIdWriteResult = Message<'personhog.types.v1.DistinctIdWriteResult'> & {
+ /**
+ * @generated from field: string distinct_id = 1;
+ */
+ distinctId: string
+
+ /**
+ * @generated from field: personhog.types.v1.DistinctIdWriteOutcome outcome = 2;
+ */
+ outcome: DistinctIdWriteOutcome
+
+ /**
+ * The row after the call, when one exists.
+ *
+ * @generated from field: optional personhog.types.v1.DistinctIdRow row = 3;
+ */
+ row?: DistinctIdRow
+}
+
+/**
+ * Describes the message personhog.types.v1.DistinctIdWriteResult.
+ * Use `create(DistinctIdWriteResultSchema)` to create a new message.
+ */
+export const DistinctIdWriteResultSchema: GenMessage<DistinctIdWriteResult> =
+ /*@__PURE__*/
+ messageDesc(file_personhog_types_v1_person, 79)
+
+/**
+ * @generated from message personhog.types.v1.WriteDistinctIdsResponse
+ */
+export type WriteDistinctIdsResponse = Message<'personhog.types.v1.WriteDistinctIdsResponse'> & {
+ /**
+ * @generated from field: repeated personhog.types.v1.DistinctIdWriteResult results = 1;
+ */
+ results: DistinctIdWriteResult[]
+}
+
+/**
+ * Describes the message personhog.types.v1.WriteDistinctIdsResponse.
+ * Use `create(WriteDistinctIdsResponseSchema)` to create a new message.
+ */
+export const WriteDistinctIdsResponseSchema: GenMessage<WriteDistinctIdsResponse> =
+ /*@__PURE__*/
+ messageDesc(file_personhog_types_v1_person, 80)
+
/**
* How DeletePersons removes the rows.
*
@@ -2679,3 +2794,77 @@ export enum RestoreOutcome {
* Describes the enum personhog.types.v1.RestoreOutcome.
*/
export const RestoreOutcomeSchema: GenEnum<RestoreOutcome> = /*@__PURE__*/ enumDesc(file_personhog_types_v1_person, 5)
+
+/**
+ * @generated from enum personhog.types.v1.DistinctIdWriteAction
+ */
+export enum DistinctIdWriteAction {
+ /**
+ * @generated from enum value: DISTINCT_ID_WRITE_ACTION_UNSPECIFIED = 0;
+ */
+ UNSPECIFIED = 0,
+
+ /**
+ * Insert a live row on the person when no row exists for the distinct id.
+ *
+ * @generated from enum value: DISTINCT_ID_WRITE_ACTION_INSERT = 1;
+ */
+ INSERT = 1,
+
+ /**
+ * Raise a live row on the person to at least min_version.
+ *
+ * @generated from enum value: DISTINCT_ID_WRITE_ACTION_RAISE = 2;
+ */
+ RAISE = 2,
+}
+
+/**
+ * Describes the enum personhog.types.v1.DistinctIdWriteAction.
+ */
+export const DistinctIdWriteActionSchema: GenEnum<DistinctIdWriteAction> =
+ /*@__PURE__*/
+ enumDesc(file_personhog_types_v1_person, 6)
+
+/**
+ * @generated from enum personhog.types.v1.DistinctIdWriteOutcome
+ */
+export enum DistinctIdWriteOutcome {
+ /**
+ * @generated from enum value: DISTINCT_ID_WRITE_OUTCOME_UNSPECIFIED = 0;
+ */
+ UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: DISTINCT_ID_WRITE_OUTCOME_APPLIED = 1;
+ */
+ APPLIED = 1,
+
+ /**
+ * The row already satisfies the write (raise at or above min_version).
+ *
+ * @generated from enum value: DISTINCT_ID_WRITE_OUTCOME_UNCHANGED = 2;
+ */
+ UNCHANGED = 2,
+
+ /**
+ * The row is not in the state the write expects; it is left unchanged and reported.
+ *
+ * @generated from enum value: DISTINCT_ID_WRITE_OUTCOME_PRECONDITION_FAILED = 3;
+ */
+ PRECONDITION_FAILED = 3,
+
+ /**
+ * The person does not exist or is tombstoned.
+ *
+ * @generated from enum value: DISTINCT_ID_WRITE_OUTCOME_PERSON_NOT_LIVE = 4;
+ */
+ PERSON_NOT_LIVE = 4,
+}
+
+/**
+ * Describes the enum personhog.types.v1.DistinctIdWriteOutcome.
+ */
+export const DistinctIdWriteOutcomeSchema: GenEnum<DistinctIdWriteOutcome> =
+ /*@__PURE__*/
+ enumDesc(file_personhog_types_v1_person, 7)
diff --git a/nodejs/src/common/personhog/client.test.ts b/nodejs/src/common/personhog/client.test.ts
index 6059921af995..48bb01e434ed 100644
--- a/nodejs/src/common/personhog/client.test.ts
+++ b/nodejs/src/common/personhog/client.test.ts
@@ -154,6 +154,7 @@ const SERVICE_DEFAULTS: ServiceImpl<typeof PersonHogService> = {
listPersonsForTeam: () => ({ persons: [] }),
raisePersonVersionFloors: () => ({ results: [] }),
restorePersons: () => ({ results: [] }),
+ writeDistinctIds: () => ({ results: [] }),
fencePerson: () => ({}),
fencePersons: () => ({}),
releaseFence: () => ({}),
diff --git a/nodejs/src/common/personhog/persons.test.ts b/nodejs/src/common/personhog/persons.test.ts
index 9979d891de7b..54f1150a5376 100644
--- a/nodejs/src/common/personhog/persons.test.ts
+++ b/nodejs/src/common/personhog/persons.test.ts
@@ -89,6 +89,7 @@ const SERVICE_DEFAULTS: ServiceImpl<typeof PersonHogService> = {
listPersonsForTeam: () => ({ persons: [] }),
raisePersonVersionFloors: () => ({ results: [] }),
restorePersons: () => ({ results: [] }),
+ writeDistinctIds: () => ({ results: [] }),
fencePerson: () => ({}),
fencePersons: () => ({}),
releaseFence: () => ({}),
diff --git a/packages/personhog-proto/personhog/service/v1/service_pb2.py b/packages/personhog-proto/personhog/service/v1/service_pb2.py
index 761d1ce5a14b..0611a0bd5657 100644
--- a/packages/personhog-proto/personhog/service/v1/service_pb2.py
+++ b/packages/personhog-proto/personhog/service/v1/service_pb2.py
@@ -28,7 +28,7 @@ from personhog.types.v1 import (
)
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
- b"\n\"personhog/service/v1/service.proto\x12\x14personhog.service.v1\x1a\x1fpersonhog/types/v1/person.proto\x1a\x1epersonhog/types/v1/group.proto\x1a\x1fpersonhog/types/v1/cohort.proto\x1a%personhog/types/v1/feature_flag.proto2\xb7\x33\n\x10PersonHogService\x12X\n\tGetPerson\x12$.personhog.types.v1.GetPersonRequest\x1a%.personhog.types.v1.GetPersonResponse\x12X\n\nGetPersons\x12%.personhog.types.v1.GetPersonsRequest\x1a#.personhog.types.v1.PersonsResponse\x12\x64\n\x0fGetPersonByUuid\x12*.personhog.types.v1.GetPersonByUuidRequest\x1a%.personhog.types.v1.GetPersonResponse\x12\x66\n\x11GetPersonsByUuids\x12,.personhog.types.v1.GetPersonsByUuidsRequest\x1a#.personhog.types.v1.PersonsResponse\x12p\n\x15GetPersonByDistinctId\x12\x30.personhog.types.v1.GetPersonByDistinctIdRequest\x1a%.personhog.types.v1.GetPersonResponse\x12\x91\x01\n\x1dGetPersonsByDistinctIdsInTeam\x12\x38.personhog.types.v1.GetPersonsByDistinctIdsInTeamRequest\x1a\x36.personhog.types.v1.PersonsByDistinctIdsInTeamResponse\x12\x7f\n\x17GetPersonsByDistinctIds\x12\x32.personhog.types.v1.GetPersonsByDistinctIdsRequest\x1a\x30.personhog.types.v1.PersonsByDistinctIdsResponse\x12\x82\x01\n\x17GetDistinctIdsForPerson\x12\x32.personhog.types.v1.GetDistinctIdsForPersonRequest\x1a\x33.personhog.types.v1.GetDistinctIdsForPersonResponse\x12\x85\x01\n\x18GetDistinctIdsForPersons\x12\x33.personhog.types.v1.GetDistinctIdsForPersonsRequest\x1a\x34.personhog.types.v1.GetDistinctIdsForPersonsResponse\x12\x88\x01\n\x19GetHashKeyOverrideContext\x12\x34.personhog.types.v1.GetHashKeyOverrideContextRequest\x1a\x35.personhog.types.v1.GetHashKeyOverrideContextResponse\x12\x7f\n\x16UpsertHashKeyOverrides\x12\x31.personhog.types.v1.UpsertHashKeyOverridesRequest\x1a\x32.personhog.types.v1.UpsertHashKeyOverridesResponse\x12\x94\x01\n\x1d\x44\x65leteHashKeyOverridesByTeams\x12\x38.personhog.types.v1.DeleteHashKeyOverridesByTeamsRequest\x1a\x39.personhog.types.v1.DeleteHashKeyOverridesByTeamsResponse\x12w\n\x15\x43heckCohortMembership\x12\x30.personhog.types.v1.CheckCohortMembershipRequest\x1a,.personhog.types.v1.CohortMembershipResponse\x12s\n\x12\x43ountCohortMembers\x12-.personhog.types.v1.CountCohortMembersRequest\x1a..personhog.types.v1.CountCohortMembersResponse\x12s\n\x12\x44\x65leteCohortMember\x12-.personhog.types.v1.DeleteCohortMemberRequest\x1a..personhog.types.v1.DeleteCohortMemberResponse\x12\x82\x01\n\x17\x44\x65leteCohortMembersBulk\x12\x32.personhog.types.v1.DeleteCohortMembersBulkRequest\x1a\x33.personhog.types.v1.DeleteCohortMembersBulkResponse\x12v\n\x13InsertCohortMembers\x12..personhog.types.v1.InsertCohortMembersRequest\x1a/.personhog.types.v1.InsertCohortMembersResponse\x12v\n\x13ListCohortMemberIds\x12..personhog.types.v1.ListCohortMemberIdsRequest\x1a/.personhog.types.v1.ListCohortMemberIdsResponse\x12U\n\x08GetGroup\x12#.personhog.types.v1.GetGroupRequest\x1a$.personhog.types.v1.GetGroupResponse\x12U\n\tGetGroups\x12$.personhog.types.v1.GetGroupsRequest\x1a\".personhog.types.v1.GroupsResponse\x12g\n\x0eGetGroupsBatch\x12).personhog.types.v1.GetGroupsBatchRequest\x1a*.personhog.types.v1.GetGroupsBatchResponse\x12[\n\nListGroups\x12%.personhog.types.v1.ListGroupsRequest\x1a&.personhog.types.v1.ListGroupsResponse\x12\x86\x01\n\x1cGetGroupTypeMappingsByTeamId\x12\x37.personhog.types.v1.GetGroupTypeMappingsByTeamIdRequest\x1a-.personhog.types.v1.GroupTypeMappingsResponse\x12\x8d\x01\n\x1dGetGroupTypeMappingsByTeamIds\x12\x38.personhog.types.v1.GetGroupTypeMappingsByTeamIdsRequest\x1a\x32.personhog.types.v1.GroupTypeMappingsBatchResponse\x12\x8c\x01\n\x1fGetGroupTypeMappingsByProjectId\x12:.personhog.types.v1.GetGroupTypeMappingsByProjectIdRequest\x1a-.personhog.types.v1.GroupTypeMappingsResponse\x12\x93\x01\n GetGroupTypeMappingsByProjectIds\x12;.personhog.types.v1.GetGroupTypeMappingsByProjectIdsRequest\x1a\x32.personhog.types.v1.GroupTypeMappingsBatchResponse\x12\x9d\x01\n GetGroupTypeMappingByDashboardId\x12;.personhog.types.v1.GetGroupTypeMappingByDashboardIdRequest\x1a<.personhog.types.v1.GetGroupTypeMappingByDashboardIdResponse\x12\x7f\n\x16\x43ountGroupTypeMappings\x12\x31.personhog.types.v1.CountGroupTypeMappingsRequest\x1a\x32.personhog.types.v1.CountGroupTypeMappingsResponse\x12^\n\x0b\x43reateGroup\x12&.personhog.types.v1.CreateGroupRequest\x1a'.personhog.types.v1.CreateGroupResponse\x12^\n\x0bUpdateGroup\x12&.personhog.types.v1.UpdateGroupRequest\x1a'.personhog.types.v1.UpdateGroupResponse\x12\x85\x01\n\x18\x44\x65leteGroupsBatchForTeam\x12\x33.personhog.types.v1.DeleteGroupsBatchForTeamRequest\x1a\x34.personhog.types.v1.DeleteGroupsBatchForTeamResponse\x12\x7f\n\x16UpdateGroupTypeMapping\x12\x31.personhog.types.v1.UpdateGroupTypeMappingRequest\x1a\x32.personhog.types.v1.UpdateGroupTypeMappingResponse\x12\x7f\n\x16\x44\x65leteGroupTypeMapping\x12\x31.personhog.types.v1.DeleteGroupTypeMappingRequest\x1a\x32.personhog.types.v1.DeleteGroupTypeMappingResponse\x12\xa6\x01\n#DeleteGroupTypeMappingsBatchForTeam\x12>.personhog.types.v1.DeleteGroupTypeMappingsBatchForTeamRequest\x1a?.personhog.types.v1.DeleteGroupTypeMappingsBatchForTeamResponse\x12\x7f\n\x16UpdatePersonProperties\x12\x31.personhog.types.v1.UpdatePersonPropertiesRequest\x1a\x32.personhog.types.v1.UpdatePersonPropertiesResponse\x12^\n\x0b\x46\x65ncePerson\x12&.personhog.types.v1.FencePersonRequest\x1a'.personhog.types.v1.FencePersonResponse\x12\x61\n\x0c\x46\x65ncePersons\x12'.personhog.types.v1.FencePersonsRequest\x1a(.personhog.types.v1.FencePersonsResponse\x12\x61\n\x0cReleaseFence\x12'.personhog.types.v1.ReleaseFenceRequest\x1a(.personhog.types.v1.ReleaseFenceResponse\x12\x64\n\rReleaseFences\x12(.personhog.types.v1.ReleaseFencesRequest\x1a).personhog.types.v1.ReleaseFencesResponse\x12s\n\x12\x46oldPersonDocument\x12-.personhog.types.v1.FoldPersonDocumentRequest\x1a..personhog.types.v1.FoldPersonDocumentResponse\x12\x64\n\rDeletePersons\x12(.personhog.types.v1.DeletePersonsRequest\x1a).personhog.types.v1.DeletePersonsResponse\x12\x88\x01\n\x19\x44\x65letePersonsBatchForTeam\x12\x34.personhog.types.v1.DeletePersonsBatchForTeamRequest\x1a\x35.personhog.types.v1.DeletePersonsBatchForTeamResponse\x12\x82\x01\n\x17\x44\x65leteTombstonedPersons\x12\x32.personhog.types.v1.DeleteTombstonedPersonsRequest\x1a\x33.personhog.types.v1.DeleteTombstonedPersonsResponse\x12v\n\x13GetPersonTombstones\x12..personhog.types.v1.GetPersonTombstonesRequest\x1a/.personhog.types.v1.GetPersonTombstonesResponse\x12v\n\x13\x41\x63kPersonTombstones\x12..personhog.types.v1.AckPersonTombstonesRequest\x1a/.personhog.types.v1.AckPersonTombstonesResponse\x12\x85\x01\n\x18ListPersonTombstoneQueue\x12\x33.personhog.types.v1.ListPersonTombstoneQueueRequest\x1a\x34.personhog.types.v1.ListPersonTombstoneQueueResponse\x12^\n\x0bSplitPerson\x12&.personhog.types.v1.SplitPersonRequest\x1a'.personhog.types.v1.SplitPersonResponse\x12\x9a\x01\n\x1fSetPersonDistinctIdVersionFloor\x12:.personhog.types.v1.SetPersonDistinctIdVersionFloorRequest\x1a;.personhog.types.v1.SetPersonDistinctIdVersionFloorResponse\x12|\n\x15SetPersonVersionFloor\x12\x30.personhog.types.v1.SetPersonVersionFloorRequest\x1a\x31.personhog.types.v1.SetPersonVersionFloorResponse\x12\x88\x01\n\x19\x45nsurePersonVersionFloors\x12\x34.personhog.types.v1.EnsurePersonVersionFloorsRequest\x1a\x35.personhog.types.v1.EnsurePersonVersionFloorsResponse\x12p\n\x11GetDistinctIdRows\x12,.personhog.types.v1.GetDistinctIdRowsRequest\x1a-.personhog.types.v1.GetDistinctIdRowsResponse\x12s\n\x12ListPersonsForTeam\x12-.personhog.types.v1.ListPersonsForTeamRequest\x1a..personhog.types.v1.ListPersonsForTeamResponse\x12\x85\x01\n\x18RaisePersonVersionFloors\x12\x33.personhog.types.v1.RaisePersonVersionFloorsRequest\x1a\x34.personhog.types.v1.RaisePersonVersionFloorsResponse\x12g\n\x0eRestorePersons\x12).personhog.types.v1.RestorePersonsRequest\x1a*.personhog.types.v1.RestorePersonsResponseb\x06proto3"
+ b"\n\"personhog/service/v1/service.proto\x12\x14personhog.service.v1\x1a\x1fpersonhog/types/v1/person.proto\x1a\x1epersonhog/types/v1/group.proto\x1a\x1fpersonhog/types/v1/cohort.proto\x1a%personhog/types/v1/feature_flag.proto2\xa6\x34\n\x10PersonHogService\x12X\n\tGetPerson\x12$.personhog.types.v1.GetPersonRequest\x1a%.personhog.types.v1.GetPersonResponse\x12X\n\nGetPersons\x12%.personhog.types.v1.GetPersonsRequest\x1a#.personhog.types.v1.PersonsResponse\x12\x64\n\x0fGetPersonByUuid\x12*.personhog.types.v1.GetPersonByUuidRequest\x1a%.personhog.types.v1.GetPersonResponse\x12\x66\n\x11GetPersonsByUuids\x12,.personhog.types.v1.GetPersonsByUuidsRequest\x1a#.personhog.types.v1.PersonsResponse\x12p\n\x15GetPersonByDistinctId\x12\x30.personhog.types.v1.GetPersonByDistinctIdRequest\x1a%.personhog.types.v1.GetPersonResponse\x12\x91\x01\n\x1dGetPersonsByDistinctIdsInTeam\x12\x38.personhog.types.v1.GetPersonsByDistinctIdsInTeamRequest\x1a\x36.personhog.types.v1.PersonsByDistinctIdsInTeamResponse\x12\x7f\n\x17GetPersonsByDistinctIds\x12\x32.personhog.types.v1.GetPersonsByDistinctIdsRequest\x1a\x30.personhog.types.v1.PersonsByDistinctIdsResponse\x12\x82\x01\n\x17GetDistinctIdsForPerson\x12\x32.personhog.types.v1.GetDistinctIdsForPersonRequest\x1a\x33.personhog.types.v1.GetDistinctIdsForPersonResponse\x12\x85\x01\n\x18GetDistinctIdsForPersons\x12\x33.personhog.types.v1.GetDistinctIdsForPersonsRequest\x1a\x34.personhog.types.v1.GetDistinctIdsForPersonsResponse\x12\x88\x01\n\x19GetHashKeyOverrideContext\x12\x34.personhog.types.v1.GetHashKeyOverrideContextRequest\x1a\x35.personhog.types.v1.GetHashKeyOverrideContextResponse\x12\x7f\n\x16UpsertHashKeyOverrides\x12\x31.personhog.types.v1.UpsertHashKeyOverridesRequest\x1a\x32.personhog.types.v1.UpsertHashKeyOverridesResponse\x12\x94\x01\n\x1d\x44\x65leteHashKeyOverridesByTeams\x12\x38.personhog.types.v1.DeleteHashKeyOverridesByTeamsRequest\x1a\x39.personhog.types.v1.DeleteHashKeyOverridesByTeamsResponse\x12w\n\x15\x43heckCohortMembership\x12\x30.personhog.types.v1.CheckCohortMembershipRequest\x1a,.personhog.types.v1.CohortMembershipResponse\x12s\n\x12\x43ountCohortMembers\x12-.personhog.types.v1.CountCohortMembersRequest\x1a..personhog.types.v1.CountCohortMembersResponse\x12s\n\x12\x44\x65leteCohortMember\x12-.personhog.types.v1.DeleteCohortMemberRequest\x1a..personhog.types.v1.DeleteCohortMemberResponse\x12\x82\x01\n\x17\x44\x65leteCohortMembersBulk\x12\x32.personhog.types.v1.DeleteCohortMembersBulkRequest\x1a\x33.personhog.types.v1.DeleteCohortMembersBulkResponse\x12v\n\x13InsertCohortMembers\x12..personhog.types.v1.InsertCohortMembersRequest\x1a/.personhog.types.v1.InsertCohortMembersResponse\x12v\n\x13ListCohortMemberIds\x12..personhog.types.v1.ListCohortMemberIdsRequest\x1a/.personhog.types.v1.ListCohortMemberIdsResponse\x12U\n\x08GetGroup\x12#.personhog.types.v1.GetGroupRequest\x1a$.personhog.types.v1.GetGroupResponse\x12U\n\tGetGroups\x12$.personhog.types.v1.GetGroupsRequest\x1a\".personhog.types.v1.GroupsResponse\x12g\n\x0eGetGroupsBatch\x12).personhog.types.v1.GetGroupsBatchRequest\x1a*.personhog.types.v1.GetGroupsBatchResponse\x12[\n\nListGroups\x12%.personhog.types.v1.ListGroupsRequest\x1a&.personhog.types.v1.ListGroupsResponse\x12\x86\x01\n\x1cGetGroupTypeMappingsByTeamId\x12\x37.personhog.types.v1.GetGroupTypeMappingsByTeamIdRequest\x1a-.personhog.types.v1.GroupTypeMappingsResponse\x12\x8d\x01\n\x1dGetGroupTypeMappingsByTeamIds\x12\x38.personhog.types.v1.GetGroupTypeMappingsByTeamIdsRequest\x1a\x32.personhog.types.v1.GroupTypeMappingsBatchResponse\x12\x8c\x01\n\x1fGetGroupTypeMappingsByProjectId\x12:.personhog.types.v1.GetGroupTypeMappingsByProjectIdRequest\x1a-.personhog.types.v1.GroupTypeMappingsResponse\x12\x93\x01\n GetGroupTypeMappingsByProjectIds\x12;.personhog.types.v1.GetGroupTypeMappingsByProjectIdsRequest\x1a\x32.personhog.types.v1.GroupTypeMappingsBatchResponse\x12\x9d\x01\n GetGroupTypeMappingByDashboardId\x12;.personhog.types.v1.GetGroupTypeMappingByDashboardIdRequest\x1a<.personhog.types.v1.GetGroupTypeMappingByDashboardIdResponse\x12\x7f\n\x16\x43ountGroupTypeMappings\x12\x31.personhog.types.v1.CountGroupTypeMappingsRequest\x1a\x32.personhog.types.v1.CountGroupTypeMappingsResponse\x12^\n\x0b\x43reateGroup\x12&.personhog.types.v1.CreateGroupRequest\x1a'.personhog.types.v1.CreateGroupResponse\x12^\n\x0bUpdateGroup\x12&.personhog.types.v1.UpdateGroupRequest\x1a'.personhog.types.v1.UpdateGroupResponse\x12\x85\x01\n\x18\x44\x65leteGroupsBatchForTeam\x12\x33.personhog.types.v1.DeleteGroupsBatchForTeamRequest\x1a\x34.personhog.types.v1.DeleteGroupsBatchForTeamResponse\x12\x7f\n\x16UpdateGroupTypeMapping\x12\x31.personhog.types.v1.UpdateGroupTypeMappingRequest\x1a\x32.personhog.types.v1.UpdateGroupTypeMappingResponse\x12\x7f\n\x16\x44\x65leteGroupTypeMapping\x12\x31.personhog.types.v1.DeleteGroupTypeMappingRequest\x1a\x32.personhog.types.v1.DeleteGroupTypeMappingResponse\x12\xa6\x01\n#DeleteGroupTypeMappingsBatchForTeam\x12>.personhog.types.v1.DeleteGroupTypeMappingsBatchForTeamRequest\x1a?.personhog.types.v1.DeleteGroupTypeMappingsBatchForTeamResponse\x12\x7f\n\x16UpdatePersonProperties\x12\x31.personhog.types.v1.UpdatePersonPropertiesRequest\x1a\x32.personhog.types.v1.UpdatePersonPropertiesResponse\x12^\n\x0b\x46\x65ncePerson\x12&.personhog.types.v1.FencePersonRequest\x1a'.personhog.types.v1.FencePersonResponse\x12\x61\n\x0c\x46\x65ncePersons\x12'.personhog.types.v1.FencePersonsRequest\x1a(.personhog.types.v1.FencePersonsResponse\x12\x61\n\x0cReleaseFence\x12'.personhog.types.v1.ReleaseFenceRequest\x1a(.personhog.types.v1.ReleaseFenceResponse\x12\x64\n\rReleaseFences\x12(.personhog.types.v1.ReleaseFencesRequest\x1a).personhog.types.v1.ReleaseFencesResponse\x12s\n\x12\x46oldPersonDocument\x12-.personhog.types.v1.FoldPersonDocumentRequest\x1a..personhog.types.v1.FoldPersonDocumentResponse\x12\x64\n\rDeletePersons\x12(.personhog.types.v1.DeletePersonsRequest\x1a).personhog.types.v1.DeletePersonsResponse\x12\x88\x01\n\x19\x44\x65letePersonsBatchForTeam\x12\x34.personhog.types.v1.DeletePersonsBatchForTeamRequest\x1a\x35.personhog.types.v1.DeletePersonsBatchForTeamResponse\x12\x82\x01\n\x17\x44\x65leteTombstonedPersons\x12\x32.personhog.types.v1.DeleteTombstonedPersonsRequest\x1a\x33.personhog.types.v1.DeleteTombstonedPersonsResponse\x12v\n\x13GetPersonTombstones\x12..personhog.types.v1.GetPersonTombstonesRequest\x1a/.personhog.types.v1.GetPersonTombstonesResponse\x12v\n\x13\x41\x63kPersonTombstones\x12..personhog.types.v1.AckPersonTombstonesRequest\x1a/.personhog.types.v1.AckPersonTombstonesResponse\x12\x85\x01\n\x18ListPersonTombstoneQueue\x12\x33.personhog.types.v1.ListPersonTombstoneQueueRequest\x1a\x34.personhog.types.v1.ListPersonTombstoneQueueResponse\x12^\n\x0bSplitPerson\x12&.personhog.types.v1.SplitPersonRequest\x1a'.personhog.types.v1.SplitPersonResponse\x12\x9a\x01\n\x1fSetPersonDistinctIdVersionFloor\x12:.personhog.types.v1.SetPersonDistinctIdVersionFloorRequest\x1a;.personhog.types.v1.SetPersonDistinctIdVersionFloorResponse\x12|\n\x15SetPersonVersionFloor\x12\x30.personhog.types.v1.SetPersonVersionFloorRequest\x1a\x31.personhog.types.v1.SetPersonVersionFloorResponse\x12\x88\x01\n\x19\x45nsurePersonVersionFloors\x12\x34.personhog.types.v1.EnsurePersonVersionFloorsRequest\x1a\x35.personhog.types.v1.EnsurePersonVersionFloorsResponse\x12p\n\x11GetDistinctIdRows\x12,.personhog.types.v1.GetDistinctIdRowsRequest\x1a-.personhog.types.v1.GetDistinctIdRowsResponse\x12s\n\x12ListPersonsForTeam\x12-.personhog.types.v1.ListPersonsForTeamRequest\x1a..personhog.types.v1.ListPersonsForTeamResponse\x12\x85\x01\n\x18RaisePersonVersionFloors\x12\x33.personhog.types.v1.RaisePersonVersionFloorsRequest\x1a\x34.personhog.types.v1.RaisePersonVersionFloorsResponse\x12g\n\x0eRestorePersons\x12).personhog.types.v1.RestorePersonsRequest\x1a*.personhog.types.v1.RestorePersonsResponse\x12m\n\x10WriteDistinctIds\x12+.personhog.types.v1.WriteDistinctIdsRequest\x1a,.personhog.types.v1.WriteDistinctIdsResponseb\x06proto3"
)
_globals = globals()
@@ -37,5 +37,5 @@ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "personhog.service.v1.servic
if not _descriptor._USE_C_DESCRIPTORS:
DESCRIPTOR._loaded_options = None
_globals["_PERSONHOGSERVICE"]._serialized_start = 198
- _globals["_PERSONHOGSERVICE"]._serialized_end = 6781
+ _globals["_PERSONHOGSERVICE"]._serialized_end = 6892
# @@protoc_insertion_point(module_scope)
diff --git a/packages/personhog-proto/personhog/service/v1/service_pb2_grpc.py b/packages/personhog-proto/personhog/service/v1/service_pb2_grpc.py
index 833cad1c210c..bfafeb448eb0 100644
--- a/packages/personhog-proto/personhog/service/v1/service_pb2_grpc.py
+++ b/packages/personhog-proto/personhog/service/v1/service_pb2_grpc.py
@@ -366,6 +366,12 @@ class PersonHogServiceStub:
response_deserializer=personhog_dot_types_dot_v1_dot_person__pb2.RestorePersonsResponse.FromString,
_registered_method=True,
)
+ self.WriteDistinctIds = channel.unary_unary(
+ "/personhog.service.v1.PersonHogService/WriteDistinctIds",
+ request_serializer=personhog_dot_types_dot_v1_dot_person__pb2.WriteDistinctIdsRequest.SerializeToString,
+ response_deserializer=personhog_dot_types_dot_v1_dot_person__pb2.WriteDistinctIdsResponse.FromString,
+ _registered_method=True,
+ )
class PersonHogServiceServicer:
@@ -706,9 +712,9 @@ class PersonHogServiceServicer:
raise NotImplementedError("Method not implemented!")
def RaisePersonVersionFloors(self, request, context):
- """Writes for the person consistency repair. Raises claim lifecycle marks on the persons they
- raise; restores only insert absent persons. Versions only go up. Same routing caveat as
- DeletePersons above.
+ """Writes for the person consistency repair. Raises and mapping writes claim lifecycle marks on
+ the persons they write; restores only insert absent persons. Versions only go up. Same routing
+ caveat as DeletePersons above.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details("Method not implemented!")
@@ -720,6 +726,12 @@ class PersonHogServiceServicer:
context.set_details("Method not implemented!")
raise NotImplementedError("Method not implemented!")
+ def WriteDistinctIds(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
def add_PersonHogServiceServicer_to_server(servicer, server):
rpc_method_handlers = {
@@ -993,6 +1005,11 @@ def add_PersonHogServiceServicer_to_server(servicer, server):
request_deserializer=personhog_dot_types_dot_v1_dot_person__pb2.RestorePersonsRequest.FromString,
response_serializer=personhog_dot_types_dot_v1_dot_person__pb2.RestorePersonsResponse.SerializeToString,
),
+ "WriteDistinctIds": grpc.unary_unary_rpc_method_handler(
+ servicer.WriteDistinctIds,
+ request_deserializer=personhog_dot_types_dot_v1_dot_person__pb2.WriteDistinctIdsRequest.FromString,
+ response_serializer=personhog_dot_types_dot_v1_dot_person__pb2.WriteDistinctIdsResponse.SerializeToString,
+ ),
}
generic_handler = grpc.method_handlers_generic_handler("personhog.service.v1.PersonHogService", rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
@@ -2624,3 +2641,33 @@ class PersonHogService:
metadata,
_registered_method=True,
)
+
+ @staticmethod
+ def WriteDistinctIds(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/personhog.service.v1.PersonHogService/WriteDistinctIds",
+ personhog_dot_types_dot_v1_dot_person__pb2.WriteDistinctIdsRequest.SerializeToString,
+ personhog_dot_types_dot_v1_dot_person__pb2.WriteDistinctIdsResponse.FromString,
+ options,
+ channel_credentials,
+ insecure,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ _registered_method=True,
+ )
diff --git a/packages/personhog-proto/personhog/types/v1/person_pb2.py b/packages/personhog-proto/personhog/types/v1/person_pb2.py
index 23850a727204..87b2399627d5 100644
--- a/packages/personhog-proto/personhog/types/v1/person_pb2.py
+++ b/packages/personhog-proto/personhog/types/v1/person_pb2.py
@@ -23,7 +23,7 @@ _sym_db = _symbol_database.Default()
from personhog.types.v1 import common_pb2 as personhog_dot_types_dot_v1_dot_common__pb2
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
- b'\n\x1fpersonhog/types/v1/person.proto\x12\x12personhog.types.v1\x1a\x1fpersonhog/types/v1/common.proto"\xb2\x02\n\x06Person\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0c\n\x04uuid\x18\x02 \x01(\t\x12\x0f\n\x07team_id\x18\x03 \x01(\x03\x12\x12\n\nproperties\x18\x04 \x01(\x0c\x12"\n\x1aproperties_last_updated_at\x18\x05 \x01(\x0c\x12!\n\x19properties_last_operation\x18\x06 \x01(\x0c\x12\x12\n\ncreated_at\x18\x07 \x01(\x03\x12\x0f\n\x07version\x18\x08 \x01(\x03\x12\x15\n\ris_identified\x18\t \x01(\x08\x12\x17\n\nis_user_id\x18\n \x01(\x08H\x00\x88\x01\x01\x12\x19\n\x0clast_seen_at\x18\x0b \x01(\x03H\x01\x88\x01\x01\x12\x12\n\nis_deleted\x18\x0c \x01(\x08\x42\r\n\x0b_is_user_idB\x0f\n\r_last_seen_at"f\n\x15\x44istinctIdWithVersion\x12\x13\n\x0b\x64istinct_id\x18\x01 \x01(\t\x12\x14\n\x07version\x18\x02 \x01(\x03H\x00\x88\x01\x01\x12\x0f\n\x02id\x18\x03 \x01(\x03H\x01\x88\x01\x01\x42\n\n\x08_versionB\x05\n\x03_id"h\n\x15PersonWithDistinctIds\x12\x13\n\x0b\x64istinct_id\x18\x01 \x01(\t\x12/\n\x06person\x18\x02 \x01(\x0b\x32\x1a.personhog.types.v1.PersonH\x00\x88\x01\x01\x42\t\n\x07_person"g\n\x11PersonDistinctIds\x12\x11\n\tperson_id\x18\x01 \x01(\x03\x12?\n\x0c\x64istinct_ids\x18\x02 \x03(\x0b\x32).personhog.types.v1.DistinctIdWithVersion"\x87\x01\n\x18PersonWithTeamDistinctId\x12/\n\x03key\x18\x01 \x01(\x0b\x32".personhog.types.v1.TeamDistinctId\x12/\n\x06person\x18\x02 \x01(\x0b\x32\x1a.personhog.types.v1.PersonH\x00\x88\x01\x01\x42\t\n\x07_person"m\n\x10GetPersonRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"O\n\x11GetPersonResponse\x12/\n\x06person\x18\x01 \x01(\x0b\x32\x1a.personhog.types.v1.PersonH\x00\x88\x01\x01\x42\t\n\x07_person"o\n\x11GetPersonsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x12\n\nperson_ids\x18\x02 \x03(\x03\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"S\n\x0fPersonsResponse\x12+\n\x07persons\x18\x01 \x03(\x0b\x32\x1a.personhog.types.v1.Person\x12\x13\n\x0bmissing_ids\x18\x02 \x03(\x03"n\n\x16GetPersonByUuidRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x0c\n\x04uuid\x18\x02 \x01(\t\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"q\n\x18GetPersonsByUuidsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\r\n\x05uuids\x18\x02 \x03(\t\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"{\n\x1cGetPersonByDistinctIdRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x13\n\x0b\x64istinct_id\x18\x02 \x01(\t\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"\x84\x01\n$GetPersonsByDistinctIdsInTeamRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x14\n\x0c\x64istinct_ids\x18\x02 \x03(\t\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"`\n"PersonsByDistinctIdsInTeamResponse\x12:\n\x07results\x18\x01 \x03(\x0b\x32).personhog.types.v1.PersonWithDistinctIds"\x96\x01\n\x1eGetPersonsByDistinctIdsRequest\x12=\n\x11team_distinct_ids\x18\x01 \x03(\x0b\x32".personhog.types.v1.TeamDistinctId\x12\x35\n\x0cread_options\x18\x02 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"]\n\x1cPersonsByDistinctIdsResponse\x12=\n\x07results\x18\x01 \x03(\x0b\x32,.personhog.types.v1.PersonWithTeamDistinctId"\xbf\x01\n\x1eGetDistinctIdsForPersonRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions\x12\x12\n\x05limit\x18\x04 \x01(\x03H\x00\x88\x01\x01\x12\x16\n\tcursor_id\x18\x05 \x01(\x03H\x01\x88\x01\x01\x42\x08\n\x06_limitB\x0c\n\n_cursor_id"\x92\x01\n\x1fGetDistinctIdsForPersonResponse\x12?\n\x0c\x64istinct_ids\x18\x01 \x03(\x0b\x32).personhog.types.v1.DistinctIdWithVersion\x12\x1b\n\x0enext_cursor_id\x18\x02 \x01(\x03H\x00\x88\x01\x01\x42\x11\n\x0f_next_cursor_id"\xb1\x01\n\x1fGetDistinctIdsForPersonsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x12\n\nperson_ids\x18\x02 \x03(\x03\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions\x12\x1d\n\x10limit_per_person\x18\x04 \x01(\x03H\x00\x88\x01\x01\x42\x13\n\x11_limit_per_person"f\n GetDistinctIdsForPersonsResponse\x12\x42\n\x13person_distinct_ids\x18\x01 \x03(\x0b\x32%.personhog.types.v1.PersonDistinctIds"\x96\x02\n\x1dUpdatePersonPropertiesRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x12\n\nevent_name\x18\x03 \x01(\t\x12\x16\n\x0eset_properties\x18\x04 \x01(\x0c\x12\x1b\n\x13set_once_properties\x18\x05 \x01(\x0c\x12\x18\n\x10unset_properties\x18\x06 \x03(\t\x12\x1a\n\ris_identified\x18\x07 \x01(\x08H\x00\x88\x01\x01\x12\x19\n\x0clast_seen_at\x18\x08 \x01(\x03H\x01\x88\x01\x01\x12\x14\n\x0c\x66orce_update\x18\t \x01(\x08\x42\x10\n\x0e_is_identifiedB\x0f\n\r_last_seen_at"m\n\x1eUpdatePersonPropertiesResponse\x12/\n\x06person\x18\x01 \x01(\x0b\x32\x1a.personhog.types.v1.PersonH\x00\x88\x01\x01\x12\x0f\n\x07updated\x18\x02 \x01(\x08\x42\t\n\x07_person"r\n\x14\x44\x65letePersonsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x14\n\x0cperson_uuids\x18\x02 \x03(\t\x12\x33\n\x04mode\x18\x03 \x01(\x0e\x32%.personhog.types.v1.DeletePersonsMode"<\n\x14TombstonedDistinctId\x12\x13\n\x0b\x64istinct_id\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x03"x\n\x10TombstonedPerson\x12\x13\n\x0bperson_uuid\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x03\x12>\n\x0c\x64istinct_ids\x18\x03 \x03(\x0b\x32(.personhog.types.v1.TombstonedDistinctId"|\n\x15\x44\x65letePersonsResponse\x12\x15\n\rdeleted_count\x18\x01 \x01(\x03\x12\x12\n\ntombstoned\x18\x02 \x01(\x08\x12\x38\n\ntombstones\x18\x03 \x03(\x0b\x32$.personhog.types.v1.TombstonedPerson"C\n\x1aGetPersonTombstonesRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x14\n\x0cperson_uuids\x18\x02 \x03(\t"W\n\x1bGetPersonTombstonesResponse\x12\x38\n\ntombstones\x18\x01 \x03(\x0b\x32$.personhog.types.v1.TombstonedPerson"<\n\x14\x41\x63kedPersonTombstone\x12\x13\n\x0bperson_uuid\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x03"k\n\x1a\x41\x63kPersonTombstonesRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12<\n\ntombstones\x18\x02 \x03(\x0b\x32(.personhog.types.v1.AckedPersonTombstone"4\n\x1b\x41\x63kPersonTombstonesResponse\x12\x15\n\rcleared_count\x18\x01 \x01(\x03"\x84\x01\n\x1fListPersonTombstoneQueueRequest\x12\x15\n\rafter_team_id\x18\x01 \x01(\x03\x12\x19\n\x11\x61\x66ter_person_uuid\x18\x02 \x01(\t\x12\r\n\x05limit\x18\x03 \x01(\x03\x12\x14\n\x07team_id\x18\x04 \x01(\x03H\x00\x88\x01\x01\x42\n\n\x08_team_id"p\n\x19PersonTombstoneQueueEntry\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x13\n\x0bperson_uuid\x18\x02 \x01(\t\x12\x16\n\x0eperson_version\x18\x03 \x01(\x03\x12\x15\n\rtombstoned_at\x18\x04 \x01(\x03"b\n ListPersonTombstoneQueueResponse\x12>\n\x07\x65ntries\x18\x01 \x03(\x0b\x32-.personhog.types.v1.PersonTombstoneQueueEntry"G\n DeletePersonsBatchForTeamRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x12\n\nbatch_size\x18\x02 \x01(\x03":\n!DeletePersonsBatchForTeamResponse\x12\x15\n\rdeleted_count\x18\x01 \x01(\x03"\x9c\x01\n\x1e\x44\x65leteTombstonedPersonsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x14\n\x0cperson_uuids\x18\x02 \x03(\t\x12\x10\n\x08max_rows\x18\x03 \x01(\x03\x12\x41\n\x0f\x62ounded_persons\x18\x04 \x03(\x0b\x32(.personhog.types.v1.VersionBoundedPerson"@\n\x14VersionBoundedPerson\x12\x13\n\x0bperson_uuid\x18\x01 \x01(\t\x12\x13\n\x0bmax_version\x18\x02 \x01(\x03"\xe4\x01\n\x1f\x44\x65leteTombstonedPersonsResponse\x12\x15\n\rdeleted_count\x18\x01 \x01(\x03\x12\x1a\n\x12skipped_live_count\x18\x02 \x01(\x03\x12\x1c\n\x14\x62locked_person_uuids\x18\x03 \x03(\t\x12\x1c\n\x14pending_person_uuids\x18\x04 \x03(\t\x12\x14\n\x0crows_deleted\x18\x05 \x01(\x03\x12\x1d\n\x15version_guard_applied\x18\x06 \x01(\x08\x12\x1d\n\x15skipped_version_count\x18\x07 \x01(\x03"W\n\x12SplitPersonRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x1d\n\x15\x64istinct_ids_to_split\x18\x03 \x03(\t"\x8e\x01\n\x0bSplitResult\x12\x13\n\x0b\x64istinct_id\x18\x01 \x01(\t\x12\x17\n\x0fnew_person_uuid\x18\x02 \x01(\t\x12\x1a\n\x12new_person_version\x18\x03 \x01(\x03\x12\x13\n\x0bpdi_version\x18\x04 \x01(\x03\x12 \n\x18new_person_created_at_ms\x18\x05 \x01(\x03"F\n\x13SplitPersonResponse\x12/\n\x06splits\x18\x01 \x03(\x0b\x32\x1f.personhog.types.v1.SplitResult"c\n&SetPersonDistinctIdVersionFloorRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x13\n\x0b\x64istinct_id\x18\x02 \x01(\t\x12\x13\n\x0bmin_version\x18\x03 \x01(\x03"e\n\'SetPersonDistinctIdVersionFloorResponse\x12/\n\x06person\x18\x01 \x01(\x0b\x32\x1a.personhog.types.v1.PersonH\x00\x88\x01\x01\x42\t\n\x07_person"W\n\x1cSetPersonVersionFloorRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x13\n\x0bmin_version\x18\x03 \x01(\x03"0\n\x1dSetPersonVersionFloorResponse\x12\x0f\n\x07updated\x18\x01 \x01(\x08">\n\x12PersonVersionFloor\x12\x13\n\x0bperson_uuid\x18\x01 \x01(\t\x12\x13\n\x0bmin_version\x18\x02 \x01(\x03"k\n EnsurePersonVersionFloorsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x36\n\x06\x66loors\x18\x02 \x03(\x0b\x32&.personhog.types.v1.PersonVersionFloor"z\n\x18PersonVersionFloorResult\x12\x13\n\x0bperson_uuid\x18\x01 \x01(\t\x12\x38\n\x07outcome\x18\x02 \x01(\x0e\x32\'.personhog.types.v1.VersionFloorOutcome\x12\x0f\n\x07version\x18\x03 \x01(\x03"b\n!EnsurePersonVersionFloorsResponse\x12=\n\x07results\x18\x01 \x03(\x0b\x32,.personhog.types.v1.PersonVersionFloorResult"}\n\x12\x46\x65ncePersonRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\r\n\x05op_id\x18\x03 \x01(\t\x12\x34\n\x07op_type\x18\x04 \x01(\x0e\x32#.personhog.types.v1.LifecycleOpType"A\n\x13\x46\x65ncePersonResponse\x12*\n\x06sealed\x18\x01 \x01(\x0b\x32\x1a.personhog.types.v1.Person"\x7f\n\x13\x46\x65ncePersonsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\r\n\x05op_id\x18\x02 \x01(\t\x12\x34\n\x07op_type\x18\x03 \x01(\x0e\x32#.personhog.types.v1.LifecycleOpType\x12\x12\n\nperson_ids\x18\x04 \x03(\x03"_\n\x14\x46\x65ncePersonsResponse\x12\x34\n\x06sealed\x18\x01 \x03(\x0b\x32$.personhog.types.v1.FencedPersonSeal\x12\x11\n\tnot_found\x18\x02 \x03(\x03"J\n\x10\x46\x65ncedPersonSeal\x12\x11\n\tperson_id\x18\x01 \x01(\x03\x12\x0f\n\x07version\x18\x02 \x01(\x03\x12\x12\n\ncreated_at\x18\x03 \x01(\x03"\xd6\x01\n\x13ReleaseFenceRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x13\n\x0bperson_uuid\x18\x03 \x01(\t\x12\r\n\x05op_id\x18\x04 \x01(\t\x12\x33\n\x07outcome\x18\x05 \x01(\x0e\x32".personhog.types.v1.ReleaseOutcome\x12\x1b\n\x0esealed_version\x18\x06 \x01(\x03H\x00\x88\x01\x01\x12\x12\n\ncreated_at\x18\x07 \x01(\x03\x42\x11\n\x0f_sealed_version"\x16\n\x14ReleaseFenceResponse"\xa2\x01\n\x14ReleaseFencesRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\r\n\x05op_id\x18\x02 \x01(\t\x12\x33\n\x07outcome\x18\x03 \x01(\x0e\x32".personhog.types.v1.ReleaseOutcome\x12\x35\n\x07persons\x18\x04 \x03(\x0b\x32$.personhog.types.v1.ReleaseFenceItem"~\n\x10ReleaseFenceItem\x12\x11\n\tperson_id\x18\x01 \x01(\x03\x12\x13\n\x0bperson_uuid\x18\x02 \x01(\t\x12\x1b\n\x0esealed_version\x18\x03 \x01(\x03H\x00\x88\x01\x01\x12\x12\n\ncreated_at\x18\x04 \x01(\x03\x42\x11\n\x0f_sealed_version"\x17\n\x15ReleaseFencesResponse"S\n\x14SealedSourceSnapshot\x12*\n\x06person\x18\x01 \x01(\x0b\x32\x1a.personhog.types.v1.Person\x12\x0f\n\x07ordinal\x18\x02 \x01(\x05"\xbd\x01\n\x19\x46oldPersonDocumentRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x42\n\x10sealed_snapshots\x18\x03 \x03(\x0b\x32(.personhog.types.v1.SealedSourceSnapshot\x12\x11\n\tevent_set\x18\x04 \x01(\x0c\x12\x16\n\x0e\x65vent_set_once\x18\x05 \x01(\x0c\x12\r\n\x05op_id\x18\x06 \x01(\t"H\n\x1a\x46oldPersonDocumentResponse\x12*\n\x06person\x18\x01 \x01(\x0b\x32\x1a.personhog.types.v1.Person"\xbc\x01\n\rDistinctIdRow\x12\x13\n\x0b\x64istinct_id\x18\x01 \x01(\t\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x18\n\x0bperson_uuid\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x0f\n\x07version\x18\x04 \x01(\x03\x12\x12\n\nis_deleted\x18\x05 \x01(\x08\x12\x1e\n\x11person_is_deleted\x18\x06 \x01(\x08H\x01\x88\x01\x01\x42\x0e\n\x0c_person_uuidB\x14\n\x12_person_is_deleted"x\n\x18GetDistinctIdRowsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x14\n\x0c\x64istinct_ids\x18\x02 \x03(\t\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"L\n\x19GetDistinctIdRowsResponse\x12/\n\x04rows\x18\x01 \x03(\x0b\x32!.personhog.types.v1.DistinctIdRow"\x86\x01\n\x0fPersonListEntry\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0c\n\x04uuid\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\x03\x12\x12\n\nis_deleted\x18\x04 \x01(\x08\x12\x1d\n\x15has_live_distinct_ids\x18\x05 \x01(\x08\x12\x15\n\rcreated_at_ms\x18\x06 \x01(\x03"\xbf\x01\n\x19ListPersonsForTeamRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x17\n\x0f\x61\x66ter_person_id\x18\x02 \x01(\x03\x12\r\n\x05limit\x18\x03 \x01(\x03\x12\x35\n\x0cread_options\x18\x04 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions\x12\x1d\n\x10\x62\x65\x66ore_person_id\x18\x05 \x01(\x03H\x00\x88\x01\x01\x42\x13\n\x11_before_person_id"\x8e\x01\n\x1aListPersonsForTeamResponse\x12\x34\n\x07persons\x18\x01 \x03(\x0b\x32#.personhog.types.v1.PersonListEntry\x12!\n\x14next_after_person_id\x18\x02 \x01(\x03H\x00\x88\x01\x01\x42\x17\n\x15_next_after_person_id"j\n\x1fRaisePersonVersionFloorsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x36\n\x06\x66loors\x18\x02 \x03(\x0b\x32&.personhog.types.v1.PersonVersionFloor"x\n\x1dRaisePersonVersionFloorResult\x12\x13\n\x0bperson_uuid\x18\x01 \x01(\t\x12\x31\n\x07outcome\x18\x02 \x01(\x0e\x32 .personhog.types.v1.RaiseOutcome\x12\x0f\n\x07version\x18\x03 \x01(\x03"f\n RaisePersonVersionFloorsResponse\x12\x42\n\x07results\x18\x01 \x03(\x0b\x32\x31.personhog.types.v1.RaisePersonVersionFloorResult"\xb6\x01\n\x0eRestoredPerson\x12\x13\n\x0bperson_uuid\x18\x01 \x01(\t\x12\x12\n\nproperties\x18\x02 \x01(\x0c\x12\x15\n\rcreated_at_ms\x18\x03 \x01(\x03\x12\x15\n\ris_identified\x18\x04 \x01(\x08\x12\x0f\n\x07version\x18\x05 \x01(\x03\x12<\n\x0c\x64istinct_ids\x18\x06 \x03(\x0b\x32&.personhog.types.v1.RestoredDistinctId":\n\x12RestoredDistinctId\x12\x13\n\x0b\x64istinct_id\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x03"]\n\x15RestorePersonsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x33\n\x07persons\x18\x02 \x03(\x0b\x32".personhog.types.v1.RestoredPerson"\xa2\x01\n\x13RestorePersonResult\x12\x13\n\x0bperson_uuid\x18\x01 \x01(\t\x12\x33\n\x07outcome\x18\x02 \x01(\x0e\x32".personhog.types.v1.RestoreOutcome\x12\x11\n\tperson_id\x18\x03 \x01(\x03\x12\x0f\n\x07version\x18\x04 \x01(\x03\x12\x1d\n\x15restored_distinct_ids\x18\x05 \x03(\t"R\n\x16RestorePersonsResponse\x12\x38\n\x07results\x18\x01 \x03(\x0b\x32\'.personhog.types.v1.RestorePersonResult*y\n\x11\x44\x65letePersonsMode\x12#\n\x1f\x44\x45LETE_PERSONS_MODE_UNSPECIFIED\x10\x00\x12\x1c\n\x18\x44\x45LETE_PERSONS_MODE_HARD\x10\x01\x12!\n\x1d\x44\x45LETE_PERSONS_MODE_TOMBSTONE\x10\x02*\xe4\x01\n\x13VersionFloorOutcome\x12%\n!VERSION_FLOOR_OUTCOME_UNSPECIFIED\x10\x00\x12,\n(VERSION_FLOOR_OUTCOME_TOMBSTONE_INSERTED\x10\x01\x12*\n&VERSION_FLOOR_OUTCOME_TOMBSTONE_RAISED\x10\x02\x12,\n(VERSION_FLOOR_OUTCOME_TOMBSTONE_AT_FLOOR\x10\x03\x12\x1e\n\x1aVERSION_FLOOR_OUTCOME_LIVE\x10\x04*o\n\x0fLifecycleOpType\x12!\n\x1dLIFECYCLE_OP_TYPE_UNSPECIFIED\x10\x00\x12\x1c\n\x18LIFECYCLE_OP_TYPE_DELETE\x10\x01\x12\x1b\n\x17LIFECYCLE_OP_TYPE_MERGE\x10\x02*m\n\x0eReleaseOutcome\x12\x1f\n\x1bRELEASE_OUTCOME_UNSPECIFIED\x10\x00\x12\x1d\n\x19RELEASE_OUTCOME_COMMITTED\x10\x01\x12\x1b\n\x17RELEASE_OUTCOME_ABORTED\x10\x02*\x9d\x01\n\x0cRaiseOutcome\x12\x1d\n\x19RAISE_OUTCOME_UNSPECIFIED\x10\x00\x12\x18\n\x14RAISE_OUTCOME_RAISED\x10\x01\x12\x1d\n\x19RAISE_OUTCOME_AT_OR_ABOVE\x10\x02\x12\x1a\n\x16RAISE_OUTCOME_NOT_LIVE\x10\x03\x12\x19\n\x15RAISE_OUTCOME_MISSING\x10\x04*\xbb\x01\n\x0eRestoreOutcome\x12\x1f\n\x1bRESTORE_OUTCOME_UNSPECIFIED\x10\x00\x12\x1c\n\x18RESTORE_OUTCOME_INSERTED\x10\x01\x12\x1f\n\x1bRESTORE_OUTCOME_EXISTS_LIVE\x10\x02\x12%\n!RESTORE_OUTCOME_EXISTS_TOMBSTONED\x10\x03\x12"\n\x1eRESTORE_OUTCOME_NO_DISTINCT_ID\x10\x04\x62\x06proto3'
+ b'\n\x1fpersonhog/types/v1/person.proto\x12\x12personhog.types.v1\x1a\x1fpersonhog/types/v1/common.proto"\xb2\x02\n\x06Person\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0c\n\x04uuid\x18\x02 \x01(\t\x12\x0f\n\x07team_id\x18\x03 \x01(\x03\x12\x12\n\nproperties\x18\x04 \x01(\x0c\x12"\n\x1aproperties_last_updated_at\x18\x05 \x01(\x0c\x12!\n\x19properties_last_operation\x18\x06 \x01(\x0c\x12\x12\n\ncreated_at\x18\x07 \x01(\x03\x12\x0f\n\x07version\x18\x08 \x01(\x03\x12\x15\n\ris_identified\x18\t \x01(\x08\x12\x17\n\nis_user_id\x18\n \x01(\x08H\x00\x88\x01\x01\x12\x19\n\x0clast_seen_at\x18\x0b \x01(\x03H\x01\x88\x01\x01\x12\x12\n\nis_deleted\x18\x0c \x01(\x08\x42\r\n\x0b_is_user_idB\x0f\n\r_last_seen_at"f\n\x15\x44istinctIdWithVersion\x12\x13\n\x0b\x64istinct_id\x18\x01 \x01(\t\x12\x14\n\x07version\x18\x02 \x01(\x03H\x00\x88\x01\x01\x12\x0f\n\x02id\x18\x03 \x01(\x03H\x01\x88\x01\x01\x42\n\n\x08_versionB\x05\n\x03_id"h\n\x15PersonWithDistinctIds\x12\x13\n\x0b\x64istinct_id\x18\x01 \x01(\t\x12/\n\x06person\x18\x02 \x01(\x0b\x32\x1a.personhog.types.v1.PersonH\x00\x88\x01\x01\x42\t\n\x07_person"g\n\x11PersonDistinctIds\x12\x11\n\tperson_id\x18\x01 \x01(\x03\x12?\n\x0c\x64istinct_ids\x18\x02 \x03(\x0b\x32).personhog.types.v1.DistinctIdWithVersion"\x87\x01\n\x18PersonWithTeamDistinctId\x12/\n\x03key\x18\x01 \x01(\x0b\x32".personhog.types.v1.TeamDistinctId\x12/\n\x06person\x18\x02 \x01(\x0b\x32\x1a.personhog.types.v1.PersonH\x00\x88\x01\x01\x42\t\n\x07_person"m\n\x10GetPersonRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"O\n\x11GetPersonResponse\x12/\n\x06person\x18\x01 \x01(\x0b\x32\x1a.personhog.types.v1.PersonH\x00\x88\x01\x01\x42\t\n\x07_person"o\n\x11GetPersonsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x12\n\nperson_ids\x18\x02 \x03(\x03\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"S\n\x0fPersonsResponse\x12+\n\x07persons\x18\x01 \x03(\x0b\x32\x1a.personhog.types.v1.Person\x12\x13\n\x0bmissing_ids\x18\x02 \x03(\x03"n\n\x16GetPersonByUuidRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x0c\n\x04uuid\x18\x02 \x01(\t\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"q\n\x18GetPersonsByUuidsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\r\n\x05uuids\x18\x02 \x03(\t\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"{\n\x1cGetPersonByDistinctIdRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x13\n\x0b\x64istinct_id\x18\x02 \x01(\t\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"\x84\x01\n$GetPersonsByDistinctIdsInTeamRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x14\n\x0c\x64istinct_ids\x18\x02 \x03(\t\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"`\n"PersonsByDistinctIdsInTeamResponse\x12:\n\x07results\x18\x01 \x03(\x0b\x32).personhog.types.v1.PersonWithDistinctIds"\x96\x01\n\x1eGetPersonsByDistinctIdsRequest\x12=\n\x11team_distinct_ids\x18\x01 \x03(\x0b\x32".personhog.types.v1.TeamDistinctId\x12\x35\n\x0cread_options\x18\x02 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"]\n\x1cPersonsByDistinctIdsResponse\x12=\n\x07results\x18\x01 \x03(\x0b\x32,.personhog.types.v1.PersonWithTeamDistinctId"\xbf\x01\n\x1eGetDistinctIdsForPersonRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions\x12\x12\n\x05limit\x18\x04 \x01(\x03H\x00\x88\x01\x01\x12\x16\n\tcursor_id\x18\x05 \x01(\x03H\x01\x88\x01\x01\x42\x08\n\x06_limitB\x0c\n\n_cursor_id"\x92\x01\n\x1fGetDistinctIdsForPersonResponse\x12?\n\x0c\x64istinct_ids\x18\x01 \x03(\x0b\x32).personhog.types.v1.DistinctIdWithVersion\x12\x1b\n\x0enext_cursor_id\x18\x02 \x01(\x03H\x00\x88\x01\x01\x42\x11\n\x0f_next_cursor_id"\xb1\x01\n\x1fGetDistinctIdsForPersonsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x12\n\nperson_ids\x18\x02 \x03(\x03\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions\x12\x1d\n\x10limit_per_person\x18\x04 \x01(\x03H\x00\x88\x01\x01\x42\x13\n\x11_limit_per_person"f\n GetDistinctIdsForPersonsResponse\x12\x42\n\x13person_distinct_ids\x18\x01 \x03(\x0b\x32%.personhog.types.v1.PersonDistinctIds"\x96\x02\n\x1dUpdatePersonPropertiesRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x12\n\nevent_name\x18\x03 \x01(\t\x12\x16\n\x0eset_properties\x18\x04 \x01(\x0c\x12\x1b\n\x13set_once_properties\x18\x05 \x01(\x0c\x12\x18\n\x10unset_properties\x18\x06 \x03(\t\x12\x1a\n\ris_identified\x18\x07 \x01(\x08H\x00\x88\x01\x01\x12\x19\n\x0clast_seen_at\x18\x08 \x01(\x03H\x01\x88\x01\x01\x12\x14\n\x0c\x66orce_update\x18\t \x01(\x08\x42\x10\n\x0e_is_identifiedB\x0f\n\r_last_seen_at"m\n\x1eUpdatePersonPropertiesResponse\x12/\n\x06person\x18\x01 \x01(\x0b\x32\x1a.personhog.types.v1.PersonH\x00\x88\x01\x01\x12\x0f\n\x07updated\x18\x02 \x01(\x08\x42\t\n\x07_person"r\n\x14\x44\x65letePersonsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x14\n\x0cperson_uuids\x18\x02 \x03(\t\x12\x33\n\x04mode\x18\x03 \x01(\x0e\x32%.personhog.types.v1.DeletePersonsMode"<\n\x14TombstonedDistinctId\x12\x13\n\x0b\x64istinct_id\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x03"x\n\x10TombstonedPerson\x12\x13\n\x0bperson_uuid\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x03\x12>\n\x0c\x64istinct_ids\x18\x03 \x03(\x0b\x32(.personhog.types.v1.TombstonedDistinctId"|\n\x15\x44\x65letePersonsResponse\x12\x15\n\rdeleted_count\x18\x01 \x01(\x03\x12\x12\n\ntombstoned\x18\x02 \x01(\x08\x12\x38\n\ntombstones\x18\x03 \x03(\x0b\x32$.personhog.types.v1.TombstonedPerson"C\n\x1aGetPersonTombstonesRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x14\n\x0cperson_uuids\x18\x02 \x03(\t"W\n\x1bGetPersonTombstonesResponse\x12\x38\n\ntombstones\x18\x01 \x03(\x0b\x32$.personhog.types.v1.TombstonedPerson"<\n\x14\x41\x63kedPersonTombstone\x12\x13\n\x0bperson_uuid\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x03"k\n\x1a\x41\x63kPersonTombstonesRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12<\n\ntombstones\x18\x02 \x03(\x0b\x32(.personhog.types.v1.AckedPersonTombstone"4\n\x1b\x41\x63kPersonTombstonesResponse\x12\x15\n\rcleared_count\x18\x01 \x01(\x03"\x84\x01\n\x1fListPersonTombstoneQueueRequest\x12\x15\n\rafter_team_id\x18\x01 \x01(\x03\x12\x19\n\x11\x61\x66ter_person_uuid\x18\x02 \x01(\t\x12\r\n\x05limit\x18\x03 \x01(\x03\x12\x14\n\x07team_id\x18\x04 \x01(\x03H\x00\x88\x01\x01\x42\n\n\x08_team_id"p\n\x19PersonTombstoneQueueEntry\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x13\n\x0bperson_uuid\x18\x02 \x01(\t\x12\x16\n\x0eperson_version\x18\x03 \x01(\x03\x12\x15\n\rtombstoned_at\x18\x04 \x01(\x03"b\n ListPersonTombstoneQueueResponse\x12>\n\x07\x65ntries\x18\x01 \x03(\x0b\x32-.personhog.types.v1.PersonTombstoneQueueEntry"G\n DeletePersonsBatchForTeamRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x12\n\nbatch_size\x18\x02 \x01(\x03":\n!DeletePersonsBatchForTeamResponse\x12\x15\n\rdeleted_count\x18\x01 \x01(\x03"\x9c\x01\n\x1e\x44\x65leteTombstonedPersonsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x14\n\x0cperson_uuids\x18\x02 \x03(\t\x12\x10\n\x08max_rows\x18\x03 \x01(\x03\x12\x41\n\x0f\x62ounded_persons\x18\x04 \x03(\x0b\x32(.personhog.types.v1.VersionBoundedPerson"@\n\x14VersionBoundedPerson\x12\x13\n\x0bperson_uuid\x18\x01 \x01(\t\x12\x13\n\x0bmax_version\x18\x02 \x01(\x03"\xe4\x01\n\x1f\x44\x65leteTombstonedPersonsResponse\x12\x15\n\rdeleted_count\x18\x01 \x01(\x03\x12\x1a\n\x12skipped_live_count\x18\x02 \x01(\x03\x12\x1c\n\x14\x62locked_person_uuids\x18\x03 \x03(\t\x12\x1c\n\x14pending_person_uuids\x18\x04 \x03(\t\x12\x14\n\x0crows_deleted\x18\x05 \x01(\x03\x12\x1d\n\x15version_guard_applied\x18\x06 \x01(\x08\x12\x1d\n\x15skipped_version_count\x18\x07 \x01(\x03"W\n\x12SplitPersonRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x1d\n\x15\x64istinct_ids_to_split\x18\x03 \x03(\t"\x8e\x01\n\x0bSplitResult\x12\x13\n\x0b\x64istinct_id\x18\x01 \x01(\t\x12\x17\n\x0fnew_person_uuid\x18\x02 \x01(\t\x12\x1a\n\x12new_person_version\x18\x03 \x01(\x03\x12\x13\n\x0bpdi_version\x18\x04 \x01(\x03\x12 \n\x18new_person_created_at_ms\x18\x05 \x01(\x03"F\n\x13SplitPersonResponse\x12/\n\x06splits\x18\x01 \x03(\x0b\x32\x1f.personhog.types.v1.SplitResult"c\n&SetPersonDistinctIdVersionFloorRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x13\n\x0b\x64istinct_id\x18\x02 \x01(\t\x12\x13\n\x0bmin_version\x18\x03 \x01(\x03"e\n\'SetPersonDistinctIdVersionFloorResponse\x12/\n\x06person\x18\x01 \x01(\x0b\x32\x1a.personhog.types.v1.PersonH\x00\x88\x01\x01\x42\t\n\x07_person"W\n\x1cSetPersonVersionFloorRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x13\n\x0bmin_version\x18\x03 \x01(\x03"0\n\x1dSetPersonVersionFloorResponse\x12\x0f\n\x07updated\x18\x01 \x01(\x08">\n\x12PersonVersionFloor\x12\x13\n\x0bperson_uuid\x18\x01 \x01(\t\x12\x13\n\x0bmin_version\x18\x02 \x01(\x03"k\n EnsurePersonVersionFloorsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x36\n\x06\x66loors\x18\x02 \x03(\x0b\x32&.personhog.types.v1.PersonVersionFloor"z\n\x18PersonVersionFloorResult\x12\x13\n\x0bperson_uuid\x18\x01 \x01(\t\x12\x38\n\x07outcome\x18\x02 \x01(\x0e\x32\'.personhog.types.v1.VersionFloorOutcome\x12\x0f\n\x07version\x18\x03 \x01(\x03"b\n!EnsurePersonVersionFloorsResponse\x12=\n\x07results\x18\x01 \x03(\x0b\x32,.personhog.types.v1.PersonVersionFloorResult"}\n\x12\x46\x65ncePersonRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\r\n\x05op_id\x18\x03 \x01(\t\x12\x34\n\x07op_type\x18\x04 \x01(\x0e\x32#.personhog.types.v1.LifecycleOpType"A\n\x13\x46\x65ncePersonResponse\x12*\n\x06sealed\x18\x01 \x01(\x0b\x32\x1a.personhog.types.v1.Person"\x7f\n\x13\x46\x65ncePersonsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\r\n\x05op_id\x18\x02 \x01(\t\x12\x34\n\x07op_type\x18\x03 \x01(\x0e\x32#.personhog.types.v1.LifecycleOpType\x12\x12\n\nperson_ids\x18\x04 \x03(\x03"_\n\x14\x46\x65ncePersonsResponse\x12\x34\n\x06sealed\x18\x01 \x03(\x0b\x32$.personhog.types.v1.FencedPersonSeal\x12\x11\n\tnot_found\x18\x02 \x03(\x03"J\n\x10\x46\x65ncedPersonSeal\x12\x11\n\tperson_id\x18\x01 \x01(\x03\x12\x0f\n\x07version\x18\x02 \x01(\x03\x12\x12\n\ncreated_at\x18\x03 \x01(\x03"\xd6\x01\n\x13ReleaseFenceRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x13\n\x0bperson_uuid\x18\x03 \x01(\t\x12\r\n\x05op_id\x18\x04 \x01(\t\x12\x33\n\x07outcome\x18\x05 \x01(\x0e\x32".personhog.types.v1.ReleaseOutcome\x12\x1b\n\x0esealed_version\x18\x06 \x01(\x03H\x00\x88\x01\x01\x12\x12\n\ncreated_at\x18\x07 \x01(\x03\x42\x11\n\x0f_sealed_version"\x16\n\x14ReleaseFenceResponse"\xa2\x01\n\x14ReleaseFencesRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\r\n\x05op_id\x18\x02 \x01(\t\x12\x33\n\x07outcome\x18\x03 \x01(\x0e\x32".personhog.types.v1.ReleaseOutcome\x12\x35\n\x07persons\x18\x04 \x03(\x0b\x32$.personhog.types.v1.ReleaseFenceItem"~\n\x10ReleaseFenceItem\x12\x11\n\tperson_id\x18\x01 \x01(\x03\x12\x13\n\x0bperson_uuid\x18\x02 \x01(\t\x12\x1b\n\x0esealed_version\x18\x03 \x01(\x03H\x00\x88\x01\x01\x12\x12\n\ncreated_at\x18\x04 \x01(\x03\x42\x11\n\x0f_sealed_version"\x17\n\x15ReleaseFencesResponse"S\n\x14SealedSourceSnapshot\x12*\n\x06person\x18\x01 \x01(\x0b\x32\x1a.personhog.types.v1.Person\x12\x0f\n\x07ordinal\x18\x02 \x01(\x05"\xbd\x01\n\x19\x46oldPersonDocumentRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x42\n\x10sealed_snapshots\x18\x03 \x03(\x0b\x32(.personhog.types.v1.SealedSourceSnapshot\x12\x11\n\tevent_set\x18\x04 \x01(\x0c\x12\x16\n\x0e\x65vent_set_once\x18\x05 \x01(\x0c\x12\r\n\x05op_id\x18\x06 \x01(\t"H\n\x1a\x46oldPersonDocumentResponse\x12*\n\x06person\x18\x01 \x01(\x0b\x32\x1a.personhog.types.v1.Person"\xbc\x01\n\rDistinctIdRow\x12\x13\n\x0b\x64istinct_id\x18\x01 \x01(\t\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x18\n\x0bperson_uuid\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x0f\n\x07version\x18\x04 \x01(\x03\x12\x12\n\nis_deleted\x18\x05 \x01(\x08\x12\x1e\n\x11person_is_deleted\x18\x06 \x01(\x08H\x01\x88\x01\x01\x42\x0e\n\x0c_person_uuidB\x14\n\x12_person_is_deleted"x\n\x18GetDistinctIdRowsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x14\n\x0c\x64istinct_ids\x18\x02 \x03(\t\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"L\n\x19GetDistinctIdRowsResponse\x12/\n\x04rows\x18\x01 \x03(\x0b\x32!.personhog.types.v1.DistinctIdRow"\x86\x01\n\x0fPersonListEntry\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0c\n\x04uuid\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\x03\x12\x12\n\nis_deleted\x18\x04 \x01(\x08\x12\x1d\n\x15has_live_distinct_ids\x18\x05 \x01(\x08\x12\x15\n\rcreated_at_ms\x18\x06 \x01(\x03"\xbf\x01\n\x19ListPersonsForTeamRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x17\n\x0f\x61\x66ter_person_id\x18\x02 \x01(\x03\x12\r\n\x05limit\x18\x03 \x01(\x03\x12\x35\n\x0cread_options\x18\x04 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions\x12\x1d\n\x10\x62\x65\x66ore_person_id\x18\x05 \x01(\x03H\x00\x88\x01\x01\x42\x13\n\x11_before_person_id"\x8e\x01\n\x1aListPersonsForTeamResponse\x12\x34\n\x07persons\x18\x01 \x03(\x0b\x32#.personhog.types.v1.PersonListEntry\x12!\n\x14next_after_person_id\x18\x02 \x01(\x03H\x00\x88\x01\x01\x42\x17\n\x15_next_after_person_id"j\n\x1fRaisePersonVersionFloorsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x36\n\x06\x66loors\x18\x02 \x03(\x0b\x32&.personhog.types.v1.PersonVersionFloor"x\n\x1dRaisePersonVersionFloorResult\x12\x13\n\x0bperson_uuid\x18\x01 \x01(\t\x12\x31\n\x07outcome\x18\x02 \x01(\x0e\x32 .personhog.types.v1.RaiseOutcome\x12\x0f\n\x07version\x18\x03 \x01(\x03"f\n RaisePersonVersionFloorsResponse\x12\x42\n\x07results\x18\x01 \x03(\x0b\x32\x31.personhog.types.v1.RaisePersonVersionFloorResult"\xb6\x01\n\x0eRestoredPerson\x12\x13\n\x0bperson_uuid\x18\x01 \x01(\t\x12\x12\n\nproperties\x18\x02 \x01(\x0c\x12\x15\n\rcreated_at_ms\x18\x03 \x01(\x03\x12\x15\n\ris_identified\x18\x04 \x01(\x08\x12\x0f\n\x07version\x18\x05 \x01(\x03\x12<\n\x0c\x64istinct_ids\x18\x06 \x03(\x0b\x32&.personhog.types.v1.RestoredDistinctId":\n\x12RestoredDistinctId\x12\x13\n\x0b\x64istinct_id\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x03"]\n\x15RestorePersonsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x33\n\x07persons\x18\x02 \x03(\x0b\x32".personhog.types.v1.RestoredPerson"\xa2\x01\n\x13RestorePersonResult\x12\x13\n\x0bperson_uuid\x18\x01 \x01(\t\x12\x33\n\x07outcome\x18\x02 \x01(\x0e\x32".personhog.types.v1.RestoreOutcome\x12\x11\n\tperson_id\x18\x03 \x01(\x03\x12\x0f\n\x07version\x18\x04 \x01(\x03\x12\x1d\n\x15restored_distinct_ids\x18\x05 \x03(\t"R\n\x16RestorePersonsResponse\x12\x38\n\x07results\x18\x01 \x03(\x0b\x32\'.personhog.types.v1.RestorePersonResult"\xbf\x01\n\x0f\x44istinctIdWrite\x12\x13\n\x0b\x64istinct_id\x18\x01 \x01(\t\x12\x39\n\x06\x61\x63tion\x18\x02 \x01(\x0e\x32).personhog.types.v1.DistinctIdWriteAction\x12\x13\n\x0bperson_uuid\x18\x03 \x01(\t\x12\x13\n\x0bmin_version\x18\x04 \x01(\x03\x12\x1d\n\x10\x65xpected_version\x18\x05 \x01(\x03H\x00\x88\x01\x01\x42\x13\n\x11_expected_version"_\n\x17WriteDistinctIdsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x33\n\x06writes\x18\x02 \x03(\x0b\x32#.personhog.types.v1.DistinctIdWrite"\xa6\x01\n\x15\x44istinctIdWriteResult\x12\x13\n\x0b\x64istinct_id\x18\x01 \x01(\t\x12;\n\x07outcome\x18\x02 \x01(\x0e\x32*.personhog.types.v1.DistinctIdWriteOutcome\x12\x33\n\x03row\x18\x03 \x01(\x0b\x32!.personhog.types.v1.DistinctIdRowH\x00\x88\x01\x01\x42\x06\n\x04_row"V\n\x18WriteDistinctIdsResponse\x12:\n\x07results\x18\x01 \x03(\x0b\x32).personhog.types.v1.DistinctIdWriteResult*y\n\x11\x44\x65letePersonsMode\x12#\n\x1f\x44\x45LETE_PERSONS_MODE_UNSPECIFIED\x10\x00\x12\x1c\n\x18\x44\x45LETE_PERSONS_MODE_HARD\x10\x01\x12!\n\x1d\x44\x45LETE_PERSONS_MODE_TOMBSTONE\x10\x02*\xe4\x01\n\x13VersionFloorOutcome\x12%\n!VERSION_FLOOR_OUTCOME_UNSPECIFIED\x10\x00\x12,\n(VERSION_FLOOR_OUTCOME_TOMBSTONE_INSERTED\x10\x01\x12*\n&VERSION_FLOOR_OUTCOME_TOMBSTONE_RAISED\x10\x02\x12,\n(VERSION_FLOOR_OUTCOME_TOMBSTONE_AT_FLOOR\x10\x03\x12\x1e\n\x1aVERSION_FLOOR_OUTCOME_LIVE\x10\x04*o\n\x0fLifecycleOpType\x12!\n\x1dLIFECYCLE_OP_TYPE_UNSPECIFIED\x10\x00\x12\x1c\n\x18LIFECYCLE_OP_TYPE_DELETE\x10\x01\x12\x1b\n\x17LIFECYCLE_OP_TYPE_MERGE\x10\x02*m\n\x0eReleaseOutcome\x12\x1f\n\x1bRELEASE_OUTCOME_UNSPECIFIED\x10\x00\x12\x1d\n\x19RELEASE_OUTCOME_COMMITTED\x10\x01\x12\x1b\n\x17RELEASE_OUTCOME_ABORTED\x10\x02*\x9d\x01\n\x0cRaiseOutcome\x12\x1d\n\x19RAISE_OUTCOME_UNSPECIFIED\x10\x00\x12\x18\n\x14RAISE_OUTCOME_RAISED\x10\x01\x12\x1d\n\x19RAISE_OUTCOME_AT_OR_ABOVE\x10\x02\x12\x1a\n\x16RAISE_OUTCOME_NOT_LIVE\x10\x03\x12\x19\n\x15RAISE_OUTCOME_MISSING\x10\x04*\xbb\x01\n\x0eRestoreOutcome\x12\x1f\n\x1bRESTORE_OUTCOME_UNSPECIFIED\x10\x00\x12\x1c\n\x18RESTORE_OUTCOME_INSERTED\x10\x01\x12\x1f\n\x1bRESTORE_OUTCOME_EXISTS_LIVE\x10\x02\x12%\n!RESTORE_OUTCOME_EXISTS_TOMBSTONED\x10\x03\x12"\n\x1eRESTORE_OUTCOME_NO_DISTINCT_ID\x10\x04*\x8a\x01\n\x15\x44istinctIdWriteAction\x12(\n$DISTINCT_ID_WRITE_ACTION_UNSPECIFIED\x10\x00\x12#\n\x1f\x44ISTINCT_ID_WRITE_ACTION_INSERT\x10\x01\x12"\n\x1e\x44ISTINCT_ID_WRITE_ACTION_RAISE\x10\x02*\xf5\x01\n\x16\x44istinctIdWriteOutcome\x12)\n%DISTINCT_ID_WRITE_OUTCOME_UNSPECIFIED\x10\x00\x12%\n!DISTINCT_ID_WRITE_OUTCOME_APPLIED\x10\x01\x12\'\n#DISTINCT_ID_WRITE_OUTCOME_UNCHANGED\x10\x02\x12\x31\n-DISTINCT_ID_WRITE_OUTCOME_PRECONDITION_FAILED\x10\x03\x12-\n)DISTINCT_ID_WRITE_OUTCOME_PERSON_NOT_LIVE\x10\x04\x62\x06proto3'
)
_globals = globals()
@@ -31,18 +31,22 @@ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "personhog.types.v1.person_pb2", _globals)
if not _descriptor._USE_C_DESCRIPTORS:
DESCRIPTOR._loaded_options = None
- _globals["_DELETEPERSONSMODE"]._serialized_start = 9081
- _globals["_DELETEPERSONSMODE"]._serialized_end = 9202
- _globals["_VERSIONFLOOROUTCOME"]._serialized_start = 9205
- _globals["_VERSIONFLOOROUTCOME"]._serialized_end = 9433
- _globals["_LIFECYCLEOPTYPE"]._serialized_start = 9435
- _globals["_LIFECYCLEOPTYPE"]._serialized_end = 9546
- _globals["_RELEASEOUTCOME"]._serialized_start = 9548
- _globals["_RELEASEOUTCOME"]._serialized_end = 9657
- _globals["_RAISEOUTCOME"]._serialized_start = 9660
- _globals["_RAISEOUTCOME"]._serialized_end = 9817
- _globals["_RESTOREOUTCOME"]._serialized_start = 9820
- _globals["_RESTOREOUTCOME"]._serialized_end = 10007
+ _globals["_DELETEPERSONSMODE"]._serialized_start = 9629
+ _globals["_DELETEPERSONSMODE"]._serialized_end = 9750
+ _globals["_VERSIONFLOOROUTCOME"]._serialized_start = 9753
+ _globals["_VERSIONFLOOROUTCOME"]._serialized_end = 9981
+ _globals["_LIFECYCLEOPTYPE"]._serialized_start = 9983
+ _globals["_LIFECYCLEOPTYPE"]._serialized_end = 10094
+ _globals["_RELEASEOUTCOME"]._serialized_start = 10096
+ _globals["_RELEASEOUTCOME"]._serialized_end = 10205
+ _globals["_RAISEOUTCOME"]._serialized_start = 10208
+ _globals["_RAISEOUTCOME"]._serialized_end = 10365
+ _globals["_RESTOREOUTCOME"]._serialized_start = 10368
+ _globals["_RESTOREOUTCOME"]._serialized_end = 10555
+ _globals["_DISTINCTIDWRITEACTION"]._serialized_start = 10558
+ _globals["_DISTINCTIDWRITEACTION"]._serialized_end = 10696
+ _globals["_DISTINCTIDWRITEOUTCOME"]._serialized_start = 10699
+ _globals["_DISTINCTIDWRITEOUTCOME"]._serialized_end = 10944
_globals["_PERSON"]._serialized_start = 89
_globals["_PERSON"]._serialized_end = 395
_globals["_DISTINCTIDWITHVERSION"]._serialized_start = 397
@@ -197,4 +201,12 @@ if not _descriptor._USE_C_DESCRIPTORS:
_globals["_RESTOREPERSONRESULT"]._serialized_end = 8995
_globals["_RESTOREPERSONSRESPONSE"]._serialized_start = 8997
_globals["_RESTOREPERSONSRESPONSE"]._serialized_end = 9079
+ _globals["_DISTINCTIDWRITE"]._serialized_start = 9082
+ _globals["_DISTINCTIDWRITE"]._serialized_end = 9273
+ _globals["_WRITEDISTINCTIDSREQUEST"]._serialized_start = 9275
+ _globals["_WRITEDISTINCTIDSREQUEST"]._serialized_end = 9370
+ _globals["_DISTINCTIDWRITERESULT"]._serialized_start = 9373
+ _globals["_DISTINCTIDWRITERESULT"]._serialized_end = 9539
+ _globals["_WRITEDISTINCTIDSRESPONSE"]._serialized_start = 9541
+ _globals["_WRITEDISTINCTIDSRESPONSE"]._serialized_end = 9627
# @@protoc_insertion_point(module_scope)
diff --git a/packages/personhog-proto/personhog/types/v1/person_pb2.pyi b/packages/personhog-proto/personhog/types/v1/person_pb2.pyi
index add94d4ca5ef..356255fc3699 100644
--- a/packages/personhog-proto/personhog/types/v1/person_pb2.pyi
+++ b/packages/personhog-proto/personhog/types/v1/person_pb2.pyi
@@ -63,6 +63,20 @@ class RestoreOutcome(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
RESTORE_OUTCOME_EXISTS_TOMBSTONED: _ClassVar[RestoreOutcome]
RESTORE_OUTCOME_NO_DISTINCT_ID: _ClassVar[RestoreOutcome]
+class DistinctIdWriteAction(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
+ __slots__ = ()
+ DISTINCT_ID_WRITE_ACTION_UNSPECIFIED: _ClassVar[DistinctIdWriteAction]
+ DISTINCT_ID_WRITE_ACTION_INSERT: _ClassVar[DistinctIdWriteAction]
+ DISTINCT_ID_WRITE_ACTION_RAISE: _ClassVar[DistinctIdWriteAction]
+
+class DistinctIdWriteOutcome(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
+ __slots__ = ()
+ DISTINCT_ID_WRITE_OUTCOME_UNSPECIFIED: _ClassVar[DistinctIdWriteOutcome]
+ DISTINCT_ID_WRITE_OUTCOME_APPLIED: _ClassVar[DistinctIdWriteOutcome]
+ DISTINCT_ID_WRITE_OUTCOME_UNCHANGED: _ClassVar[DistinctIdWriteOutcome]
+ DISTINCT_ID_WRITE_OUTCOME_PRECONDITION_FAILED: _ClassVar[DistinctIdWriteOutcome]
+ DISTINCT_ID_WRITE_OUTCOME_PERSON_NOT_LIVE: _ClassVar[DistinctIdWriteOutcome]
+
DELETE_PERSONS_MODE_UNSPECIFIED: DeletePersonsMode
DELETE_PERSONS_MODE_HARD: DeletePersonsMode
DELETE_PERSONS_MODE_TOMBSTONE: DeletePersonsMode
@@ -87,6 +101,14 @@ RESTORE_OUTCOME_INSERTED: RestoreOutcome
RESTORE_OUTCOME_EXISTS_LIVE: RestoreOutcome
RESTORE_OUTCOME_EXISTS_TOMBSTONED: RestoreOutcome
RESTORE_OUTCOME_NO_DISTINCT_ID: RestoreOutcome
+DISTINCT_ID_WRITE_ACTION_UNSPECIFIED: DistinctIdWriteAction
+DISTINCT_ID_WRITE_ACTION_INSERT: DistinctIdWriteAction
+DISTINCT_ID_WRITE_ACTION_RAISE: DistinctIdWriteAction
+DISTINCT_ID_WRITE_OUTCOME_UNSPECIFIED: DistinctIdWriteOutcome
+DISTINCT_ID_WRITE_OUTCOME_APPLIED: DistinctIdWriteOutcome
+DISTINCT_ID_WRITE_OUTCOME_UNCHANGED: DistinctIdWriteOutcome
+DISTINCT_ID_WRITE_OUTCOME_PRECONDITION_FAILED: DistinctIdWriteOutcome
+DISTINCT_ID_WRITE_OUTCOME_PERSON_NOT_LIVE: DistinctIdWriteOutcome
class Person(_message.Message):
__slots__ = (
@@ -1136,3 +1158,55 @@ class RestorePersonsResponse(_message.Message):
RESULTS_FIELD_NUMBER: _ClassVar[int]
results: _containers.RepeatedCompositeFieldContainer[RestorePersonResult]
def __init__(self, results: _Optional[_Iterable[_Union[RestorePersonResult, _Mapping]]] = ...) -> None: ...
+
+class DistinctIdWrite(_message.Message):
+ __slots__ = ("distinct_id", "action", "person_uuid", "min_version", "expected_version")
+ DISTINCT_ID_FIELD_NUMBER: _ClassVar[int]
+ ACTION_FIELD_NUMBER: _ClassVar[int]
+ PERSON_UUID_FIELD_NUMBER: _ClassVar[int]
+ MIN_VERSION_FIELD_NUMBER: _ClassVar[int]
+ EXPECTED_VERSION_FIELD_NUMBER: _ClassVar[int]
+ distinct_id: str
+ action: DistinctIdWriteAction
+ person_uuid: str
+ min_version: int
+ expected_version: int
+ def __init__(
+ self,
+ distinct_id: _Optional[str] = ...,
+ action: _Optional[_Union[DistinctIdWriteAction, str]] = ...,
+ person_uuid: _Optional[str] = ...,
+ min_version: _Optional[int] = ...,
+ expected_version: _Optional[int] = ...,
+ ) -> None: ...
+
+class WriteDistinctIdsRequest(_message.Message):
+ __slots__ = ("team_id", "writes")
+ TEAM_ID_FIELD_NUMBER: _ClassVar[int]
+ WRITES_FIELD_NUMBER: _ClassVar[int]
+ team_id: int
+ writes: _containers.RepeatedCompositeFieldContainer[DistinctIdWrite]
+ def __init__(
+ self, team_id: _Optional[int] = ..., writes: _Optional[_Iterable[_Union[DistinctIdWrite, _Mapping]]] = ...
+ ) -> None: ...
+
+class DistinctIdWriteResult(_message.Message):
+ __slots__ = ("distinct_id", "outcome", "row")
+ DISTINCT_ID_FIELD_NUMBER: _ClassVar[int]
+ OUTCOME_FIELD_NUMBER: _ClassVar[int]
+ ROW_FIELD_NUMBER: _ClassVar[int]
+ distinct_id: str
+ outcome: DistinctIdWriteOutcome
+ row: DistinctIdRow
+ def __init__(
+ self,
+ distinct_id: _Optional[str] = ...,
+ outcome: _Optional[_Union[DistinctIdWriteOutcome, str]] = ...,
+ row: _Optional[_Union[DistinctIdRow, _Mapping]] = ...,
+ ) -> None: ...
+
+class WriteDistinctIdsResponse(_message.Message):
+ __slots__ = ("results",)
+ RESULTS_FIELD_NUMBER: _ClassVar[int]
+ results: _containers.RepeatedCompositeFieldContainer[DistinctIdWriteResult]
+ def __init__(self, results: _Optional[_Iterable[_Union[DistinctIdWriteResult, _Mapping]]] = ...) -> None: ...
diff --git a/posthog/personhog_client/client.py b/posthog/personhog_client/client.py
index 24ab245dc8e2..a52ea7c0b8b7 100644
--- a/posthog/personhog_client/client.py
+++ b/posthog/personhog_client/client.py
@@ -104,6 +104,8 @@ from posthog.personhog_client.proto import (
UpdateGroupResponse,
UpdateGroupTypeMappingRequest,
UpdateGroupTypeMappingResponse,
+ WriteDistinctIdsRequest,
+ WriteDistinctIdsResponse,
)
logger = structlog.get_logger(__name__)
@@ -296,6 +298,11 @@ class PersonHogClient:
def restore_persons(self, request: RestorePersonsRequest, timeout: float | None = None) -> RestorePersonsResponse:
return self._stub.RestorePersons(request, timeout=timeout or self._timeout)
+ def write_distinct_ids(
+ self, request: WriteDistinctIdsRequest, timeout: float | None = None
+ ) -> WriteDistinctIdsResponse:
+ return self._stub.WriteDistinctIds(request, timeout=timeout or self._timeout)
+
# -- Person lookups --
def get_person(self, request: GetPersonRequest) -> GetPersonResponse:
diff --git a/posthog/personhog_client/fake_client.py b/posthog/personhog_client/fake_client.py
index b4ac2fb7c38d..f9abbf26326a 100644
--- a/posthog/personhog_client/fake_client.py
+++ b/posthog/personhog_client/fake_client.py
@@ -1133,6 +1133,75 @@ class FakePersonHogClient:
)
return response
+ def _mapping_row(self, team_id: int, distinct_id: str) -> person_pb2.DistinctIdRow | None:
+ owner = self._persons_by_distinct_id.get((team_id, distinct_id))
+ if owner is None:
+ return None
+ mapping = next(
+ (m for m in self._distinct_ids.get((team_id, owner.id), []) if m.distinct_id == distinct_id), None
+ )
+ if mapping is None:
+ return None
+ return person_pb2.DistinctIdRow(
+ distinct_id=distinct_id,
+ person_id=owner.id,
+ person_uuid=owner.uuid,
+ version=mapping.version or 0,
+ is_deleted=(team_id, distinct_id) in self._tombstoned_distinct_ids,
+ person_is_deleted=owner.is_deleted,
+ )
+
+ def write_distinct_ids(
+ self, request: person_pb2.WriteDistinctIdsRequest, timeout: float | None = None
+ ) -> person_pb2.WriteDistinctIdsResponse:
+ self.calls.append(_Call("write_distinct_ids", request))
+ self._check_repair_batch(
+ [w.distinct_id for w in request.writes], [w.min_version for w in request.writes], uuid_keys=False
+ )
+ for write in request.writes:
+ UUID(write.person_uuid)
+ if write.action not in (
+ person_pb2.DISTINCT_ID_WRITE_ACTION_INSERT,
+ person_pb2.DISTINCT_ID_WRITE_ACTION_RAISE,
+ ):
+ raise ValueError(f"Unknown action {write.action} for {write.distinct_id}")
+ response = person_pb2.WriteDistinctIdsResponse()
+ team_id = request.team_id
+ for write in request.writes:
+ outcome = self._apply_distinct_id_write(team_id, write)
+ result = response.results.add(distinct_id=write.distinct_id, outcome=outcome)
+ row = self._mapping_row(team_id, write.distinct_id)
+ if row is not None:
+ result.row.CopyFrom(row)
+ return response
+
+ def _apply_distinct_id_write(
+ self, team_id: int, write: person_pb2.DistinctIdWrite
+ ) -> person_pb2.DistinctIdWriteOutcome:
+ person = self._persons_by_uuid.get((team_id, write.person_uuid))
+ if person is None or person.is_deleted:
+ return person_pb2.DISTINCT_ID_WRITE_OUTCOME_PERSON_NOT_LIVE
+ row = self._mapping_row(team_id, write.distinct_id)
+ exists = row is not None or (team_id, write.distinct_id) in self._tombstoned_distinct_ids
+ if write.action == person_pb2.DISTINCT_ID_WRITE_ACTION_INSERT:
+ if exists:
+ return person_pb2.DISTINCT_ID_WRITE_OUTCOME_PRECONDITION_FAILED
+ self._persons_by_distinct_id[(team_id, write.distinct_id)] = person
+ self._distinct_ids.setdefault((team_id, person.id), []).append(
+ person_pb2.DistinctIdWithVersion(distinct_id=write.distinct_id, version=write.min_version)
+ )
+ return person_pb2.DISTINCT_ID_WRITE_OUTCOME_APPLIED
+ expected_ok = not write.HasField("expected_version") or (
+ row is not None and row.version == write.expected_version
+ )
+ if row is None or row.is_deleted or row.person_id != person.id or not expected_ok:
+ return person_pb2.DISTINCT_ID_WRITE_OUTCOME_PRECONDITION_FAILED
+ mapping = next(m for m in self._distinct_ids[(team_id, person.id)] if m.distinct_id == write.distinct_id)
+ if (mapping.version or 0) >= write.min_version:
+ return person_pb2.DISTINCT_ID_WRITE_OUTCOME_UNCHANGED
+ mapping.version = write.min_version
+ return person_pb2.DISTINCT_ID_WRITE_OUTCOME_APPLIED
+
# ── Assertion helpers ────────────────────────────────────────────
def assert_called(self, method: str, *, times: int | None = None) -> list[_Call]:
diff --git a/posthog/personhog_client/proto/__init__.py b/posthog/personhog_client/proto/__init__.py
index 35b7d1ca8c8e..c1cb545feeeb 100644
--- a/posthog/personhog_client/proto/__init__.py
+++ b/posthog/personhog_client/proto/__init__.py
@@ -119,5 +119,7 @@ from personhog.types.v1.person_pb2 import (
RestorePersonsResponse,
RestoredDistinctId,
RESTORE_OUTCOME_NO_DISTINCT_ID,
+ WriteDistinctIdsRequest,
+ WriteDistinctIdsResponse,
PersonVersionFloorResult,
)
diff --git a/posthog/personhog_client/test_fake_client.py b/posthog/personhog_client/test_fake_client.py
index 21ea45591992..7e58d4da9533 100644
--- a/posthog/personhog_client/test_fake_client.py
+++ b/posthog/personhog_client/test_fake_client.py
@@ -822,6 +822,20 @@ class TestFakePersonHogClientRepairWrites:
distinct_ids=["stray-did"],
)
+ def _write(
+ self, *writes: tuple[str, person_pb2.DistinctIdWriteAction, str, int]
+ ) -> list[person_pb2.DistinctIdWriteResult]:
+ response = self.client.write_distinct_ids(
+ person_pb2.WriteDistinctIdsRequest(
+ team_id=self.TEAM_ID,
+ writes=[
+ person_pb2.DistinctIdWrite(distinct_id=d, action=a, person_uuid=u, min_version=m)
+ for d, a, u, m in writes
+ ],
+ )
+ )
+ return list(response.results)
+
def test_raise_person_floors_raises_only_live_persons(self):
response = self.client.raise_person_version_floors(
person_pb2.RaisePersonVersionFloorsRequest(
@@ -887,7 +901,44 @@ class TestFakePersonHogClientRepairWrites:
rows = {r.distinct_id: (r.person_uuid, r.version) for r in stored.rows}
assert rows == {"new": (reachable, 4), "taken": (holder, 0)}
- def test_rejects_a_repeated_uuid_before_any_write(self):
+ def test_write_distinct_ids_applies_each_write_only_from_its_expected_state(self):
+ insert = person_pb2.DISTINCT_ID_WRITE_ACTION_INSERT
+ raise_ = person_pb2.DISTINCT_ID_WRITE_ACTION_RAISE
+ applied = person_pb2.DISTINCT_ID_WRITE_OUTCOME_APPLIED
+ failed = person_pb2.DISTINCT_ID_WRITE_OUTCOME_PRECONDITION_FAILED
+ not_live = person_pb2.DISTINCT_ID_WRITE_OUTCOME_PERSON_NOT_LIVE
+
+ results = self._write(
+ ("new-did", insert, self.LIVE, 5),
+ ("other-did", insert, self.LIVE, 5),
+ ("dead-did", insert, self.TOMB, 5),
+ ("live-did", raise_, self.LIVE, 3),
+ ("other-did-2", raise_, self.LIVE, 3),
+ ("dead-did-raise", raise_, self.TOMB, 3),
+ )
+ assert [
+ (
+ r.distinct_id,
+ r.outcome,
+ (r.row.person_id, r.row.version, r.row.is_deleted) if r.HasField("row") else None,
+ )
+ for r in results
+ ] == [
+ ("new-did", applied, (1, 5, False)),
+ ("other-did", failed, (2, 0, False)),
+ ("dead-did", not_live, None),
+ ("live-did", applied, (1, 3, False)),
+ ("other-did-2", failed, None),
+ ("dead-did-raise", not_live, None),
+ ]
+
+ def test_rejects_the_whole_batch_before_any_write(self):
+ with pytest.raises(ValueError, match="must not be negative"):
+ self._write(
+ ("first-did", person_pb2.DISTINCT_ID_WRITE_ACTION_INSERT, self.LIVE, 1),
+ ("second-did", person_pb2.DISTINCT_ID_WRITE_ACTION_INSERT, self.LIVE, -1),
+ )
+ assert self.client.stored_person_by_distinct_id(self.TEAM_ID, "first-did") is None
with pytest.raises(ValueError, match="Duplicate key"):
self.client.raise_person_version_floors(
person_pb2.RaisePersonVersionFloorsRequest(
diff --git a/proto/personhog/replica/v1/replica.proto b/proto/personhog/replica/v1/replica.proto
index 74db1ecec5e0..eb37dfb116ee 100644
--- a/proto/personhog/replica/v1/replica.proto
+++ b/proto/personhog/replica/v1/replica.proto
@@ -83,9 +83,10 @@ service PersonHogReplica {
rpc GetDistinctIdRows(personhog.types.v1.GetDistinctIdRowsRequest) returns (personhog.types.v1.GetDistinctIdRowsResponse);
rpc ListPersonsForTeam(personhog.types.v1.ListPersonsForTeamRequest) returns (personhog.types.v1.ListPersonsForTeamResponse);
- // Writes for the person consistency repair. Raises claim lifecycle marks on the persons they
- // raise; restores only insert absent persons. Versions only go up. Same routing caveat as
- // DeletePersons above.
+ // Writes for the person consistency repair. Raises and mapping writes claim lifecycle marks on
+ // the persons they write; restores only insert absent persons. Versions only go up. Same routing
+ // caveat as DeletePersons above.
rpc RaisePersonVersionFloors(personhog.types.v1.RaisePersonVersionFloorsRequest) returns (personhog.types.v1.RaisePersonVersionFloorsResponse);
rpc RestorePersons(personhog.types.v1.RestorePersonsRequest) returns (personhog.types.v1.RestorePersonsResponse);
+ rpc WriteDistinctIds(personhog.types.v1.WriteDistinctIdsRequest) returns (personhog.types.v1.WriteDistinctIdsResponse);
}
diff --git a/proto/personhog/service/v1/service.proto b/proto/personhog/service/v1/service.proto
index f68addf226d1..5ecff1b08d84 100644
--- a/proto/personhog/service/v1/service.proto
+++ b/proto/personhog/service/v1/service.proto
@@ -110,9 +110,10 @@ service PersonHogService {
rpc GetDistinctIdRows(personhog.types.v1.GetDistinctIdRowsRequest) returns (personhog.types.v1.GetDistinctIdRowsResponse);
rpc ListPersonsForTeam(personhog.types.v1.ListPersonsForTeamRequest) returns (personhog.types.v1.ListPersonsForTeamResponse);
- // Writes for the person consistency repair. Raises claim lifecycle marks on the persons they
- // raise; restores only insert absent persons. Versions only go up. Same routing caveat as
- // DeletePersons above.
+ // Writes for the person consistency repair. Raises and mapping writes claim lifecycle marks on
+ // the persons they write; restores only insert absent persons. Versions only go up. Same routing
+ // caveat as DeletePersons above.
rpc RaisePersonVersionFloors(personhog.types.v1.RaisePersonVersionFloorsRequest) returns (personhog.types.v1.RaisePersonVersionFloorsResponse);
rpc RestorePersons(personhog.types.v1.RestorePersonsRequest) returns (personhog.types.v1.RestorePersonsResponse);
+ rpc WriteDistinctIds(personhog.types.v1.WriteDistinctIdsRequest) returns (personhog.types.v1.WriteDistinctIdsResponse);
}
diff --git a/proto/personhog/types/v1/person.proto b/proto/personhog/types/v1/person.proto
index 2e37bf42ec22..c5e447b753e7 100644
--- a/proto/personhog/types/v1/person.proto
+++ b/proto/personhog/types/v1/person.proto
@@ -749,3 +749,49 @@ message RestorePersonResult {
message RestorePersonsResponse {
repeated RestorePersonResult results = 1;
}
+
+enum DistinctIdWriteAction {
+ DISTINCT_ID_WRITE_ACTION_UNSPECIFIED = 0;
+ // Insert a live row on the person when no row exists for the distinct id.
+ DISTINCT_ID_WRITE_ACTION_INSERT = 1;
+ // Raise a live row on the person to at least min_version.
+ DISTINCT_ID_WRITE_ACTION_RAISE = 2;
+}
+
+message DistinctIdWrite {
+ string distinct_id = 1;
+ DistinctIdWriteAction action = 2;
+ // The person the row must point at: the insert target, or the current owner for raise.
+ string person_uuid = 3;
+ int64 min_version = 4;
+ // When set, raise applies only while the row holds exactly this version.
+ optional int64 expected_version = 5;
+}
+
+message WriteDistinctIdsRequest {
+ int64 team_id = 1;
+ // At most 250, no repeated distinct id.
+ repeated DistinctIdWrite writes = 2;
+}
+
+enum DistinctIdWriteOutcome {
+ DISTINCT_ID_WRITE_OUTCOME_UNSPECIFIED = 0;
+ DISTINCT_ID_WRITE_OUTCOME_APPLIED = 1;
+ // The row already satisfies the write (raise at or above min_version).
+ DISTINCT_ID_WRITE_OUTCOME_UNCHANGED = 2;
+ // The row is not in the state the write expects; it is left unchanged and reported.
+ DISTINCT_ID_WRITE_OUTCOME_PRECONDITION_FAILED = 3;
+ // The person does not exist or is tombstoned.
+ DISTINCT_ID_WRITE_OUTCOME_PERSON_NOT_LIVE = 4;
+}
+
+message DistinctIdWriteResult {
+ string distinct_id = 1;
+ DistinctIdWriteOutcome outcome = 2;
+ // The row after the call, when one exists.
+ optional DistinctIdRow row = 3;
+}
+
+message WriteDistinctIdsResponse {
+ repeated DistinctIdWriteResult results = 1;
+}
diff --git a/rust/personhog-replica/.sqlx/query-552eee42d5daf9e2229b974e05be49b7ac4825057d8cf514a905e27f36991430.json b/rust/personhog-replica/.sqlx/query-552eee42d5daf9e2229b974e05be49b7ac4825057d8cf514a905e27f36991430.json
new file mode 100644
index 000000000000..6226599b9aa7
--- /dev/null
+++ b/rust/personhog-replica/.sqlx/query-552eee42d5daf9e2229b974e05be49b7ac4825057d8cf514a905e27f36991430.json
@@ -0,0 +1,17 @@
+{
+ "db_name": "PostgreSQL",
+ "query": "\n UPDATE posthog_persondistinctid d\n SET version = f.version, is_deleted = f.is_deleted\n FROM UNNEST($2::text[], $3::bigint[], $4::bool[]) AS f(distinct_id, version, is_deleted)\n WHERE d.team_id = $1 AND d.distinct_id = f.distinct_id\n ",
+ "describe": {
+ "columns": [],
+ "parameters": {
+ "Left": [
+ "Int4",
+ "TextArray",
+ "Int8Array",
+ "BoolArray"
+ ]
+ },
+ "nullable": []
+ },
+ "hash": "552eee42d5daf9e2229b974e05be49b7ac4825057d8cf514a905e27f36991430"
+}
diff --git a/rust/personhog-replica/.sqlx/query-606d5e7fbede12ba6e965b89bd055d35ecdf32358f4c13378b2bd4f7e4a0abad.json b/rust/personhog-replica/.sqlx/query-606d5e7fbede12ba6e965b89bd055d35ecdf32358f4c13378b2bd4f7e4a0abad.json
new file mode 100644
index 000000000000..90f894814832
--- /dev/null
+++ b/rust/personhog-replica/.sqlx/query-606d5e7fbede12ba6e965b89bd055d35ecdf32358f4c13378b2bd4f7e4a0abad.json
@@ -0,0 +1,53 @@
+{
+ "db_name": "PostgreSQL",
+ "query": "\n SELECT d.distinct_id as \"distinct_id!\", d.person_id as \"person_id!\", p.uuid as \"person_uuid?\",\n COALESCE(d.version, 0)::bigint as \"version!\", d.is_deleted as \"is_deleted!\",\n p.is_deleted as \"person_is_deleted?\"\n FROM posthog_persondistinctid d\n LEFT JOIN posthog_person p ON p.team_id = d.team_id AND p.id = d.person_id\n WHERE d.team_id = $1 AND d.distinct_id = ANY($2)\n ",
+ "describe": {
+ "columns": [
+ {
+ "ordinal": 0,
+ "name": "distinct_id!",
+ "type_info": "Varchar"
+ },
+ {
+ "ordinal": 1,
+ "name": "person_id!",
+ "type_info": "Int8"
+ },
+ {
+ "ordinal": 2,
+ "name": "person_uuid?",
+ "type_info": "Uuid"
+ },
+ {
+ "ordinal": 3,
+ "name": "version!",
+ "type_info": "Int8"
+ },
+ {
+ "ordinal": 4,
+ "name": "is_deleted!",
+ "type_info": "Bool"
+ },
+ {
+ "ordinal": 5,
+ "name": "person_is_deleted?",
+ "type_info": "Bool"
+ }
+ ],
+ "parameters": {
+ "Left": [
+ "Int4",
+ "TextArray"
+ ]
+ },
+ "nullable": [
+ false,
+ false,
+ false,
+ null,
+ false,
+ false
+ ]
+ },
+ "hash": "606d5e7fbede12ba6e965b89bd055d35ecdf32358f4c13378b2bd4f7e4a0abad"
+}
diff --git a/rust/personhog-replica/.sqlx/query-7ae1113ad8644e7d8aad0f8cf55b79a597d473e4c20f6b31ac236c038471332f.json b/rust/personhog-replica/.sqlx/query-7ae1113ad8644e7d8aad0f8cf55b79a597d473e4c20f6b31ac236c038471332f.json
new file mode 100644
index 000000000000..e831d0fcf4d0
--- /dev/null
+++ b/rust/personhog-replica/.sqlx/query-7ae1113ad8644e7d8aad0f8cf55b79a597d473e4c20f6b31ac236c038471332f.json
@@ -0,0 +1,25 @@
+{
+ "db_name": "PostgreSQL",
+ "query": "\n INSERT INTO posthog_persondistinctid (distinct_id, person_id, team_id, version, is_deleted)\n SELECT f.distinct_id, f.person_id, $1, f.version, false\n FROM UNNEST($2::text[], $3::bigint[], $4::bigint[]) AS f(distinct_id, person_id, version)\n ON CONFLICT (team_id, distinct_id) DO NOTHING\n RETURNING distinct_id as \"distinct_id!\"\n ",
+ "describe": {
+ "columns": [
+ {
+ "ordinal": 0,
+ "name": "distinct_id!",
+ "type_info": "Varchar"
+ }
+ ],
+ "parameters": {
+ "Left": [
+ "Int4",
+ "TextArray",
+ "Int8Array",
+ "Int8Array"
+ ]
+ },
+ "nullable": [
+ false
+ ]
+ },
+ "hash": "7ae1113ad8644e7d8aad0f8cf55b79a597d473e4c20f6b31ac236c038471332f"
+}
diff --git a/rust/personhog-replica/.sqlx/query-f8dc797a09d39eceb0b720ca1e8a5fc7bdd315a880538d91601cf5c7e2060b45.json b/rust/personhog-replica/.sqlx/query-f8dc797a09d39eceb0b720ca1e8a5fc7bdd315a880538d91601cf5c7e2060b45.json
new file mode 100644
index 000000000000..b638c7f03ddd
--- /dev/null
+++ b/rust/personhog-replica/.sqlx/query-f8dc797a09d39eceb0b720ca1e8a5fc7bdd315a880538d91601cf5c7e2060b45.json
@@ -0,0 +1,41 @@
+{
+ "db_name": "PostgreSQL",
+ "query": "\n SELECT distinct_id as \"distinct_id!\", person_id as \"person_id!\",\n COALESCE(version, 0)::bigint as \"version!\", is_deleted as \"is_deleted!\"\n FROM posthog_persondistinctid\n WHERE team_id = $1 AND distinct_id = ANY($2)\n ORDER BY id FOR UPDATE\n ",
+ "describe": {
+ "columns": [
+ {
+ "ordinal": 0,
+ "name": "distinct_id!",
+ "type_info": "Varchar"
+ },
+ {
+ "ordinal": 1,
+ "name": "person_id!",
+ "type_info": "Int8"
+ },
+ {
+ "ordinal": 2,
+ "name": "version!",
+ "type_info": "Int8"
+ },
+ {
+ "ordinal": 3,
+ "name": "is_deleted!",
+ "type_info": "Bool"
+ }
+ ],
+ "parameters": {
+ "Left": [
+ "Int4",
+ "TextArray"
+ ]
+ },
+ "nullable": [
+ false,
+ false,
+ null,
+ false
+ ]
+ },
+ "hash": "f8dc797a09d39eceb0b720ca1e8a5fc7bdd315a880538d91601cf5c7e2060b45"
+}
diff --git a/rust/personhog-replica/src/service/mod.rs b/rust/personhog-replica/src/service/mod.rs
index 8306bc6cdb7f..6645841fdff5 100644
--- a/rust/personhog-replica/src/service/mod.rs
+++ b/rust/personhog-replica/src/service/mod.rs
@@ -24,8 +24,11 @@ use personhog_proto::personhog::types::v1::{
DeletePersonsBatchForTeamResponse, DeletePersonsMode as ProtoDeletePersonsMode,
DeletePersonsRequest, DeletePersonsResponse, DeleteTombstonedPersonsRequest,
DeleteTombstonedPersonsResponse, DistinctIdRow as ProtoDistinctIdRow, DistinctIdWithVersion,
- EnsurePersonVersionFloorsRequest, EnsurePersonVersionFloorsResponse, GetDistinctIdRowsRequest,
- GetDistinctIdRowsResponse, GetDistinctIdsForPersonRequest, GetDistinctIdsForPersonResponse,
+ DistinctIdWriteAction as ProtoDistinctIdWriteAction,
+ DistinctIdWriteOutcome as ProtoDistinctIdWriteOutcome,
+ DistinctIdWriteResult as ProtoDistinctIdWriteResult, EnsurePersonVersionFloorsRequest,
+ EnsurePersonVersionFloorsResponse, GetDistinctIdRowsRequest, GetDistinctIdRowsResponse,
+ GetDistinctIdsForPersonRequest, GetDistinctIdsForPersonResponse,
GetDistinctIdsForPersonsRequest, GetDistinctIdsForPersonsResponse, GetGroupRequest,
GetGroupResponse, GetGroupTypeMappingByDashboardIdRequest,
GetGroupTypeMappingByDashboardIdResponse, GetGroupTypeMappingsByProjectIdRequest,
@@ -53,7 +56,8 @@ use personhog_proto::personhog::types::v1::{
SplitResult as ProtoSplitResult, TeamDistinctId, TombstonedDistinctId, TombstonedPerson,
UpdateGroupRequest, UpdateGroupResponse, UpdateGroupTypeMappingRequest,
UpdateGroupTypeMappingResponse, UpsertHashKeyOverridesRequest, UpsertHashKeyOverridesResponse,
- VersionFloorOutcome as ProtoVersionFloorOutcome,
+ VersionFloorOutcome as ProtoVersionFloorOutcome, WriteDistinctIdsRequest,
+ WriteDistinctIdsResponse,
};
use tonic::{Request, Response, Status};
use uuid::Uuid;
@@ -1617,17 +1621,7 @@ impl PersonHogReplica for PersonHogReplicaService {
.map_err(|e| log_and_convert_error(e, "get_distinct_id_rows"))?;
Ok(Response::new(GetDistinctIdRowsResponse {
- rows: rows
- .into_iter()
- .map(|row| ProtoDistinctIdRow {
- distinct_id: row.distinct_id,
- person_id: row.person_id,
- person_uuid: row.person_uuid.map(|u| u.to_string()),
- version: row.version,
- is_deleted: row.is_deleted,
- person_is_deleted: row.person_is_deleted,
- })
- .collect(),
+ rows: rows.into_iter().map(distinct_id_row_to_proto).collect(),
}))
}
@@ -1770,6 +1764,62 @@ impl PersonHogReplica for PersonHogReplicaService {
.collect(),
}))
}
+
+ async fn write_distinct_ids(
+ &self,
+ request: Request<WriteDistinctIdsRequest>,
+ ) -> Result<Response<WriteDistinctIdsResponse>, Status> {
+ let req = request.into_inner();
+ check_floor_batch(
+ req.writes
+ .iter()
+ .map(|w| (w.distinct_id.as_str(), w.min_version)),
+ )?;
+ let writes: Vec<storage::types::DistinctIdWrite> = req
+ .writes
+ .iter()
+ .map(|w| {
+ let action = match ProtoDistinctIdWriteAction::try_from(w.action) {
+ Ok(ProtoDistinctIdWriteAction::Insert) => {
+ storage::types::DistinctIdWriteAction::Insert
+ }
+ Ok(ProtoDistinctIdWriteAction::Raise) => {
+ storage::types::DistinctIdWriteAction::Raise
+ }
+ _ => {
+ return Err(Status::invalid_argument(format!(
+ "Unknown action {} for {}",
+ w.action, w.distinct_id
+ )))
+ }
+ };
+ Ok(storage::types::DistinctIdWrite {
+ distinct_id: w.distinct_id.clone(),
+ action,
+ person_uuid: parse_uuid(&w.person_uuid)?,
+ min_version: w.min_version,
+ expected_version: w.expected_version,
+ })
+ })
+ .collect::<Result<_, _>>()?;
+
+ let results = self
+ .storage
+ .write_distinct_ids(req.team_id, &writes)
+ .await
+ .map_err(|e| log_and_convert_error(e, "write_distinct_ids"))?;
+
+ Ok(Response::new(WriteDistinctIdsResponse {
+ results: results
+ .into_iter()
+ .map(|r| ProtoDistinctIdWriteResult {
+ distinct_id: r.distinct_id,
+ outcome: write_outcome_to_proto(r.outcome) as i32,
+ row: r.row.map(distinct_id_row_to_proto),
+ })
+ .collect(),
+ }))
+ }
}
#[allow(clippy::result_large_err)]
@@ -1880,6 +1930,17 @@ fn reject_duplicate_uuids(uuids: impl Iterator<Item = Uuid>) -> Result<(), Statu
Ok(())
}
+fn distinct_id_row_to_proto(row: storage::types::DistinctIdRow) -> ProtoDistinctIdRow {
+ ProtoDistinctIdRow {
+ distinct_id: row.distinct_id,
+ person_id: row.person_id,
+ person_uuid: row.person_uuid.map(|u| u.to_string()),
+ version: row.version,
+ is_deleted: row.is_deleted,
+ person_is_deleted: row.person_is_deleted,
+ }
+}
+
fn raise_outcome_to_proto(outcome: storage::types::RaiseOutcome) -> ProtoRaiseOutcome {
match outcome {
storage::types::RaiseOutcome::Raised => ProtoRaiseOutcome::Raised,
@@ -1897,3 +1958,18 @@ fn restore_outcome_to_proto(outcome: storage::types::RestoreOutcome) -> ProtoRes
storage::types::RestoreOutcome::NoDistinctId => ProtoRestoreOutcome::NoDistinctId,
}
}
+
+fn write_outcome_to_proto(
+ outcome: storage::types::DistinctIdWriteOutcome,
+) -> ProtoDistinctIdWriteOutcome {
+ match outcome {
+ storage::types::DistinctIdWriteOutcome::Applied => ProtoDistinctIdWriteOutcome::Applied,
+ storage::types::DistinctIdWriteOutcome::Unchanged => ProtoDistinctIdWriteOutcome::Unchanged,
+ storage::types::DistinctIdWriteOutcome::PreconditionFailed => {
+ ProtoDistinctIdWriteOutcome::PreconditionFailed
+ }
+ storage::types::DistinctIdWriteOutcome::PersonNotLive => {
+ ProtoDistinctIdWriteOutcome::PersonNotLive
+ }
+ }
+}
diff --git a/rust/personhog-replica/src/service/tests/mocks.rs b/rust/personhog-replica/src/service/tests/mocks.rs
index 9e9f6ea4c760..10efed990213 100644
--- a/rust/personhog-replica/src/service/tests/mocks.rs
+++ b/rust/personhog-replica/src/service/tests/mocks.rs
@@ -1926,6 +1926,14 @@ impl storage::PersonRepair for FailingStorage {
) -> storage::StorageResult<Vec<storage::types::RestoreResult>> {
Err(self.error.clone())
}
+
+ async fn write_distinct_ids(
+ &self,
+ _team_id: i64,
+ _writes: &[storage::types::DistinctIdWrite],
+ ) -> storage::StorageResult<Vec<storage::types::DistinctIdWriteResult>> {
+ Err(self.error.clone())
+ }
}
#[async_trait]
@@ -1945,6 +1953,14 @@ impl storage::PersonRepair for SuccessStorage {
) -> storage::StorageResult<Vec<storage::types::RestoreResult>> {
Ok(Vec::new())
}
+
+ async fn write_distinct_ids(
+ &self,
+ _team_id: i64,
+ _writes: &[storage::types::DistinctIdWrite],
+ ) -> storage::StorageResult<Vec<storage::types::DistinctIdWriteResult>> {
+ Ok(Vec::new())
+ }
}
#[async_trait]
@@ -1964,6 +1980,14 @@ impl storage::PersonRepair for PopulatedStorage {
) -> storage::StorageResult<Vec<storage::types::RestoreResult>> {
Ok(Vec::new())
}
+
+ async fn write_distinct_ids(
+ &self,
+ _team_id: i64,
+ _writes: &[storage::types::DistinctIdWrite],
+ ) -> storage::StorageResult<Vec<storage::types::DistinctIdWriteResult>> {
+ Ok(Vec::new())
+ }
}
#[async_trait]
@@ -1983,4 +2007,12 @@ impl storage::PersonRepair for ConsistencyTrackingStorage {
) -> storage::StorageResult<Vec<storage::types::RestoreResult>> {
Ok(Vec::new())
}
+
+ async fn write_distinct_ids(
+ &self,
+ _team_id: i64,
+ _writes: &[storage::types::DistinctIdWrite],
+ ) -> storage::StorageResult<Vec<storage::types::DistinctIdWriteResult>> {
+ Ok(Vec::new())
+ }
}
diff --git a/rust/personhog-replica/src/storage/postgres/repair.rs b/rust/personhog-replica/src/storage/postgres/repair.rs
index e34ce652a7c4..10d8f5b73896 100644
--- a/rust/personhog-replica/src/storage/postgres/repair.rs
+++ b/rust/personhog-replica/src/storage/postgres/repair.rs
@@ -12,7 +12,9 @@ use super::{PostgresStorage, DB_QUERY_DURATION};
use crate::storage::error::{StorageError, StorageResult};
use crate::storage::traits::PersonRepair;
use crate::storage::types::{
- RaiseOutcome, RaiseResult, RestoreOutcome, RestoreResult, RestoredPerson,
+ DistinctIdRow, DistinctIdWrite, DistinctIdWriteAction, DistinctIdWriteOutcome,
+ DistinctIdWriteResult, RaiseOutcome, RaiseResult, RestoreOutcome, RestoreResult,
+ RestoredPerson,
};
#[async_trait]
@@ -225,6 +227,117 @@ impl PersonRepair for PostgresStorage {
})
.collect()
}
+
+ async fn write_distinct_ids(
+ &self,
+ team_id: i64,
+ writes: &[DistinctIdWrite],
+ ) -> StorageResult<Vec<DistinctIdWriteResult>> {
+ if writes.is_empty() {
+ return Ok(Vec::new());
+ }
+ let labels = bulk_primary_labels("write_distinct_ids");
+ let _timer = common_metrics::timing_guard(DB_QUERY_DURATION, &labels);
+
+ let mut tx = begin_with_lock_timeout(self).await?;
+ let mut target_uuids: Vec<Uuid> = writes.iter().map(|w| w.person_uuid).collect();
+ target_uuids.sort_unstable();
+ target_uuids.dedup();
+
+ // Marks first, then person rows by id, then mapping rows by id: the order the tombstone
+ // RPC, the drain and ingestion take, so none of them can deadlock with this call.
+ let (mark_op_id, claimed_ids) =
+ claim_lifecycle_marks(&mut tx, team_id, &target_uuids, MarkKind::Restore).await?;
+ let persons = lock_claimed_persons(&mut tx, team_id, &claimed_ids).await?;
+ let distinct_ids: Vec<String> = writes.iter().map(|w| w.distinct_id.clone()).collect();
+ let current = lock_distinct_id_rows(&mut tx, team_id, &distinct_ids).await?;
+
+ let mut outcomes: HashMap<&str, DistinctIdWriteOutcome> = HashMap::new();
+ let mut inserts: Vec<(&DistinctIdWrite, i64)> = Vec::new();
+ let mut updates: Vec<(&str, i64, bool)> = Vec::new();
+ for write in writes {
+ let person = persons.get(&write.person_uuid);
+ let row = current.get(&write.distinct_id);
+ let outcome = match plan_write(write, person, row) {
+ Planned::Insert(person_id) => {
+ inserts.push((write, person_id));
+ continue;
+ }
+ Planned::Update {
+ version,
+ is_deleted,
+ } => {
+ updates.push((write.distinct_id.as_str(), version, is_deleted));
+ DistinctIdWriteOutcome::Applied
+ }
+ Planned::Done(outcome) => outcome,
+ };
+ outcomes.insert(write.distinct_id.as_str(), outcome);
+ }
+
+ if !inserts.is_empty() {
+ // Insert in distinct id order, so two calls racing on the same ids cannot deadlock.
+ inserts.sort_unstable_by(|(a, _), (b, _)| a.distinct_id.cmp(&b.distinct_id));
+ let inserted: HashSet<String> = sqlx::query_scalar!(
+ r#"
+ INSERT INTO posthog_persondistinctid (distinct_id, person_id, team_id, version, is_deleted)
+ SELECT f.distinct_id, f.person_id, $1, f.version, false
+ FROM UNNEST($2::text[], $3::bigint[], $4::bigint[]) AS f(distinct_id, person_id, version)
+ ON CONFLICT (team_id, distinct_id) DO NOTHING
+ RETURNING distinct_id as "distinct_id!"
+ "#,
+ team_id as i32,
+ &inserts.iter().map(|(w, _)| w.distinct_id.clone()).collect::<Vec<_>>(),
+ &inserts.iter().map(|(_, id)| *id).collect::<Vec<_>>(),
+ &inserts.iter().map(|(w, _)| w.min_version).collect::<Vec<_>>()
+ )
+ .fetch_all(&mut *tx)
+ .await?
+ .into_iter()
+ .collect();
+ for (write, _) in &inserts {
+ // A row a concurrent writer inserted first is not the absent row this write expected.
+ let outcome = if inserted.contains(&write.distinct_id) {
+ DistinctIdWriteOutcome::Applied
+ } else {
+ DistinctIdWriteOutcome::PreconditionFailed
+ };
+ outcomes.insert(write.distinct_id.as_str(), outcome);
+ }
+ }
+
+ if !updates.is_empty() {
+ sqlx::query!(
+ r#"
+ UPDATE posthog_persondistinctid d
+ SET version = f.version, is_deleted = f.is_deleted
+ FROM UNNEST($2::text[], $3::bigint[], $4::bool[]) AS f(distinct_id, version, is_deleted)
+ WHERE d.team_id = $1 AND d.distinct_id = f.distinct_id
+ "#,
+ team_id as i32,
+ &updates.iter().map(|(d, _, _)| d.to_string()).collect::<Vec<_>>(),
+ &updates.iter().map(|(_, v, _)| *v).collect::<Vec<_>>(),
+ &updates.iter().map(|(_, _, del)| *del).collect::<Vec<_>>()
+ )
+ .execute(&mut *tx)
+ .await?;
+ }
+
+ let after = read_distinct_id_rows(&mut tx, team_id, &distinct_ids).await?;
+ if let Some(op_id) = mark_op_id {
+ release_lifecycle_marks(&mut tx, team_id, op_id, MarkKind::Restore).await?;
+ }
+ tx.commit().await?;
+
+ Ok(writes
+ .iter()
+ .map(|write| DistinctIdWriteResult {
+ distinct_id: write.distinct_id.clone(),
+ outcome: outcomes[write.distinct_id.as_str()],
+ row: after.get(&write.distinct_id).cloned(),
+ })
+ .collect())
+ }
}
/// Insert the requested distinct ids of each person this call inserted, where no row exists for them.
@@ -278,8 +391,141 @@ async fn insert_restored_distinct_ids(
Ok(by_person)
}
+enum Planned {
+ Insert(i64),
+ Update { version: i64, is_deleted: bool },
+ Done(DistinctIdWriteOutcome),
+}
+
+struct LockedRow {
+ person_id: i64,
+ version: i64,
+ is_deleted: bool,
+}
+
+/// Decide one mapping write from the locked person and mapping rows. Raise acts only on a live row
+/// of the named live person (holding `expected_version` when given); insert only where no row exists.
+fn plan_write(
+ write: &DistinctIdWrite,
+ person: Option<&LockedPerson>,
+ row: Option<&LockedRow>,
+) -> Planned {
+ let Some(person) = person else {
+ return Planned::Done(DistinctIdWriteOutcome::PersonNotLive);
+ };
+ if person.is_deleted {
+ return Planned::Done(DistinctIdWriteOutcome::PersonNotLive);
+ }
+ match (write.action, row) {
+ (DistinctIdWriteAction::Insert, None) => Planned::Insert(person.id),
+ (DistinctIdWriteAction::Insert, Some(_)) => {
+ Planned::Done(DistinctIdWriteOutcome::PreconditionFailed)
+ }
+ (_, None) => Planned::Done(DistinctIdWriteOutcome::PreconditionFailed),
+ (DistinctIdWriteAction::Raise, Some(row)) => {
+ let expected_ok = write.expected_version.is_none_or(|v| v == row.version);
+ if row.is_deleted || row.person_id != person.id || !expected_ok {
+ return Planned::Done(DistinctIdWriteOutcome::PreconditionFailed);
+ }
+ if row.version >= write.min_version {
+ Planned::Done(DistinctIdWriteOutcome::Unchanged)
+ } else {
+ Planned::Update {
+ version: write.min_version,
+ is_deleted: false,
+ }
+ }
+ }
+ }
+}
+
+async fn begin_with_lock_timeout(
+ storage: &PostgresStorage,
+) -> StorageResult<Transaction<'static, Postgres>> {
+ let mut tx = storage.bulk_primary_pool.begin().await?;
+ // A held row means a merge, revival or delete in flight: fail fast and let the
+ // caller retry instead of queueing behind it.
+ sqlx::query("SET LOCAL lock_timeout = '2s'")
+ .execute(&mut *tx)
+ .await?;
+ // Ingestion waits on these rows with no lock timeout of its own, so no statement may hold
+ // them longer than this. It stays under the router's 5 s deadline and above lock_timeout.
+ sqlx::query("SET LOCAL statement_timeout = '4s'")
+ .execute(&mut *tx)
+ .await?;
+ Ok(tx)
+}
+
+async fn lock_distinct_id_rows(
+ tx: &mut Transaction<'_, Postgres>,
+ team_id: i64,
+ distinct_ids: &[String],
+) -> StorageResult<HashMap<String, LockedRow>> {
+ Ok(sqlx::query!(
+ r#"
+ SELECT distinct_id as "distinct_id!", person_id as "person_id!",
+ COALESCE(version, 0)::bigint as "version!", is_deleted as "is_deleted!"
+ FROM posthog_persondistinctid
+ WHERE team_id = $1 AND distinct_id = ANY($2)
+ ORDER BY id FOR UPDATE
+ "#,
+ team_id as i32,
+ distinct_ids
+ )
+ .fetch_all(&mut **tx)
+ .await?
+ .into_iter()
+ .map(|r| {
+ (
+ r.distinct_id,
+ LockedRow {
+ person_id: r.person_id,
+ version: r.version,
+ is_deleted: r.is_deleted,
+ },
+ )
+ })
+ .collect())
+}
+
+async fn read_distinct_id_rows(
+ tx: &mut Transaction<'_, Postgres>,
+ team_id: i64,
+ distinct_ids: &[String],
+) -> StorageResult<HashMap<String, DistinctIdRow>> {
+ Ok(sqlx::query!(
+ r#"
+ SELECT d.distinct_id as "distinct_id!", d.person_id as "person_id!", p.uuid as "person_uuid?",
+ COALESCE(d.version, 0)::bigint as "version!", d.is_deleted as "is_deleted!",
+ p.is_deleted as "person_is_deleted?"
+ FROM posthog_persondistinctid d
+ LEFT JOIN posthog_person p ON p.team_id = d.team_id AND p.id = d.person_id
+ WHERE d.team_id = $1 AND d.distinct_id = ANY($2)
+ "#,
+ team_id as i32,
+ distinct_ids
+ )
+ .fetch_all(&mut **tx)
+ .await?
+ .into_iter()
+ .map(|r| {
+ (
+ r.distinct_id.clone(),
+ DistinctIdRow {
+ distinct_id: r.distinct_id,
+ person_id: r.person_id,
+ person_uuid: r.person_uuid,
+ version: r.version,
+ is_deleted: r.is_deleted,
+ person_is_deleted: r.person_is_deleted,
+ },
+ )
+ })
+ .collect())
+}
+
/// Lock the claimed persons in id order, keyed by uuid. Locking by id, not uuid, leaves out a person
-/// created under a requested uuid after the claim, which holds no mark; it is reported missing.
+/// created under a requested uuid after the claim, which holds no mark; callers report it as absent.
async fn lock_claimed_persons(
tx: &mut Transaction<'_, Postgres>,
team_id: i64,
@@ -315,20 +561,3 @@ async fn lock_claimed_persons(
})
.collect())
}
-
-async fn begin_with_lock_timeout(
- storage: &PostgresStorage,
-) -> StorageResult<Transaction<'static, Postgres>> {
- let mut tx = storage.bulk_primary_pool.begin().await?;
- // A held row means a merge, revival or delete in flight: fail fast and let the
- // caller retry instead of queueing behind it.
- sqlx::query("SET LOCAL lock_timeout = '2s'")
- .execute(&mut *tx)
- .await?;
- // Ingestion waits on these rows with no lock timeout of its own, so no statement may hold
- // them longer than this. It stays under the router's 5 s deadline and above lock_timeout.
- sqlx::query("SET LOCAL statement_timeout = '4s'")
- .execute(&mut *tx)
- .await?;
- Ok(tx)
-}
diff --git a/rust/personhog-replica/src/storage/traits/repair.rs b/rust/personhog-replica/src/storage/traits/repair.rs
index 5bac03579282..f51e826f12c2 100644
--- a/rust/personhog-replica/src/storage/traits/repair.rs
+++ b/rust/personhog-replica/src/storage/traits/repair.rs
@@ -2,7 +2,9 @@ use async_trait::async_trait;
use uuid::Uuid;
use crate::storage::error::StorageResult;
-use crate::storage::types::{RaiseResult, RestoreResult, RestoredPerson};
+use crate::storage::types::{
+ DistinctIdWrite, DistinctIdWriteResult, RaiseResult, RestoreResult, RestoredPerson,
+};
/// Writes for the person consistency repair. Each runs in one primary transaction, fails fast on a
/// held row lock, and only raises versions, so a retry after an unknown commit is a no-op.
@@ -23,4 +25,13 @@ pub trait PersonRepair: Send + Sync {
team_id: i64,
persons: &[RestoredPerson],
) -> StorageResult<Vec<RestoreResult>>;
+
+ /// Apply each mapping write only while the row is in the state the write expects, under
+ /// lifecycle marks on the persons written. `writes` must not repeat a distinct id. Results
+ /// keep request order.
+ async fn write_distinct_ids(
+ &self,
+ team_id: i64,
+ writes: &[DistinctIdWrite],
+ ) -> StorageResult<Vec<DistinctIdWriteResult>>;
}
diff --git a/rust/personhog-replica/src/storage/types/repair.rs b/rust/personhog-replica/src/storage/types/repair.rs
index 64a83a8cc0ea..3c7e6afa6c62 100644
--- a/rust/personhog-replica/src/storage/types/repair.rs
+++ b/rust/personhog-replica/src/storage/types/repair.rs
@@ -1,5 +1,7 @@
use uuid::Uuid;
+use super::DistinctIdRow;
+
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum RaiseOutcome {
Raised,
@@ -44,3 +46,35 @@ pub struct RestoreResult {
pub version: i64,
pub restored_distinct_ids: Vec<String>,
}
+
+#[derive(Debug, Clone, Copy, PartialEq, Eq)]
+pub enum DistinctIdWriteAction {
+ Insert,
+ Raise,
+}
+
+#[derive(Debug, Clone, PartialEq, Eq)]
+pub struct DistinctIdWrite {
+ pub distinct_id: String,
+ pub action: DistinctIdWriteAction,
+ /// The insert target, or the row's expected owner for raise.
+ pub person_uuid: Uuid,
+ pub min_version: i64,
+ pub expected_version: Option<i64>,
+}
+
+#[derive(Debug, Clone, Copy, PartialEq, Eq)]
+pub enum DistinctIdWriteOutcome {
+ Applied,
+ Unchanged,
+ PreconditionFailed,
+ PersonNotLive,
+}
+
+#[derive(Debug, Clone, PartialEq, Eq)]
+pub struct DistinctIdWriteResult {
+ pub distinct_id: String,
+ pub outcome: DistinctIdWriteOutcome,
+ /// The row after the call, when one exists.
+ pub row: Option<DistinctIdRow>,
+}
diff --git a/rust/personhog-replica/tests/service_tests.rs b/rust/personhog-replica/tests/service_tests.rs
index bf205c4997bf..b945856b0d35 100644
--- a/rust/personhog-replica/tests/service_tests.rs
+++ b/rust/personhog-replica/tests/service_tests.rs
@@ -6,6 +6,7 @@ use personhog_proto::personhog::types::v1::{
CheckCohortMembershipRequest, ConsistencyLevel, CountGroupTypeMappingsRequest,
DeleteHashKeyOverridesByTeamsRequest, DeletePersonsBatchForTeamRequest, DeletePersonsMode,
DeletePersonsRequest, DeleteTombstonedPersonsRequest, DeleteTombstonedPersonsResponse,
+ DistinctIdWrite, DistinctIdWriteAction, DistinctIdWriteOutcome,
EnsurePersonVersionFloorsRequest, GetDistinctIdRowsRequest, GetDistinctIdsForPersonRequest,
GetDistinctIdsForPersonsRequest, GetGroupRequest, GetGroupTypeMappingsByProjectIdRequest,
GetGroupTypeMappingsByProjectIdsRequest, GetGroupTypeMappingsByTeamIdRequest,
@@ -18,6 +19,7 @@ use personhog_proto::personhog::types::v1::{
RestoredDistinctId, RestoredPerson, SetPersonDistinctIdVersionFloorRequest,
SetPersonVersionFloorRequest, SplitPersonRequest, TeamDistinctId,
UpsertHashKeyOverridesRequest, VersionBoundedPerson, VersionFloorOutcome,
+ WriteDistinctIdsRequest,
};
use personhog_replica::service::PersonHogReplicaService;
use rstest::rstest;
@@ -2030,6 +2032,41 @@ async fn test_repair_writes_round_trip_through_the_service() {
vec!["svc_repair_restored"]
);
+ let written = ctx
+ .service
+ .write_distinct_ids(Request::new(WriteDistinctIdsRequest {
+ team_id: ctx.team_id,
+ writes: vec![DistinctIdWrite {
+ distinct_id: "svc_repair_new".to_string(),
+ action: DistinctIdWriteAction::Insert as i32,
+ person_uuid: person.uuid.to_string(),
+ min_version: 6,
+ expected_version: None,
+ }],
+ }))
+ .await
+ .expect("write")
+ .into_inner()
+ .results;
+ assert_eq!(written[0].outcome, DistinctIdWriteOutcome::Applied as i32);
+ let row = written[0].row.as_ref().expect("row after the write");
+ assert_eq!(
+ (
+ row.person_id,
+ row.person_uuid.clone(),
+ row.version,
+ row.is_deleted,
+ row.person_is_deleted
+ ),
+ (
+ person.id,
+ Some(person.uuid.to_string()),
+ 6,
+ false,
+ Some(false)
+ )
+ );
+
ctx.cleanup().await.ok();
}
@@ -2040,6 +2077,7 @@ enum BadRepairRequest {
PropertiesNotJson,
PropertiesNotAnObject,
DuplicateRestoredDistinctId,
+ UnknownWriteAction,
}
#[rstest]
@@ -2048,6 +2086,7 @@ enum BadRepairRequest {
#[case::properties_not_json(BadRepairRequest::PropertiesNotJson)]
#[case::properties_not_an_object(BadRepairRequest::PropertiesNotAnObject)]
#[case::duplicate_restored_distinct_id(BadRepairRequest::DuplicateRestoredDistinctId)]
+#[case::unknown_write_action(BadRepairRequest::UnknownWriteAction)]
#[tokio::test]
async fn test_repair_writes_reject_bad_requests(#[case] bad: BadRepairRequest) {
let ctx = ServiceTestContext::new().await;
@@ -2108,6 +2147,20 @@ async fn test_repair_writes_reject_bad_requests(#[case] bad: BadRepairRequest) {
.await
.map(|_| ())
}
+ BadRepairRequest::UnknownWriteAction => ctx
+ .service
+ .write_distinct_ids(Request::new(WriteDistinctIdsRequest {
+ team_id: ctx.team_id,
+ writes: vec![DistinctIdWrite {
+ distinct_id: "svc_bad_action".to_string(),
+ action: DistinctIdWriteAction::Unspecified as i32,
+ person_uuid: uuid.clone(),
+ min_version: 1,
+ expected_version: None,
+ }],
+ }))
+ .await
+ .map(|_| ()),
}
.expect_err("rejected");
assert_eq!(status.code(), tonic::Code::InvalidArgument, "{status:?}");
diff --git a/rust/personhog-replica/tests/storage_tests.rs b/rust/personhog-replica/tests/storage_tests.rs
index e548bce29a8b..ae36f9ae0168 100644
--- a/rust/personhog-replica/tests/storage_tests.rs
+++ b/rust/personhog-replica/tests/storage_tests.rs
@@ -3,7 +3,10 @@ mod common;
use common::TestContext;
use metrics_util::debugging::{DebugValue, DebuggingRecorder, Snapshotter};
use personhog_replica::storage::postgres::ConsistencyLevel;
-use personhog_replica::storage::types::{RaiseOutcome, RestoreOutcome, RestoredPerson};
+use personhog_replica::storage::types::{
+ DistinctIdWrite, DistinctIdWriteAction, DistinctIdWriteOutcome, RaiseOutcome, RestoreOutcome,
+ RestoredPerson,
+};
use personhog_replica::storage::{
GroupKey, PersonVersionFloorResult, StorageError, TimeoutKind, TombstoneTarget,
TombstonedDeleteOutcome, TombstonedDistinctId, TombstonedPerson, VersionFloorOutcome,
@@ -4426,12 +4429,14 @@ enum HeldRowWrite {
DeleteTombstoned,
EnsurePersonFloor,
RaisePersonFloor,
+ WriteDistinctId,
}
#[rstest]
#[case::delete_tombstoned(HeldRowWrite::DeleteTombstoned)]
#[case::ensure_person_floor(HeldRowWrite::EnsurePersonFloor)]
#[case::raise_person_floor(HeldRowWrite::RaisePersonFloor)]
+#[case::write_distinct_id(HeldRowWrite::WriteDistinctId)]
#[tokio::test]
async fn test_primary_writes_give_up_when_a_writer_holds_the_row(#[case] write: HeldRowWrite) {
// lock_timeout makes the request fail fast behind a held row; without it this call would
@@ -4462,6 +4467,20 @@ async fn test_primary_writes_give_up_when_a_writer_holds_the_row(#[case] write:
.raise_person_version_floors(ctx.team_id, &[(person.uuid, 5)])
.await
.map(|_| ()),
+ HeldRowWrite::WriteDistinctId => ctx
+ .storage
+ .write_distinct_ids(
+ ctx.team_id,
+ &[DistinctIdWrite {
+ distinct_id: "held_row_absent".to_string(),
+ action: DistinctIdWriteAction::Insert,
+ person_uuid: person.uuid,
+ min_version: 5,
+ expected_version: None,
+ }],
+ )
+ .await
+ .map(|_| ()),
};
assert!(
@@ -4481,6 +4500,7 @@ async fn test_primary_writes_give_up_when_a_writer_holds_the_row(#[case] write:
distinct_id_state(&ctx, "held_row").await,
distinct_id_before
);
+ assert_eq!(distinct_id_state(&ctx, "held_row_absent").await, None);
ctx.cleanup().await.ok();
}
@@ -5208,18 +5228,140 @@ async fn test_restore_persons_inserts_the_listed_distinct_ids_or_not_the_person(
ctx.cleanup().await.ok();
}
+/// (distinct id, outcome, (person id, version, is_deleted) of the row after the write).
+type WriteSummary<'a> = (&'a str, DistinctIdWriteOutcome, Option<(i64, i64, bool)>);
+
+#[tokio::test]
+async fn test_write_distinct_ids_applies_each_write_only_from_its_expected_state() {
+ let ctx = TestContext::new().await;
+ let p = ctx.insert_person("w_p", None).await.unwrap();
+ ctx.add_distinct_id_to_person(p.id, "w_p_expect")
+ .await
+ .unwrap();
+ let q = ctx.insert_person("w_q", None).await.unwrap();
+ ctx.add_distinct_id_to_person(q.id, "w_q_owner")
+ .await
+ .unwrap();
+ ctx.add_distinct_id_to_person(q.id, "w_q_same")
+ .await
+ .unwrap();
+ ctx.add_distinct_id_to_person(p.id, "w_p_gone")
+ .await
+ .unwrap();
+ sqlx::query("UPDATE posthog_persondistinctid SET is_deleted = true, version = 2 WHERE team_id = $1 AND distinct_id = 'w_p_gone'")
+ .bind(ctx.team_id)
+ .execute(&ctx.pool)
+ .await
+ .unwrap();
+ let ghost = common::TestPerson {
+ id: 0,
+ uuid: Uuid::new_v4(),
+ };
+ let s = ctx.insert_person("w_s", None).await.unwrap();
+ ctx.tombstone_person(s.id, None).await.unwrap();
+
+ let write =
+ |distinct_id: &str, action, person: &common::TestPerson, min_version, expected_version| {
+ DistinctIdWrite {
+ distinct_id: distinct_id.to_string(),
+ action,
+ person_uuid: person.uuid,
+ min_version,
+ expected_version,
+ }
+ };
+ use DistinctIdWriteAction::{Insert, Raise};
+ use DistinctIdWriteOutcome::{Applied, PersonNotLive, PreconditionFailed, Unchanged};
+ let writes = vec![
+ write("w_new", Insert, &p, 5, None),
+ write("w_q", Insert, &p, 5, None),
+ write("w_on_deleted", Insert, &s, 5, None),
+ write("w_raise_on_deleted", Raise, &s, 5, None),
+ write("w_p", Raise, &p, 3, None),
+ write("w_q_same", Raise, &q, 0, None),
+ write("w_q_owner", Raise, &p, 3, None),
+ write("w_p_expect", Raise, &p, 3, Some(9)),
+ write("w_on_missing", Insert, &ghost, 5, None),
+ write("w_s", Insert, &p, 5, None),
+ write("w_p_gone", Raise, &p, 5, None),
+ ];
+
+ let results = ctx
+ .storage
+ .write_distinct_ids(ctx.team_id, &writes)
+ .await
+ .expect("write");
+
+ let summary: Vec<WriteSummary> = results
+ .iter()
+ .map(|r| {
+ (
+ r.distinct_id.as_str(),
+ r.outcome,
+ r.row
+ .as_ref()
+ .map(|row| (row.person_id, row.version, row.is_deleted)),
+ )
+ })
+ .collect();
+ assert_eq!(
+ summary,
+ vec![
+ ("w_new", Applied, Some((p.id, 5, false))),
+ ("w_q", PreconditionFailed, Some((q.id, 0, false))),
+ ("w_on_deleted", PersonNotLive, None),
+ ("w_raise_on_deleted", PersonNotLive, None),
+ ("w_p", Applied, Some((p.id, 3, false))),
+ ("w_q_same", Unchanged, Some((q.id, 0, false))),
+ ("w_q_owner", PreconditionFailed, Some((q.id, 0, false))),
+ ("w_p_expect", PreconditionFailed, Some((p.id, 0, false))),
+ ("w_on_missing", PersonNotLive, None),
+ ("w_s", PreconditionFailed, Some((s.id, 1, true))),
+ ("w_p_gone", PreconditionFailed, Some((p.id, 2, true))),
+ ]
+ );
+ let marks_left: i64 =
+ sqlx::query_scalar("SELECT count(*) FROM lifecycle_op WHERE team_id = $1")
+ .bind(ctx.team_id as i32)
+ .fetch_one(&ctx.pool)
+ .await
+ .unwrap();
+ assert_eq!(marks_left, 0);
+
+ ctx.cleanup().await.ok();
+}
+
+#[rstest]
+#[case::write_distinct_ids(false)]
+#[case::raise_person_version_floors(true)]
#[tokio::test]
-async fn test_raise_person_version_floors_fails_when_another_operation_holds_the_person() {
+async fn test_repair_writes_fail_when_another_operation_holds_the_person(#[case] raise: bool) {
let ctx = TestContext::new().await;
let person = ctx.insert_person("w_marked", None).await.unwrap();
let mut conn = ctx.pool.acquire().await.unwrap();
let op_id = claim_merge_mark(&mut conn, ctx.team_id, &person).await;
- let err = ctx
- .storage
- .raise_person_version_floors(ctx.team_id, &[(person.uuid, 9)])
- .await
- .expect_err("a held mark fails the call");
+ let result = if raise {
+ ctx.storage
+ .raise_person_version_floors(ctx.team_id, &[(person.uuid, 9)])
+ .await
+ .map(|_| ())
+ } else {
+ ctx.storage
+ .write_distinct_ids(
+ ctx.team_id,
+ &[DistinctIdWrite {
+ distinct_id: "w_blocked".to_string(),
+ action: DistinctIdWriteAction::Insert,
+ person_uuid: person.uuid,
+ min_version: 1,
+ expected_version: None,
+ }],
+ )
+ .await
+ .map(|_| ())
+ };
+ let err = result.expect_err("a held mark fails the call");
assert!(
err.to_string()
.contains("claimed by another lifecycle operation"),
@@ -5235,6 +5377,15 @@ async fn test_raise_person_version_floors_fails_when_another_operation_holds_the
.unwrap();
assert_eq!(version, 0);
+ let inserted: i64 = sqlx::query_scalar(
+ "SELECT count(*) FROM posthog_persondistinctid WHERE team_id = $1 AND distinct_id = 'w_blocked'",
+ )
+ .bind(ctx.team_id)
+ .fetch_one(&ctx.pool)
+ .await
+ .unwrap();
+ assert_eq!(inserted, 0);
+
sqlx::query("DELETE FROM lifecycle_op WHERE op_id = $1")
.bind(op_id)
.execute(&ctx.pool)
diff --git a/rust/personhog-router/src/proxy.rs b/rust/personhog-router/src/proxy.rs
index c486f461baba..46a1bb1f6304 100644
--- a/rust/personhog-router/src/proxy.rs
+++ b/rust/personhog-router/src/proxy.rs
@@ -83,6 +83,7 @@ pub const KNOWN_METHODS: &[&str] = &[
"UpdateGroupTypeMapping",
"UpdatePersonProperties",
"UpsertHashKeyOverrides",
+ "WriteDistinctIds",
];
/// Identity-server RPCs, forwarded verbatim; sorted for binary search.
diff --git a/rust/personhog-router/tests/common/mod.rs b/rust/personhog-router/tests/common/mod.rs
index 0cbe19a3d9fa..b6b6d3d47e89 100644
--- a/rust/personhog-router/tests/common/mod.rs
+++ b/rust/personhog-router/tests/common/mod.rs
@@ -60,7 +60,8 @@ use personhog_proto::personhog::types::v1::{
SetPersonVersionFloorRequest, SetPersonVersionFloorResponse, SplitPersonRequest,
SplitPersonResponse, UpdateGroupRequest, UpdateGroupResponse, UpdateGroupTypeMappingRequest,
UpdateGroupTypeMappingResponse, UpdatePersonPropertiesRequest, UpdatePersonPropertiesResponse,
- UpsertHashKeyOverridesRequest, UpsertHashKeyOverridesResponse,
+ UpsertHashKeyOverridesRequest, UpsertHashKeyOverridesResponse, WriteDistinctIdsRequest,
+ WriteDistinctIdsResponse,
};
use personhog_router::backend::{
ChannelBackend, DnsBackendConfig, LeaderBackend, LeaderBackendConfig, StashTable,
@@ -578,6 +579,13 @@ impl PersonHogReplica for TestReplicaService {
) -> Result<Response<RestorePersonsResponse>, Status> {
Ok(Response::new(RestorePersonsResponse::default()))
}
+
+ async fn write_distinct_ids(
+ &self,
+ _request: Request<WriteDistinctIdsRequest>,
+ ) -> Result<Response<WriteDistinctIdsResponse>, Status> {
+ Ok(Response::new(WriteDistinctIdsResponse::default()))
+ }
}
/// Start a test replica server on a random port and return its address
diff --git a/rust/property-defs-rs/tests/group_type_resolver.rs b/rust/property-defs-rs/tests/group_type_resolver.rs
index 8feeea0888a2..3533695f4fb2 100644
--- a/rust/property-defs-rs/tests/group_type_resolver.rs
+++ b/rust/property-defs-rs/tests/group_type_resolver.rs
@@ -478,6 +478,13 @@ impl PersonHogService for MockPersonHogService {
) -> Result<Response<RestorePersonsResponse>, Status> {
Err(Status::unimplemented(""))
}
+
+ async fn write_distinct_ids(
+ &self,
+ _: Request<WriteDistinctIdsRequest>,
+ ) -> Result<Response<WriteDistinctIdsResponse>, Status> {
+ Err(Status::unimplemented(""))
+ }
}
// -- helpers ------------------------------------------------------------