diff --git a/openapi/schemas/audience.openapi.json b/openapi/schemas/audience.openapi.json index c22cef25a..adfec2363 100644 --- a/openapi/schemas/audience.openapi.json +++ b/openapi/schemas/audience.openapi.json @@ -2647,6 +2647,11 @@ "type": "string", "description": "The email of the audience owner." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "isPublic": { "type": "boolean", "description": "Whether the audience is publicly visible." @@ -4369,6 +4374,11 @@ "type": "string", "description": "The email of the audience owner." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "isPublic": { "type": "boolean", "description": "Whether the audience is publicly visible." diff --git a/openapi/schemas/campaign.openapi.json b/openapi/schemas/campaign.openapi.json index d2ae4ffb4..f7efa5aeb 100644 --- a/openapi/schemas/campaign.openapi.json +++ b/openapi/schemas/campaign.openapi.json @@ -1926,6 +1926,11 @@ "type": "string", "description": "The email of the campaign owner." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "createdAt": { "type": "string", "description": "The timestamp when the campaign was created.", @@ -3096,6 +3101,11 @@ "type": "string", "description": "The email of the campaign owner." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "createdAt": { "type": "string", "description": "The timestamp when the campaign was created.", diff --git a/openapi/schemas/flow.openapi.json b/openapi/schemas/flow.openapi.json index c7a1bcbe6..3dd1c7569 100644 --- a/openapi/schemas/flow.openapi.json +++ b/openapi/schemas/flow.openapi.json @@ -2184,6 +2184,11 @@ "type": "string", "description": "The email of the customer who owns the flow." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "createdAt": { "type": "string", "description": "The timestamp when the flow was created.", @@ -2675,6 +2680,11 @@ "type": "string", "description": "The email of the customer who owns the flow." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "createdAt": { "type": "string", "description": "The timestamp when the flow was created.", diff --git a/openapi/schemas/leaderboard.openapi.json b/openapi/schemas/leaderboard.openapi.json index 46e88a10e..16a78cbd0 100644 --- a/openapi/schemas/leaderboard.openapi.json +++ b/openapi/schemas/leaderboard.openapi.json @@ -12210,6 +12210,11 @@ "type": "string", "description": "The mail of the customer owning the benchmark." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "initialBoostLevel": { "type": "integer", "description": "The initial boost level applied to the campaign of every run created from this\n benchmark. Null means the benchmark default is used.", @@ -12921,6 +12926,11 @@ "ownerMail": { "type": "string", "description": "The mail of the customer that owns the sample." + }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true } } }, @@ -13020,6 +13030,11 @@ "type": "string", "description": "The mail of the customer that started this generation." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "createdAt": { "type": "string", "description": "When the generation was created.", @@ -13258,6 +13273,10 @@ }, "ownerMail": { "type": "string" + }, + "organizationId": { + "type": "string", + "nullable": true } } }, @@ -13345,6 +13364,11 @@ "ownerMail": { "type": "string", "description": "The mail of the customer that owns the sample." + }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true } } }, @@ -13537,6 +13561,11 @@ "ownerMail": { "type": "string", "description": "The mail of the customer that owns the sample." + }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true } } }, @@ -14295,6 +14324,11 @@ "ownerMail": { "type": "string", "description": "The mail of the customer owning the benchmark." + }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true } } }, @@ -14734,6 +14768,11 @@ "type": "string", "description": "The mail of the owner of the run." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "orderId": { "type": "string", "description": "The id of the associated order, if any.", @@ -15096,6 +15135,11 @@ "ownerMail": { "type": "string", "description": "The mail of the customer owning the benchmark." + }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true } } }, @@ -15416,6 +15460,11 @@ "ownerMail": { "type": "string", "description": "The mail of the customer owning the benchmark." + }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true } } }, @@ -15548,6 +15597,11 @@ "type": "string", "description": "The mail of the customer that started this generation." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "createdAt": { "type": "string", "description": "When the generation was created.", diff --git a/openapi/schemas/order.openapi.json b/openapi/schemas/order.openapi.json index 2f44c3913..ff6137f33 100644 --- a/openapi/schemas/order.openapi.json +++ b/openapi/schemas/order.openapi.json @@ -5029,6 +5029,11 @@ "ownerMail": { "type": "string", "description": "The owner email." + }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true } }, "description": "The result when a job has been retrieved." @@ -5110,6 +5115,11 @@ "ownerMail": { "type": "string", "description": "The email of the job definition's owner." + }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true } }, "description": "The result when a job definition has been retrieved." @@ -7072,6 +7082,11 @@ "ownerMail": { "type": "string", "description": "The customer's email address." + }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true } } }, @@ -7227,6 +7242,11 @@ "ownerMail": { "type": "string", "description": "The email of the owner of the job definition." + }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true } } }, @@ -7395,6 +7415,11 @@ "type": "string", "description": "The email of the job's owner." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "createdAt": { "type": "string", "description": "The timestamp when the job was created.", @@ -7573,6 +7598,11 @@ "ownerMail": { "type": "string", "description": "The email of the owner of the job definition." + }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true } } }, diff --git a/openapi/schemas/rapidata.filtered.openapi.json b/openapi/schemas/rapidata.filtered.openapi.json index 244170fa9..e88535669 100644 --- a/openapi/schemas/rapidata.filtered.openapi.json +++ b/openapi/schemas/rapidata.filtered.openapi.json @@ -34313,6 +34313,11 @@ "type": "string", "description": "The email of the audience owner." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "isPublic": { "type": "boolean", "description": "Whether the audience is publicly visible." @@ -36022,6 +36027,11 @@ "type": "string", "description": "The email of the audience owner." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "isPublic": { "type": "boolean", "description": "Whether the audience is publicly visible." @@ -37015,6 +37025,11 @@ "type": "string", "description": "The email of the campaign owner." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "createdAt": { "type": "string", "description": "The timestamp when the campaign was created.", @@ -38180,6 +38195,11 @@ "type": "string", "description": "The email of the campaign owner." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "createdAt": { "type": "string", "description": "The timestamp when the campaign was created.", @@ -39619,6 +39639,11 @@ "type": "string", "description": "The email of the customer who owns the flow." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "createdAt": { "type": "string", "description": "The timestamp when the flow was created.", @@ -39801,6 +39826,11 @@ "type": "string", "description": "The email of the customer who owns the flow." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "createdAt": { "type": "string", "description": "The timestamp when the flow was created.", @@ -41537,6 +41567,11 @@ "type": "string", "description": "The mail of the customer owning the benchmark." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "initialBoostLevel": { "type": "integer", "description": "The initial boost level applied to the campaign of every run created from this\n benchmark. Null means the benchmark default is used.", @@ -42236,6 +42271,11 @@ "ownerMail": { "type": "string", "description": "The mail of the customer that owns the sample." + }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true } } }, @@ -42335,6 +42375,11 @@ "type": "string", "description": "The mail of the customer that started this generation." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "createdAt": { "type": "string", "description": "When the generation was created.", @@ -42568,6 +42613,10 @@ }, "ownerMail": { "type": "string" + }, + "organizationId": { + "type": "string", + "nullable": true } } }, @@ -42649,6 +42698,11 @@ "ownerMail": { "type": "string", "description": "The mail of the customer that owns the sample." + }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true } } }, @@ -42829,6 +42883,11 @@ "ownerMail": { "type": "string", "description": "The mail of the customer that owns the sample." + }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true } } }, @@ -43032,6 +43091,11 @@ "ownerMail": { "type": "string", "description": "The mail of the customer owning the benchmark." + }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true } } }, @@ -43471,6 +43535,11 @@ "type": "string", "description": "The mail of the owner of the run." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "orderId": { "type": "string", "description": "The id of the associated order, if any.", @@ -43833,6 +43902,11 @@ "ownerMail": { "type": "string", "description": "The mail of the customer owning the benchmark." + }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true } } }, @@ -44153,6 +44227,11 @@ "ownerMail": { "type": "string", "description": "The mail of the customer owning the benchmark." + }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true } } }, @@ -44285,6 +44364,11 @@ "type": "string", "description": "The mail of the customer that started this generation." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "createdAt": { "type": "string", "description": "When the generation was created.", @@ -45778,6 +45862,11 @@ "ownerMail": { "type": "string", "description": "The owner email." + }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true } }, "description": "The result when a job has been retrieved." @@ -45859,6 +45948,11 @@ "ownerMail": { "type": "string", "description": "The email of the job definition's owner." + }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true } }, "description": "The result when a job definition has been retrieved." @@ -47636,6 +47730,11 @@ "ownerMail": { "type": "string", "description": "The customer's email address." + }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true } } }, @@ -47791,6 +47890,11 @@ "ownerMail": { "type": "string", "description": "The email of the owner of the job definition." + }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true } } }, @@ -47944,6 +48048,11 @@ "type": "string", "description": "The email of the job's owner." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "createdAt": { "type": "string", "description": "The timestamp when the job was created.", @@ -48122,6 +48231,11 @@ "ownerMail": { "type": "string", "description": "The email of the owner of the job definition." + }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true } } }, @@ -54909,6 +55023,11 @@ "type": "string", "description": "The email of the signal owner." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "createdAt": { "type": "string", "description": "When the signal was created.", @@ -55159,6 +55278,11 @@ "type": "string", "description": "The email of the signal owner." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "createdAt": { "type": "string", "description": "When the signal was created.", @@ -55545,6 +55669,10 @@ "ownerMail": { "type": "string" }, + "organizationId": { + "type": "string", + "nullable": true + }, "createdAt": { "type": "string", "format": "date-time" @@ -55617,6 +55745,10 @@ "ownerMail": { "type": "string" }, + "organizationId": { + "type": "string", + "nullable": true + }, "createdAt": { "type": "string", "format": "date-time" @@ -55772,6 +55904,11 @@ "type": "string", "description": "The mail of the owning customer." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "ownerId": { "type": "string", "description": "The id of the owning customer.", @@ -55878,6 +56015,11 @@ "type": "string", "description": "The mail of the owning customer." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "createdAt": { "type": "string", "description": "The time at which the validation set was created.", @@ -56737,6 +56879,10 @@ "ownerMail": { "type": "string", "nullable": true + }, + "organizationId": { + "type": "string", + "nullable": true } } }, @@ -56776,6 +56922,10 @@ "type": "string", "nullable": true }, + "organizationId": { + "type": "string", + "nullable": true + }, "rankingConfig": { "type": "object", "oneOf": [ @@ -56850,6 +57000,10 @@ "ownerMail": { "type": "string", "nullable": true + }, + "organizationId": { + "type": "string", + "nullable": true } } }, @@ -57140,6 +57294,10 @@ "ownerMail": { "type": "string", "nullable": true + }, + "organizationId": { + "type": "string", + "nullable": true } } }, diff --git a/openapi/schemas/rapidata.openapi.json b/openapi/schemas/rapidata.openapi.json index 63e27e260..cccecc471 100644 --- a/openapi/schemas/rapidata.openapi.json +++ b/openapi/schemas/rapidata.openapi.json @@ -36021,6 +36021,11 @@ "type": "string", "description": "The email of the audience owner." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "isPublic": { "type": "boolean", "description": "Whether the audience is publicly visible." @@ -37739,6 +37744,11 @@ "type": "string", "description": "The email of the audience owner." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "isPublic": { "type": "boolean", "description": "Whether the audience is publicly visible." @@ -38780,6 +38790,11 @@ "type": "string", "description": "The email of the campaign owner." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "createdAt": { "type": "string", "description": "The timestamp when the campaign was created.", @@ -39950,6 +39965,11 @@ "type": "string", "description": "The email of the campaign owner." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "createdAt": { "type": "string", "description": "The timestamp when the campaign was created.", @@ -41448,6 +41468,11 @@ "type": "string", "description": "The email of the customer who owns the flow." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "createdAt": { "type": "string", "description": "The timestamp when the flow was created.", @@ -41630,6 +41655,11 @@ "type": "string", "description": "The email of the customer who owns the flow." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "createdAt": { "type": "string", "description": "The timestamp when the flow was created.", @@ -43372,6 +43402,11 @@ "type": "string", "description": "The mail of the customer owning the benchmark." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "initialBoostLevel": { "type": "integer", "description": "The initial boost level applied to the campaign of every run created from this\n benchmark. Null means the benchmark default is used.", @@ -44083,6 +44118,11 @@ "ownerMail": { "type": "string", "description": "The mail of the customer that owns the sample." + }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true } } }, @@ -44182,6 +44222,11 @@ "type": "string", "description": "The mail of the customer that started this generation." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "createdAt": { "type": "string", "description": "When the generation was created.", @@ -44420,6 +44465,10 @@ }, "ownerMail": { "type": "string" + }, + "organizationId": { + "type": "string", + "nullable": true } } }, @@ -44507,6 +44556,11 @@ "ownerMail": { "type": "string", "description": "The mail of the customer that owns the sample." + }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true } } }, @@ -44699,6 +44753,11 @@ "ownerMail": { "type": "string", "description": "The mail of the customer that owns the sample." + }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true } } }, @@ -44902,6 +44961,11 @@ "ownerMail": { "type": "string", "description": "The mail of the customer owning the benchmark." + }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true } } }, @@ -45341,6 +45405,11 @@ "type": "string", "description": "The mail of the owner of the run." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "orderId": { "type": "string", "description": "The id of the associated order, if any.", @@ -45703,6 +45772,11 @@ "ownerMail": { "type": "string", "description": "The mail of the customer owning the benchmark." + }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true } } }, @@ -46023,6 +46097,11 @@ "ownerMail": { "type": "string", "description": "The mail of the customer owning the benchmark." + }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true } } }, @@ -46155,6 +46234,11 @@ "type": "string", "description": "The mail of the customer that started this generation." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "createdAt": { "type": "string", "description": "When the generation was created.", @@ -47704,6 +47788,11 @@ "ownerMail": { "type": "string", "description": "The owner email." + }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true } }, "description": "The result when a job has been retrieved." @@ -47785,6 +47874,11 @@ "ownerMail": { "type": "string", "description": "The email of the job definition's owner." + }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true } }, "description": "The result when a job definition has been retrieved." @@ -49570,6 +49664,11 @@ "ownerMail": { "type": "string", "description": "The customer's email address." + }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true } } }, @@ -49725,6 +49824,11 @@ "ownerMail": { "type": "string", "description": "The email of the owner of the job definition." + }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true } } }, @@ -49893,6 +49997,11 @@ "type": "string", "description": "The email of the job's owner." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "createdAt": { "type": "string", "description": "The timestamp when the job was created.", @@ -50071,6 +50180,11 @@ "ownerMail": { "type": "string", "description": "The email of the owner of the job definition." + }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true } } }, @@ -56941,6 +57055,11 @@ "type": "string", "description": "The email of the signal owner." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "createdAt": { "type": "string", "description": "When the signal was created.", @@ -57191,6 +57310,11 @@ "type": "string", "description": "The email of the signal owner." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "createdAt": { "type": "string", "description": "When the signal was created.", @@ -57577,6 +57701,10 @@ "ownerMail": { "type": "string" }, + "organizationId": { + "type": "string", + "nullable": true + }, "createdAt": { "type": "string", "format": "date-time" @@ -57649,6 +57777,10 @@ "ownerMail": { "type": "string" }, + "organizationId": { + "type": "string", + "nullable": true + }, "createdAt": { "type": "string", "format": "date-time" @@ -57804,6 +57936,11 @@ "type": "string", "description": "The mail of the owning customer." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "ownerId": { "type": "string", "description": "The id of the owning customer.", @@ -57910,6 +58047,11 @@ "type": "string", "description": "The mail of the owning customer." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "createdAt": { "type": "string", "description": "The time at which the validation set was created.", @@ -58769,6 +58911,10 @@ "ownerMail": { "type": "string", "nullable": true + }, + "organizationId": { + "type": "string", + "nullable": true } } }, @@ -58808,6 +58954,10 @@ "type": "string", "nullable": true }, + "organizationId": { + "type": "string", + "nullable": true + }, "rankingConfig": { "type": "object", "oneOf": [ @@ -58882,6 +59032,10 @@ "ownerMail": { "type": "string", "nullable": true + }, + "organizationId": { + "type": "string", + "nullable": true } } }, @@ -59172,6 +59326,10 @@ "ownerMail": { "type": "string", "nullable": true + }, + "organizationId": { + "type": "string", + "nullable": true } } }, diff --git a/openapi/schemas/signal.openapi.json b/openapi/schemas/signal.openapi.json index 5ea8cd481..5c8cef6f7 100644 --- a/openapi/schemas/signal.openapi.json +++ b/openapi/schemas/signal.openapi.json @@ -1382,6 +1382,11 @@ "type": "string", "description": "The email of the signal owner." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "createdAt": { "type": "string", "description": "When the signal was created.", @@ -1632,6 +1637,11 @@ "type": "string", "description": "The email of the signal owner." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "createdAt": { "type": "string", "description": "When the signal was created.", diff --git a/openapi/schemas/validation.openapi.json b/openapi/schemas/validation.openapi.json index 205a739f5..4ffbddc02 100644 --- a/openapi/schemas/validation.openapi.json +++ b/openapi/schemas/validation.openapi.json @@ -1644,6 +1644,10 @@ "ownerMail": { "type": "string" }, + "organizationId": { + "type": "string", + "nullable": true + }, "createdAt": { "type": "string", "format": "date-time" @@ -1716,6 +1720,10 @@ "ownerMail": { "type": "string" }, + "organizationId": { + "type": "string", + "nullable": true + }, "createdAt": { "type": "string", "format": "date-time" @@ -1871,6 +1879,11 @@ "type": "string", "description": "The mail of the owning customer." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "ownerId": { "type": "string", "description": "The id of the owning customer.", @@ -3161,6 +3174,11 @@ "type": "string", "description": "The mail of the owning customer." }, + "organizationId": { + "type": "string", + "description": "The id of the organization that owns the entity.", + "nullable": true + }, "createdAt": { "type": "string", "description": "The time at which the validation set was created.", diff --git a/openapi/schemas/workflow.openapi.json b/openapi/schemas/workflow.openapi.json index 0db585e15..658e3fb31 100644 --- a/openapi/schemas/workflow.openapi.json +++ b/openapi/schemas/workflow.openapi.json @@ -3047,6 +3047,10 @@ "ownerMail": { "type": "string", "nullable": true + }, + "organizationId": { + "type": "string", + "nullable": true } } }, @@ -3086,6 +3090,10 @@ "type": "string", "nullable": true }, + "organizationId": { + "type": "string", + "nullable": true + }, "rankingConfig": { "type": "object", "oneOf": [ @@ -3160,6 +3168,10 @@ "ownerMail": { "type": "string", "nullable": true + }, + "organizationId": { + "type": "string", + "nullable": true } } }, @@ -3450,6 +3462,10 @@ "ownerMail": { "type": "string", "nullable": true + }, + "organizationId": { + "type": "string", + "nullable": true } } }, diff --git a/src/rapidata/api_client/models/get_audience_by_id_endpoint_output.py b/src/rapidata/api_client/models/get_audience_by_id_endpoint_output.py index 12860dd32..d440a27b1 100644 --- a/src/rapidata/api_client/models/get_audience_by_id_endpoint_output.py +++ b/src/rapidata/api_client/models/get_audience_by_id_endpoint_output.py @@ -43,6 +43,7 @@ class GetAudienceByIdEndpointOutput(LazyValidatedModel): created_at: datetime = Field(description="The timestamp when the audience was created.", alias="createdAt") owner_id: UUID = Field(description="The unique identifier of the audience owner.", alias="ownerId") owner_mail: StrictStr = Field(description="The email of the audience owner.", alias="ownerMail") + organization_id: Optional[StrictStr] = Field(default=None, description="The id of the organization that owns the entity.", alias="organizationId") is_public: StrictBool = Field(description="Whether the audience is publicly visible.", alias="isPublic") is_distilling: StrictBool = Field(description="Whether the audience is currently distilling users.", alias="isDistilling") distilling_campaign_id: StrictStr = Field(description="The id of the distilling campaign associated with the audience.", alias="distillingCampaignId") @@ -65,7 +66,7 @@ class GetAudienceByIdEndpointOutput(LazyValidatedModel): health: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The health score of the audience.") graduated: Optional[StrictInt] = Field(default=None, description="The number of graduated users.") dropped: Optional[StrictInt] = Field(default=None, description="The number of dropped users.") - __properties: ClassVar[List[str]] = ["id", "name", "description", "status", "qualifiedUserCount", "filters", "logo", "createdAt", "ownerId", "ownerMail", "isPublic", "isDistilling", "distillingCampaignId", "minGraduatedForDistillingBoost", "minDistillingForGlobalBoost", "graduationScore", "demotionScore", "maxDistillingResponses", "minResponsesToGraduate", "dropMinResponses", "dropScore", "maxDistillingSessions", "inactivityDropDays", "minSubmissionRate", "minSessionsForSubmissionRate", "minSubmissionRateGraduated", "distillingRetrievalMode", "boostLevel", "randomAdmissionProbability", "health", "graduated", "dropped"] + __properties: ClassVar[List[str]] = ["id", "name", "description", "status", "qualifiedUserCount", "filters", "logo", "createdAt", "ownerId", "ownerMail", "organizationId", "isPublic", "isDistilling", "distillingCampaignId", "minGraduatedForDistillingBoost", "minDistillingForGlobalBoost", "graduationScore", "demotionScore", "maxDistillingResponses", "minResponsesToGraduate", "dropMinResponses", "dropScore", "maxDistillingSessions", "inactivityDropDays", "minSubmissionRate", "minSessionsForSubmissionRate", "minSubmissionRateGraduated", "distillingRetrievalMode", "boostLevel", "randomAdmissionProbability", "health", "graduated", "dropped"] # model_config is inherited from LazyValidatedModel @@ -119,6 +120,11 @@ def to_dict(self) -> Dict[str, Any]: if self.logo is None and "logo" in self.model_fields_set: _dict['logo'] = None + # set to None if organization_id (nullable) is None + # and model_fields_set contains the field + if self.organization_id is None and "organization_id" in self.model_fields_set: + _dict['organizationId'] = None + # set to None if min_graduated_for_distilling_boost (nullable) is None # and model_fields_set contains the field if self.min_graduated_for_distilling_boost is None and "min_graduated_for_distilling_boost" in self.model_fields_set: @@ -211,6 +217,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "createdAt": obj.get("createdAt"), "ownerId": obj.get("ownerId"), "ownerMail": obj.get("ownerMail"), + "organizationId": obj.get("organizationId"), "isPublic": obj.get("isPublic"), "isDistilling": obj.get("isDistilling"), "distillingCampaignId": obj.get("distillingCampaignId"), diff --git a/src/rapidata/api_client/models/get_benchmark_by_id_endpoint_output.py b/src/rapidata/api_client/models/get_benchmark_by_id_endpoint_output.py index 8d57b506f..5e1f1b5f9 100644 --- a/src/rapidata/api_client/models/get_benchmark_by_id_endpoint_output.py +++ b/src/rapidata/api_client/models/get_benchmark_by_id_endpoint_output.py @@ -37,10 +37,11 @@ class GetBenchmarkByIdEndpointOutput(LazyValidatedModel): created_at: datetime = Field(description="The timestamp when the benchmark was created.", alias="createdAt") owner_id: UUID = Field(description="The id of the customer owning the benchmark.", alias="ownerId") owner_mail: StrictStr = Field(description="The mail of the customer owning the benchmark.", alias="ownerMail") + organization_id: Optional[StrictStr] = Field(default=None, description="The id of the organization that owns the entity.", alias="organizationId") initial_boost_level: Optional[StrictInt] = Field(description="The initial boost level applied to the campaign of every run created from this benchmark. Null means the benchmark default is used.", alias="initialBoostLevel") score_shift: Union[StrictFloat, StrictInt] = Field(description="Additive offset applied to displayed scores on the overall scoreboard of this benchmark.", alias="scoreShift") score_scale: Union[StrictFloat, StrictInt] = Field(description="Multiplicative factor applied to displayed scores (relative to the Bradley-Terry center) on the overall scoreboard of this benchmark.", alias="scoreScale") - __properties: ClassVar[List[str]] = ["id", "name", "description", "isPublic", "isPublished", "createdAt", "ownerId", "ownerMail", "initialBoostLevel", "scoreShift", "scoreScale"] + __properties: ClassVar[List[str]] = ["id", "name", "description", "isPublic", "isPublished", "createdAt", "ownerId", "ownerMail", "organizationId", "initialBoostLevel", "scoreShift", "scoreScale"] # model_config is inherited from LazyValidatedModel @@ -82,6 +83,11 @@ def to_dict(self) -> Dict[str, Any]: if self.description is None and "description" in self.model_fields_set: _dict['description'] = None + # set to None if organization_id (nullable) is None + # and model_fields_set contains the field + if self.organization_id is None and "organization_id" in self.model_fields_set: + _dict['organizationId'] = None + # set to None if initial_boost_level (nullable) is None # and model_fields_set contains the field if self.initial_boost_level is None and "initial_boost_level" in self.model_fields_set: @@ -107,6 +113,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "createdAt": obj.get("createdAt"), "ownerId": obj.get("ownerId"), "ownerMail": obj.get("ownerMail"), + "organizationId": obj.get("organizationId"), "initialBoostLevel": obj.get("initialBoostLevel"), "scoreShift": obj.get("scoreShift"), "scoreScale": obj.get("scoreScale") diff --git a/src/rapidata/api_client/models/get_campaign_by_id_endpoint_output.py b/src/rapidata/api_client/models/get_campaign_by_id_endpoint_output.py index cef6b2651..761b64196 100644 --- a/src/rapidata/api_client/models/get_campaign_by_id_endpoint_output.py +++ b/src/rapidata/api_client/models/get_campaign_by_id_endpoint_output.py @@ -18,7 +18,7 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from rapidata.api_client.models.boosting_control_mode import BoostingControlMode from rapidata.api_client.models.boosting_profile import BoostingProfile from rapidata.api_client.models.campaign_status import CampaignStatus @@ -48,8 +48,9 @@ class GetCampaignByIdEndpointOutput(LazyValidatedModel): selections: List[ICampaignSelection] feature_flags: List[FeatureFlag] = Field(alias="featureFlags") owner_mail: StrictStr = Field(description="The email of the campaign owner.", alias="ownerMail") + organization_id: Optional[StrictStr] = Field(default=None, description="The id of the organization that owns the entity.", alias="organizationId") created_at: datetime = Field(description="The timestamp when the campaign was created.", alias="createdAt") - __properties: ClassVar[List[str]] = ["id", "name", "status", "priority", "boostingProfile", "boostingControlMode", "hasBooster", "boostLevel", "stickyConfig", "filters", "selections", "featureFlags", "ownerMail", "createdAt"] + __properties: ClassVar[List[str]] = ["id", "name", "status", "priority", "boostingProfile", "boostingControlMode", "hasBooster", "boostLevel", "stickyConfig", "filters", "selections", "featureFlags", "ownerMail", "organizationId", "createdAt"] # model_config is inherited from LazyValidatedModel @@ -113,6 +114,11 @@ def to_dict(self) -> Dict[str, Any]: if _item_feature_flags: _items.append(_item_feature_flags.to_dict()) _dict['featureFlags'] = _items + # set to None if organization_id (nullable) is None + # and model_fields_set contains the field + if self.organization_id is None and "organization_id" in self.model_fields_set: + _dict['organizationId'] = None + return _dict @classmethod @@ -138,6 +144,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "selections": [ICampaignSelection.from_dict(_item) for _item in obj["selections"]] if obj.get("selections") is not None else None, "featureFlags": [FeatureFlag.from_dict(_item) for _item in obj["featureFlags"]] if obj.get("featureFlags") is not None else None, "ownerMail": obj.get("ownerMail"), + "organizationId": obj.get("organizationId"), "createdAt": obj.get("createdAt") } try: diff --git a/src/rapidata/api_client/models/get_compatible_validation_sets_endpoint_validation_set_output.py b/src/rapidata/api_client/models/get_compatible_validation_sets_endpoint_validation_set_output.py index f4558218b..7cb611a87 100644 --- a/src/rapidata/api_client/models/get_compatible_validation_sets_endpoint_validation_set_output.py +++ b/src/rapidata/api_client/models/get_compatible_validation_sets_endpoint_validation_set_output.py @@ -38,8 +38,9 @@ class GetCompatibleValidationSetsEndpointValidationSetOutput(LazyValidatedModel) is_public: StrictBool = Field(alias="isPublic") owner_id: UUID = Field(alias="ownerId") owner_mail: StrictStr = Field(alias="ownerMail") + organization_id: Optional[StrictStr] = Field(default=None, alias="organizationId") created_at: datetime = Field(alias="createdAt") - __properties: ClassVar[List[str]] = ["id", "name", "assetType", "modality", "promptType", "dimensions", "isPublic", "ownerId", "ownerMail", "createdAt"] + __properties: ClassVar[List[str]] = ["id", "name", "assetType", "modality", "promptType", "dimensions", "isPublic", "ownerId", "ownerMail", "organizationId", "createdAt"] @field_validator('asset_type') def asset_type_validate_enum(cls, value): @@ -105,6 +106,11 @@ def to_dict(self) -> Dict[str, Any]: if self.dimensions is None and "dimensions" in self.model_fields_set: _dict['dimensions'] = None + # set to None if organization_id (nullable) is None + # and model_fields_set contains the field + if self.organization_id is None and "organization_id" in self.model_fields_set: + _dict['organizationId'] = None + return _dict @classmethod @@ -126,6 +132,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "isPublic": obj.get("isPublic"), "ownerId": obj.get("ownerId"), "ownerMail": obj.get("ownerMail"), + "organizationId": obj.get("organizationId"), "createdAt": obj.get("createdAt") } try: diff --git a/src/rapidata/api_client/models/get_job_by_id_endpoint_output.py b/src/rapidata/api_client/models/get_job_by_id_endpoint_output.py index 6ee41ef66..8b9de55fd 100644 --- a/src/rapidata/api_client/models/get_job_by_id_endpoint_output.py +++ b/src/rapidata/api_client/models/get_job_by_id_endpoint_output.py @@ -48,7 +48,8 @@ class GetJobByIdEndpointOutput(LazyValidatedModel): created_at: datetime = Field(description="The creation timestamp.", alias="createdAt") owner_id: UUID = Field(description="The owner id.", alias="ownerId") owner_mail: StrictStr = Field(description="The owner email.", alias="ownerMail") - __properties: ClassVar[List[str]] = ["jobId", "name", "definitionId", "audienceId", "revisionNumber", "pipelineId", "state", "isPublic", "audienceDeleted", "completedAt", "resultFileName", "failedAt", "failureMessage", "reviewReason", "createdAt", "ownerId", "ownerMail"] + organization_id: Optional[StrictStr] = Field(default=None, description="The id of the organization that owns the entity.", alias="organizationId") + __properties: ClassVar[List[str]] = ["jobId", "name", "definitionId", "audienceId", "revisionNumber", "pipelineId", "state", "isPublic", "audienceDeleted", "completedAt", "resultFileName", "failedAt", "failureMessage", "reviewReason", "createdAt", "ownerId", "ownerMail", "organizationId"] # model_config is inherited from LazyValidatedModel @@ -105,6 +106,11 @@ def to_dict(self) -> Dict[str, Any]: if self.failure_message is None and "failure_message" in self.model_fields_set: _dict['failureMessage'] = None + # set to None if organization_id (nullable) is None + # and model_fields_set contains the field + if self.organization_id is None and "organization_id" in self.model_fields_set: + _dict['organizationId'] = None + return _dict @classmethod @@ -133,7 +139,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "reviewReason": obj.get("reviewReason"), "createdAt": obj.get("createdAt"), "ownerId": obj.get("ownerId"), - "ownerMail": obj.get("ownerMail") + "ownerMail": obj.get("ownerMail"), + "organizationId": obj.get("organizationId") } try: _obj = cls.model_validate(_data) diff --git a/src/rapidata/api_client/models/get_job_definition_by_id_endpoint_output.py b/src/rapidata/api_client/models/get_job_definition_by_id_endpoint_output.py index 0996ded90..744fcc607 100644 --- a/src/rapidata/api_client/models/get_job_definition_by_id_endpoint_output.py +++ b/src/rapidata/api_client/models/get_job_definition_by_id_endpoint_output.py @@ -18,7 +18,7 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from uuid import UUID from rapidata.api_client.models.definition_type import DefinitionType from pydantic import ValidationError @@ -37,7 +37,8 @@ class GetJobDefinitionByIdEndpointOutput(LazyValidatedModel): created_at: datetime = Field(description="The creation timestamp.", alias="createdAt") owner_id: UUID = Field(description="The id of the job definition's owner.", alias="ownerId") owner_mail: StrictStr = Field(description="The email of the job definition's owner.", alias="ownerMail") - __properties: ClassVar[List[str]] = ["definitionId", "name", "definitionType", "isPublic", "createdAt", "ownerId", "ownerMail"] + organization_id: Optional[StrictStr] = Field(default=None, description="The id of the organization that owns the entity.", alias="organizationId") + __properties: ClassVar[List[str]] = ["definitionId", "name", "definitionType", "isPublic", "createdAt", "ownerId", "ownerMail", "organizationId"] # model_config is inherited from LazyValidatedModel @@ -74,6 +75,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if organization_id (nullable) is None + # and model_fields_set contains the field + if self.organization_id is None and "organization_id" in self.model_fields_set: + _dict['organizationId'] = None + return _dict @classmethod @@ -92,7 +98,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "isPublic": obj.get("isPublic"), "createdAt": obj.get("createdAt"), "ownerId": obj.get("ownerId"), - "ownerMail": obj.get("ownerMail") + "ownerMail": obj.get("ownerMail"), + "organizationId": obj.get("organizationId") } try: _obj = cls.model_validate(_data) diff --git a/src/rapidata/api_client/models/get_recommended_validation_set_endpoint_validation_set_output.py b/src/rapidata/api_client/models/get_recommended_validation_set_endpoint_validation_set_output.py index f0577e1b8..fd4cef49b 100644 --- a/src/rapidata/api_client/models/get_recommended_validation_set_endpoint_validation_set_output.py +++ b/src/rapidata/api_client/models/get_recommended_validation_set_endpoint_validation_set_output.py @@ -38,8 +38,9 @@ class GetRecommendedValidationSetEndpointValidationSetOutput(LazyValidatedModel) is_public: StrictBool = Field(alias="isPublic") owner_id: UUID = Field(alias="ownerId") owner_mail: StrictStr = Field(alias="ownerMail") + organization_id: Optional[StrictStr] = Field(default=None, alias="organizationId") created_at: datetime = Field(alias="createdAt") - __properties: ClassVar[List[str]] = ["id", "name", "assetType", "modality", "promptType", "dimensions", "isPublic", "ownerId", "ownerMail", "createdAt"] + __properties: ClassVar[List[str]] = ["id", "name", "assetType", "modality", "promptType", "dimensions", "isPublic", "ownerId", "ownerMail", "organizationId", "createdAt"] @field_validator('asset_type') def asset_type_validate_enum(cls, value): @@ -105,6 +106,11 @@ def to_dict(self) -> Dict[str, Any]: if self.dimensions is None and "dimensions" in self.model_fields_set: _dict['dimensions'] = None + # set to None if organization_id (nullable) is None + # and model_fields_set contains the field + if self.organization_id is None and "organization_id" in self.model_fields_set: + _dict['organizationId'] = None + return _dict @classmethod @@ -126,6 +132,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "isPublic": obj.get("isPublic"), "ownerId": obj.get("ownerId"), "ownerMail": obj.get("ownerMail"), + "organizationId": obj.get("organizationId"), "createdAt": obj.get("createdAt") } try: diff --git a/src/rapidata/api_client/models/get_sample_by_id_endpoint_output.py b/src/rapidata/api_client/models/get_sample_by_id_endpoint_output.py index 09df8378a..c73a908d9 100644 --- a/src/rapidata/api_client/models/get_sample_by_id_endpoint_output.py +++ b/src/rapidata/api_client/models/get_sample_by_id_endpoint_output.py @@ -42,7 +42,8 @@ class GetSampleByIdEndpointOutput(LazyValidatedModel): created_at: Optional[datetime] = Field(default=None, description="The timestamp when the sample was created.", alias="createdAt") owner_id: Optional[UUID] = Field(default=None, description="The id of the customer that owns the sample.", alias="ownerId") owner_mail: StrictStr = Field(description="The mail of the customer that owns the sample.", alias="ownerMail") - __properties: ClassVar[List[str]] = ["id", "identifier", "participantId", "participantName", "asset", "englishPrompt", "originalPrompt", "promptAsset", "tags", "createdAt", "ownerId", "ownerMail"] + organization_id: Optional[StrictStr] = Field(default=None, description="The id of the organization that owns the entity.", alias="organizationId") + __properties: ClassVar[List[str]] = ["id", "identifier", "participantId", "participantName", "asset", "englishPrompt", "originalPrompt", "promptAsset", "tags", "createdAt", "ownerId", "ownerMail", "organizationId"] # model_config is inherited from LazyValidatedModel @@ -95,6 +96,11 @@ def to_dict(self) -> Dict[str, Any]: if self.original_prompt is None and "original_prompt" in self.model_fields_set: _dict['originalPrompt'] = None + # set to None if organization_id (nullable) is None + # and model_fields_set contains the field + if self.organization_id is None and "organization_id" in self.model_fields_set: + _dict['organizationId'] = None + return _dict @classmethod @@ -118,7 +124,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "tags": obj.get("tags"), "createdAt": obj.get("createdAt"), "ownerId": obj.get("ownerId"), - "ownerMail": obj.get("ownerMail") + "ownerMail": obj.get("ownerMail"), + "organizationId": obj.get("organizationId") } try: _obj = cls.model_validate(_data) diff --git a/src/rapidata/api_client/models/get_sample_generation_endpoint_output.py b/src/rapidata/api_client/models/get_sample_generation_endpoint_output.py index a7fb1c71a..d6d72ce7b 100644 --- a/src/rapidata/api_client/models/get_sample_generation_endpoint_output.py +++ b/src/rapidata/api_client/models/get_sample_generation_endpoint_output.py @@ -42,8 +42,9 @@ class GetSampleGenerationEndpointOutput(LazyValidatedModel): tags_filter: Optional[List[StrictStr]] = Field(default=None, alias="tagsFilter") owner_id: UUID = Field(description="The id of the customer that started this generation.", alias="ownerId") owner_mail: StrictStr = Field(description="The mail of the customer that started this generation.", alias="ownerMail") + organization_id: Optional[StrictStr] = Field(default=None, description="The id of the organization that owns the entity.", alias="organizationId") created_at: datetime = Field(description="When the generation was created.", alias="createdAt") - __properties: ClassVar[List[str]] = ["id", "benchmarkId", "status", "samplesPerPrompt", "totalCount", "completedCount", "failedCount", "participantIdFilter", "promptIdentifierFilter", "tagsFilter", "ownerId", "ownerMail", "createdAt"] + __properties: ClassVar[List[str]] = ["id", "benchmarkId", "status", "samplesPerPrompt", "totalCount", "completedCount", "failedCount", "participantIdFilter", "promptIdentifierFilter", "tagsFilter", "ownerId", "ownerMail", "organizationId", "createdAt"] # model_config is inherited from LazyValidatedModel @@ -95,6 +96,11 @@ def to_dict(self) -> Dict[str, Any]: if self.tags_filter is None and "tags_filter" in self.model_fields_set: _dict['tagsFilter'] = None + # set to None if organization_id (nullable) is None + # and model_fields_set contains the field + if self.organization_id is None and "organization_id" in self.model_fields_set: + _dict['organizationId'] = None + return _dict @classmethod @@ -119,6 +125,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "tagsFilter": obj.get("tagsFilter"), "ownerId": obj.get("ownerId"), "ownerMail": obj.get("ownerMail"), + "organizationId": obj.get("organizationId"), "createdAt": obj.get("createdAt") } try: diff --git a/src/rapidata/api_client/models/get_sample_navigation_endpoint_sample.py b/src/rapidata/api_client/models/get_sample_navigation_endpoint_sample.py index 0d6ac776d..aa03df5bd 100644 --- a/src/rapidata/api_client/models/get_sample_navigation_endpoint_sample.py +++ b/src/rapidata/api_client/models/get_sample_navigation_endpoint_sample.py @@ -42,7 +42,8 @@ class GetSampleNavigationEndpointSample(LazyValidatedModel): created_at: Optional[datetime] = Field(default=None, alias="createdAt") owner_id: Optional[UUID] = Field(default=None, alias="ownerId") owner_mail: StrictStr = Field(alias="ownerMail") - __properties: ClassVar[List[str]] = ["id", "identifier", "participantId", "participantName", "asset", "englishPrompt", "originalPrompt", "promptAsset", "tags", "createdAt", "ownerId", "ownerMail"] + organization_id: Optional[StrictStr] = Field(default=None, alias="organizationId") + __properties: ClassVar[List[str]] = ["id", "identifier", "participantId", "participantName", "asset", "englishPrompt", "originalPrompt", "promptAsset", "tags", "createdAt", "ownerId", "ownerMail", "organizationId"] # model_config is inherited from LazyValidatedModel @@ -100,6 +101,11 @@ def to_dict(self) -> Dict[str, Any]: if self.prompt_asset is None and "prompt_asset" in self.model_fields_set: _dict['promptAsset'] = None + # set to None if organization_id (nullable) is None + # and model_fields_set contains the field + if self.organization_id is None and "organization_id" in self.model_fields_set: + _dict['organizationId'] = None + return _dict @classmethod @@ -123,7 +129,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "tags": obj.get("tags"), "createdAt": obj.get("createdAt"), "ownerId": obj.get("ownerId"), - "ownerMail": obj.get("ownerMail") + "ownerMail": obj.get("ownerMail"), + "organizationId": obj.get("organizationId") } try: _obj = cls.model_validate(_data) diff --git a/src/rapidata/api_client/models/get_samples_by_identifier_endpoint_output.py b/src/rapidata/api_client/models/get_samples_by_identifier_endpoint_output.py index dfeb76f3f..37d98d39d 100644 --- a/src/rapidata/api_client/models/get_samples_by_identifier_endpoint_output.py +++ b/src/rapidata/api_client/models/get_samples_by_identifier_endpoint_output.py @@ -42,7 +42,8 @@ class GetSamplesByIdentifierEndpointOutput(LazyValidatedModel): created_at: Optional[datetime] = Field(default=None, description="The timestamp when the sample was created.", alias="createdAt") owner_id: Optional[UUID] = Field(default=None, description="The id of the customer that owns the sample.", alias="ownerId") owner_mail: StrictStr = Field(description="The mail of the customer that owns the sample.", alias="ownerMail") - __properties: ClassVar[List[str]] = ["id", "identifier", "participantId", "participantName", "asset", "englishPrompt", "originalPrompt", "promptAsset", "tags", "createdAt", "ownerId", "ownerMail"] + organization_id: Optional[StrictStr] = Field(default=None, description="The id of the organization that owns the entity.", alias="organizationId") + __properties: ClassVar[List[str]] = ["id", "identifier", "participantId", "participantName", "asset", "englishPrompt", "originalPrompt", "promptAsset", "tags", "createdAt", "ownerId", "ownerMail", "organizationId"] # model_config is inherited from LazyValidatedModel @@ -95,6 +96,11 @@ def to_dict(self) -> Dict[str, Any]: if self.original_prompt is None and "original_prompt" in self.model_fields_set: _dict['originalPrompt'] = None + # set to None if organization_id (nullable) is None + # and model_fields_set contains the field + if self.organization_id is None and "organization_id" in self.model_fields_set: + _dict['organizationId'] = None + return _dict @classmethod @@ -118,7 +124,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "tags": obj.get("tags"), "createdAt": obj.get("createdAt"), "ownerId": obj.get("ownerId"), - "ownerMail": obj.get("ownerMail") + "ownerMail": obj.get("ownerMail"), + "organizationId": obj.get("organizationId") } try: _obj = cls.model_validate(_data) diff --git a/src/rapidata/api_client/models/get_samples_by_participant_endpoint_i_sample_output_get_samples_by_participant_endpoint_sample_output.py b/src/rapidata/api_client/models/get_samples_by_participant_endpoint_i_sample_output_get_samples_by_participant_endpoint_sample_output.py index fd7ba9b3a..338baa634 100644 --- a/src/rapidata/api_client/models/get_samples_by_participant_endpoint_i_sample_output_get_samples_by_participant_endpoint_sample_output.py +++ b/src/rapidata/api_client/models/get_samples_by_participant_endpoint_i_sample_output_get_samples_by_participant_endpoint_sample_output.py @@ -41,7 +41,8 @@ class GetSamplesByParticipantEndpointISampleOutputGetSamplesByParticipantEndpoin created_at: Optional[datetime] = Field(default=None, description="The timestamp when the sample was created.", alias="createdAt") owner_id: Optional[UUID] = Field(default=None, description="The id of the customer that owns the sample.", alias="ownerId") owner_mail: StrictStr = Field(description="The mail of the customer that owns the sample.", alias="ownerMail") - __properties: ClassVar[List[str]] = ["_t", "id", "identifier", "asset", "englishPrompt", "originalPrompt", "promptAsset", "tags", "createdAt", "ownerId", "ownerMail"] + organization_id: Optional[StrictStr] = Field(default=None, description="The id of the organization that owns the entity.", alias="organizationId") + __properties: ClassVar[List[str]] = ["_t", "id", "identifier", "asset", "englishPrompt", "originalPrompt", "promptAsset", "tags", "createdAt", "ownerId", "ownerMail", "organizationId"] @field_validator('t') def t_validate_enum(cls, value): @@ -101,6 +102,11 @@ def to_dict(self) -> Dict[str, Any]: if self.original_prompt is None and "original_prompt" in self.model_fields_set: _dict['originalPrompt'] = None + # set to None if organization_id (nullable) is None + # and model_fields_set contains the field + if self.organization_id is None and "organization_id" in self.model_fields_set: + _dict['organizationId'] = None + return _dict @classmethod @@ -123,7 +129,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "tags": obj.get("tags"), "createdAt": obj.get("createdAt"), "ownerId": obj.get("ownerId"), - "ownerMail": obj.get("ownerMail") + "ownerMail": obj.get("ownerMail"), + "organizationId": obj.get("organizationId") } try: _obj = cls.model_validate(_data) diff --git a/src/rapidata/api_client/models/get_signal_by_id_endpoint_output.py b/src/rapidata/api_client/models/get_signal_by_id_endpoint_output.py index 51229156c..33897e7ac 100644 --- a/src/rapidata/api_client/models/get_signal_by_id_endpoint_output.py +++ b/src/rapidata/api_client/models/get_signal_by_id_endpoint_output.py @@ -42,8 +42,9 @@ class GetSignalByIdEndpointOutput(LazyValidatedModel): is_public: StrictBool = Field(description="Whether the signal is readable by every authenticated user.", alias="isPublic") owner_id: UUID = Field(description="The customer id of the signal owner.", alias="ownerId") owner_mail: StrictStr = Field(description="The email of the signal owner.", alias="ownerMail") + organization_id: Optional[StrictStr] = Field(default=None, description="The id of the organization that owns the entity.", alias="organizationId") created_at: datetime = Field(description="When the signal was created.", alias="createdAt") - __properties: ClassVar[List[str]] = ["id", "name", "description", "audienceId", "jobDefinitionId", "revisionNumber", "intervalSeconds", "nextRunAt", "lastRunAt", "isPaused", "isPublic", "ownerId", "ownerMail", "createdAt"] + __properties: ClassVar[List[str]] = ["id", "name", "description", "audienceId", "jobDefinitionId", "revisionNumber", "intervalSeconds", "nextRunAt", "lastRunAt", "isPaused", "isPublic", "ownerId", "ownerMail", "organizationId", "createdAt"] # model_config is inherited from LazyValidatedModel @@ -95,6 +96,11 @@ def to_dict(self) -> Dict[str, Any]: if self.last_run_at is None and "last_run_at" in self.model_fields_set: _dict['lastRunAt'] = None + # set to None if organization_id (nullable) is None + # and model_fields_set contains the field + if self.organization_id is None and "organization_id" in self.model_fields_set: + _dict['organizationId'] = None + return _dict @classmethod @@ -120,6 +126,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "isPublic": obj.get("isPublic"), "ownerId": obj.get("ownerId"), "ownerMail": obj.get("ownerMail"), + "organizationId": obj.get("organizationId"), "createdAt": obj.get("createdAt") } try: diff --git a/src/rapidata/api_client/models/get_validation_set_by_id_endpoint_output.py b/src/rapidata/api_client/models/get_validation_set_by_id_endpoint_output.py index f3fc96ade..def2ff99c 100644 --- a/src/rapidata/api_client/models/get_validation_set_by_id_endpoint_output.py +++ b/src/rapidata/api_client/models/get_validation_set_by_id_endpoint_output.py @@ -18,7 +18,7 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from uuid import UUID from pydantic import ValidationError from rapidata.api_client.lazy_model import LazyValidatedModel @@ -33,10 +33,11 @@ class GetValidationSetByIdEndpointOutput(LazyValidatedModel): name: StrictStr = Field(description="The name of the validation set.") is_public: StrictBool = Field(description="Whether the validation set is public.", alias="isPublic") owner_mail: StrictStr = Field(description="The mail of the owning customer.", alias="ownerMail") + organization_id: Optional[StrictStr] = Field(default=None, description="The id of the organization that owns the entity.", alias="organizationId") owner_id: UUID = Field(description="The id of the owning customer.", alias="ownerId") dimensions: List[StrictStr] created_at: datetime = Field(description="The time at which the validation set was created.", alias="createdAt") - __properties: ClassVar[List[str]] = ["id", "name", "isPublic", "ownerMail", "ownerId", "dimensions", "createdAt"] + __properties: ClassVar[List[str]] = ["id", "name", "isPublic", "ownerMail", "organizationId", "ownerId", "dimensions", "createdAt"] # model_config is inherited from LazyValidatedModel @@ -73,6 +74,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if organization_id (nullable) is None + # and model_fields_set contains the field + if self.organization_id is None and "organization_id" in self.model_fields_set: + _dict['organizationId'] = None + return _dict @classmethod @@ -89,6 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "name": obj.get("name"), "isPublic": obj.get("isPublic"), "ownerMail": obj.get("ownerMail"), + "organizationId": obj.get("organizationId"), "ownerId": obj.get("ownerId"), "dimensions": obj.get("dimensions"), "createdAt": obj.get("createdAt") diff --git a/src/rapidata/api_client/models/i_flow.py b/src/rapidata/api_client/models/i_flow.py index f6a046d5f..23d81fe2d 100644 --- a/src/rapidata/api_client/models/i_flow.py +++ b/src/rapidata/api_client/models/i_flow.py @@ -55,8 +55,9 @@ class IFlow(LazyValidatedModel): feature_flags: List[FeatureFlag] = Field(alias="featureFlags") owner_id: UUID = Field(description="The ID of the customer who owns the flow.", alias="ownerId") owner_mail: StrictStr = Field(description="The email of the customer who owns the flow.", alias="ownerMail") + organization_id: Optional[StrictStr] = Field(default=None, description="The id of the organization that owns the entity.", alias="organizationId") created_at: datetime = Field(description="The timestamp when the flow was created.", alias="createdAt") - __properties: ClassVar[List[str]] = ["_t", "id", "name", "campaignId", "flowItemCount", "targetResponseCount", "pidProportionalGain", "pidIntegralGain", "pidDerivativeGain", "pidOutputOffset", "pidMinSessionsPerMinute", "pidMaxSessionsPerMinute", "pidBatchMode", "serveTimeoutSeconds", "drainDurationSeconds", "serveToResponseRatio", "criteria", "startingElo", "minResponses", "maxResponses", "serveResponses", "featureFlags", "ownerId", "ownerMail", "createdAt"] + __properties: ClassVar[List[str]] = ["_t", "id", "name", "campaignId", "flowItemCount", "targetResponseCount", "pidProportionalGain", "pidIntegralGain", "pidDerivativeGain", "pidOutputOffset", "pidMinSessionsPerMinute", "pidMaxSessionsPerMinute", "pidBatchMode", "serveTimeoutSeconds", "drainDurationSeconds", "serveToResponseRatio", "criteria", "startingElo", "minResponses", "maxResponses", "serveResponses", "featureFlags", "ownerId", "ownerMail", "organizationId", "createdAt"] @field_validator('t') def t_validate_enum(cls, value): @@ -137,6 +138,11 @@ def to_dict(self) -> Dict[str, Any]: if self.serve_responses is None and "serve_responses" in self.model_fields_set: _dict['serveResponses'] = None + # set to None if organization_id (nullable) is None + # and model_fields_set contains the field + if self.organization_id is None and "organization_id" in self.model_fields_set: + _dict['organizationId'] = None + return _dict @classmethod @@ -173,6 +179,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "featureFlags": [FeatureFlag.from_dict(_item) for _item in obj["featureFlags"]] if obj.get("featureFlags") is not None else None, "ownerId": obj.get("ownerId"), "ownerMail": obj.get("ownerMail"), + "organizationId": obj.get("organizationId"), "createdAt": obj.get("createdAt") } try: diff --git a/src/rapidata/api_client/models/i_flow_ranking_flow.py b/src/rapidata/api_client/models/i_flow_ranking_flow.py index e9512b53c..243b123ac 100644 --- a/src/rapidata/api_client/models/i_flow_ranking_flow.py +++ b/src/rapidata/api_client/models/i_flow_ranking_flow.py @@ -55,8 +55,9 @@ class IFlowRankingFlow(LazyValidatedModel): feature_flags: List[FeatureFlag] = Field(alias="featureFlags") owner_id: UUID = Field(description="The ID of the customer who owns the flow.", alias="ownerId") owner_mail: StrictStr = Field(description="The email of the customer who owns the flow.", alias="ownerMail") + organization_id: Optional[StrictStr] = Field(default=None, description="The id of the organization that owns the entity.", alias="organizationId") created_at: datetime = Field(description="The timestamp when the flow was created.", alias="createdAt") - __properties: ClassVar[List[str]] = ["_t", "id", "name", "campaignId", "flowItemCount", "targetResponseCount", "pidProportionalGain", "pidIntegralGain", "pidDerivativeGain", "pidOutputOffset", "pidMinSessionsPerMinute", "pidMaxSessionsPerMinute", "pidBatchMode", "serveTimeoutSeconds", "drainDurationSeconds", "serveToResponseRatio", "criteria", "startingElo", "minResponses", "maxResponses", "serveResponses", "featureFlags", "ownerId", "ownerMail", "createdAt"] + __properties: ClassVar[List[str]] = ["_t", "id", "name", "campaignId", "flowItemCount", "targetResponseCount", "pidProportionalGain", "pidIntegralGain", "pidDerivativeGain", "pidOutputOffset", "pidMinSessionsPerMinute", "pidMaxSessionsPerMinute", "pidBatchMode", "serveTimeoutSeconds", "drainDurationSeconds", "serveToResponseRatio", "criteria", "startingElo", "minResponses", "maxResponses", "serveResponses", "featureFlags", "ownerId", "ownerMail", "organizationId", "createdAt"] @field_validator('t') def t_validate_enum(cls, value): @@ -137,6 +138,11 @@ def to_dict(self) -> Dict[str, Any]: if self.serve_responses is None and "serve_responses" in self.model_fields_set: _dict['serveResponses'] = None + # set to None if organization_id (nullable) is None + # and model_fields_set contains the field + if self.organization_id is None and "organization_id" in self.model_fields_set: + _dict['organizationId'] = None + return _dict @classmethod @@ -173,6 +179,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "featureFlags": [FeatureFlag.from_dict(_item) for _item in obj["featureFlags"]] if obj.get("featureFlags") is not None else None, "ownerId": obj.get("ownerId"), "ownerMail": obj.get("ownerMail"), + "organizationId": obj.get("organizationId"), "createdAt": obj.get("createdAt") } try: diff --git a/src/rapidata/api_client/models/i_workflow_evaluation_workflow.py b/src/rapidata/api_client/models/i_workflow_evaluation_workflow.py index 2393ac951..175fe6ba5 100644 --- a/src/rapidata/api_client/models/i_workflow_evaluation_workflow.py +++ b/src/rapidata/api_client/models/i_workflow_evaluation_workflow.py @@ -36,7 +36,8 @@ class IWorkflowEvaluationWorkflow(LazyValidatedModel): referee: IRefereeConfig name: StrictStr owner_mail: Optional[StrictStr] = Field(alias="ownerMail") - __properties: ClassVar[List[str]] = ["_t", "id", "validationSetId", "state", "referee", "name", "ownerMail"] + organization_id: Optional[StrictStr] = Field(default=None, alias="organizationId") + __properties: ClassVar[List[str]] = ["_t", "id", "validationSetId", "state", "referee", "name", "ownerMail", "organizationId"] @field_validator('t') def t_validate_enum(cls, value): @@ -88,6 +89,11 @@ def to_dict(self) -> Dict[str, Any]: if self.owner_mail is None and "owner_mail" in self.model_fields_set: _dict['ownerMail'] = None + # set to None if organization_id (nullable) is None + # and model_fields_set contains the field + if self.organization_id is None and "organization_id" in self.model_fields_set: + _dict['organizationId'] = None + return _dict @classmethod @@ -106,7 +112,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "state": obj.get("state"), "referee": IRefereeConfig.from_dict(obj["referee"]) if obj.get("referee") is not None else None, "name": obj.get("name"), - "ownerMail": obj.get("ownerMail") + "ownerMail": obj.get("ownerMail"), + "organizationId": obj.get("organizationId") } try: _obj = cls.model_validate(_data) diff --git a/src/rapidata/api_client/models/i_workflow_grouped_ranking_workflow.py b/src/rapidata/api_client/models/i_workflow_grouped_ranking_workflow.py index 94397041d..f8b2e31c6 100644 --- a/src/rapidata/api_client/models/i_workflow_grouped_ranking_workflow.py +++ b/src/rapidata/api_client/models/i_workflow_grouped_ranking_workflow.py @@ -37,8 +37,9 @@ class IWorkflowGroupedRankingWorkflow(LazyValidatedModel): criteria: StrictStr name: StrictStr owner_mail: Optional[StrictStr] = Field(alias="ownerMail") + organization_id: Optional[StrictStr] = Field(default=None, alias="organizationId") ranking_config: Optional[IRankingConfig] = Field(default=None, alias="rankingConfig") - __properties: ClassVar[List[str]] = ["_t", "id", "referee", "state", "criteria", "name", "ownerMail", "rankingConfig"] + __properties: ClassVar[List[str]] = ["_t", "id", "referee", "state", "criteria", "name", "ownerMail", "organizationId", "rankingConfig"] @field_validator('t') def t_validate_enum(cls, value): @@ -93,6 +94,11 @@ def to_dict(self) -> Dict[str, Any]: if self.owner_mail is None and "owner_mail" in self.model_fields_set: _dict['ownerMail'] = None + # set to None if organization_id (nullable) is None + # and model_fields_set contains the field + if self.organization_id is None and "organization_id" in self.model_fields_set: + _dict['organizationId'] = None + # set to None if ranking_config (nullable) is None # and model_fields_set contains the field if self.ranking_config is None and "ranking_config" in self.model_fields_set: @@ -117,6 +123,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "criteria": obj.get("criteria"), "name": obj.get("name"), "ownerMail": obj.get("ownerMail"), + "organizationId": obj.get("organizationId"), "rankingConfig": IRankingConfig.from_dict(obj["rankingConfig"]) if obj.get("rankingConfig") is not None else None } try: diff --git a/src/rapidata/api_client/models/i_workflow_ranking_workflow.py b/src/rapidata/api_client/models/i_workflow_ranking_workflow.py index facb3a609..7bdff779e 100644 --- a/src/rapidata/api_client/models/i_workflow_ranking_workflow.py +++ b/src/rapidata/api_client/models/i_workflow_ranking_workflow.py @@ -43,7 +43,8 @@ class IWorkflowRankingWorkflow(LazyValidatedModel): context: Optional[StrictStr] context_asset: Optional[IAsset] = Field(alias="contextAsset") owner_mail: Optional[StrictStr] = Field(alias="ownerMail") - __properties: ClassVar[List[str]] = ["_t", "id", "referee", "pairMakerInformation", "state", "criteria", "name", "rankingConfig", "context", "contextAsset", "ownerMail"] + organization_id: Optional[StrictStr] = Field(default=None, alias="organizationId") + __properties: ClassVar[List[str]] = ["_t", "id", "referee", "pairMakerInformation", "state", "criteria", "name", "rankingConfig", "context", "contextAsset", "ownerMail", "organizationId"] @field_validator('t') def t_validate_enum(cls, value): @@ -119,6 +120,11 @@ def to_dict(self) -> Dict[str, Any]: if self.owner_mail is None and "owner_mail" in self.model_fields_set: _dict['ownerMail'] = None + # set to None if organization_id (nullable) is None + # and model_fields_set contains the field + if self.organization_id is None and "organization_id" in self.model_fields_set: + _dict['organizationId'] = None + return _dict @classmethod @@ -141,7 +147,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "rankingConfig": IRankingConfig.from_dict(obj["rankingConfig"]) if obj.get("rankingConfig") is not None else None, "context": obj.get("context"), "contextAsset": IAsset.from_dict(obj["contextAsset"]) if obj.get("contextAsset") is not None else None, - "ownerMail": obj.get("ownerMail") + "ownerMail": obj.get("ownerMail"), + "organizationId": obj.get("organizationId") } try: _obj = cls.model_validate(_data) diff --git a/src/rapidata/api_client/models/i_workflow_simple_workflow.py b/src/rapidata/api_client/models/i_workflow_simple_workflow.py index 64b2fad0b..c93a34fbc 100644 --- a/src/rapidata/api_client/models/i_workflow_simple_workflow.py +++ b/src/rapidata/api_client/models/i_workflow_simple_workflow.py @@ -37,7 +37,8 @@ class IWorkflowSimpleWorkflow(LazyValidatedModel): referee: IRefereeConfig name: StrictStr owner_mail: Optional[StrictStr] = Field(alias="ownerMail") - __properties: ClassVar[List[str]] = ["_t", "id", "state", "blueprint", "referee", "name", "ownerMail"] + organization_id: Optional[StrictStr] = Field(default=None, alias="organizationId") + __properties: ClassVar[List[str]] = ["_t", "id", "state", "blueprint", "referee", "name", "ownerMail", "organizationId"] @field_validator('t') def t_validate_enum(cls, value): @@ -92,6 +93,11 @@ def to_dict(self) -> Dict[str, Any]: if self.owner_mail is None and "owner_mail" in self.model_fields_set: _dict['ownerMail'] = None + # set to None if organization_id (nullable) is None + # and model_fields_set contains the field + if self.organization_id is None and "organization_id" in self.model_fields_set: + _dict['organizationId'] = None + return _dict @classmethod @@ -110,7 +116,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "blueprint": IWorkflowRapidBlueprint.from_dict(obj["blueprint"]) if obj.get("blueprint") is not None else None, "referee": IRefereeConfig.from_dict(obj["referee"]) if obj.get("referee") is not None else None, "name": obj.get("name"), - "ownerMail": obj.get("ownerMail") + "ownerMail": obj.get("ownerMail"), + "organizationId": obj.get("organizationId") } try: _obj = cls.model_validate(_data) diff --git a/src/rapidata/api_client/models/query_aggregated_jobs_endpoint_output.py b/src/rapidata/api_client/models/query_aggregated_jobs_endpoint_output.py index 01a1fa516..d620925ee 100644 --- a/src/rapidata/api_client/models/query_aggregated_jobs_endpoint_output.py +++ b/src/rapidata/api_client/models/query_aggregated_jobs_endpoint_output.py @@ -18,7 +18,7 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from pydantic import ValidationError from rapidata.api_client.lazy_model import LazyValidatedModel from typing import Optional, Set @@ -34,7 +34,8 @@ class QueryAggregatedJobsEndpointOutput(LazyValidatedModel): last_job_name: StrictStr = Field(description="The name of the most recent job.", alias="lastJobName") last_job_id: StrictStr = Field(description="The ID of the most recent job.", alias="lastJobId") owner_mail: StrictStr = Field(description="The customer's email address.", alias="ownerMail") - __properties: ClassVar[List[str]] = ["amount", "last7Days", "lastJobDate", "lastJobName", "lastJobId", "ownerMail"] + organization_id: Optional[StrictStr] = Field(default=None, description="The id of the organization that owns the entity.", alias="organizationId") + __properties: ClassVar[List[str]] = ["amount", "last7Days", "lastJobDate", "lastJobName", "lastJobId", "ownerMail", "organizationId"] # model_config is inherited from LazyValidatedModel @@ -71,6 +72,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if organization_id (nullable) is None + # and model_fields_set contains the field + if self.organization_id is None and "organization_id" in self.model_fields_set: + _dict['organizationId'] = None + return _dict @classmethod @@ -88,7 +94,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "lastJobDate": obj.get("lastJobDate"), "lastJobName": obj.get("lastJobName"), "lastJobId": obj.get("lastJobId"), - "ownerMail": obj.get("ownerMail") + "ownerMail": obj.get("ownerMail"), + "organizationId": obj.get("organizationId") } try: _obj = cls.model_validate(_data) diff --git a/src/rapidata/api_client/models/query_audiences_endpoint_output.py b/src/rapidata/api_client/models/query_audiences_endpoint_output.py index fa05d5db1..b19b1d30a 100644 --- a/src/rapidata/api_client/models/query_audiences_endpoint_output.py +++ b/src/rapidata/api_client/models/query_audiences_endpoint_output.py @@ -39,13 +39,14 @@ class QueryAudiencesEndpointOutput(LazyValidatedModel): logo: Optional[StrictStr] = Field(default=None, description="The URL of the audience logo, if any.") created_at: datetime = Field(description="The timestamp when the audience was created.", alias="createdAt") owner_mail: StrictStr = Field(description="The email of the audience owner.", alias="ownerMail") + organization_id: Optional[StrictStr] = Field(default=None, description="The id of the organization that owns the entity.", alias="organizationId") is_public: StrictBool = Field(description="Whether the audience is publicly visible.", alias="isPublic") is_distilling: StrictBool = Field(description="Whether the audience is currently distilling users.", alias="isDistilling") random_admission_probability: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The probability of admitting a random user to the audience.", alias="randomAdmissionProbability") health: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The health score of the audience.") graduated: Optional[StrictInt] = Field(default=None, description="The number of graduated users.") dropped: Optional[StrictInt] = Field(default=None, description="The number of dropped users.") - __properties: ClassVar[List[str]] = ["id", "name", "description", "status", "qualifiedUserCount", "filters", "logo", "createdAt", "ownerMail", "isPublic", "isDistilling", "randomAdmissionProbability", "health", "graduated", "dropped"] + __properties: ClassVar[List[str]] = ["id", "name", "description", "status", "qualifiedUserCount", "filters", "logo", "createdAt", "ownerMail", "organizationId", "isPublic", "isDistilling", "randomAdmissionProbability", "health", "graduated", "dropped"] # model_config is inherited from LazyValidatedModel @@ -99,6 +100,11 @@ def to_dict(self) -> Dict[str, Any]: if self.logo is None and "logo" in self.model_fields_set: _dict['logo'] = None + # set to None if organization_id (nullable) is None + # and model_fields_set contains the field + if self.organization_id is None and "organization_id" in self.model_fields_set: + _dict['organizationId'] = None + # set to None if random_admission_probability (nullable) is None # and model_fields_set contains the field if self.random_admission_probability is None and "random_admission_probability" in self.model_fields_set: @@ -130,6 +136,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "logo": obj.get("logo"), "createdAt": obj.get("createdAt"), "ownerMail": obj.get("ownerMail"), + "organizationId": obj.get("organizationId"), "isPublic": obj.get("isPublic"), "isDistilling": obj.get("isDistilling"), "randomAdmissionProbability": obj.get("randomAdmissionProbability"), diff --git a/src/rapidata/api_client/models/query_benchmarks_endpoint_output.py b/src/rapidata/api_client/models/query_benchmarks_endpoint_output.py index c79e32231..317547d3d 100644 --- a/src/rapidata/api_client/models/query_benchmarks_endpoint_output.py +++ b/src/rapidata/api_client/models/query_benchmarks_endpoint_output.py @@ -18,7 +18,7 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from pydantic import ValidationError from rapidata.api_client.lazy_model import LazyValidatedModel from typing import Optional, Set @@ -35,7 +35,8 @@ class QueryBenchmarksEndpointOutput(LazyValidatedModel): is_published: StrictBool = Field(description="Whether the benchmark is published to the public benchmark repository.", alias="isPublished") created_at: datetime = Field(description="The timestamp when the benchmark was created.", alias="createdAt") owner_mail: StrictStr = Field(description="The mail of the customer owning the benchmark.", alias="ownerMail") - __properties: ClassVar[List[str]] = ["id", "name", "isManaged", "isPublic", "isPublished", "createdAt", "ownerMail"] + organization_id: Optional[StrictStr] = Field(default=None, description="The id of the organization that owns the entity.", alias="organizationId") + __properties: ClassVar[List[str]] = ["id", "name", "isManaged", "isPublic", "isPublished", "createdAt", "ownerMail", "organizationId"] # model_config is inherited from LazyValidatedModel @@ -72,6 +73,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if organization_id (nullable) is None + # and model_fields_set contains the field + if self.organization_id is None and "organization_id" in self.model_fields_set: + _dict['organizationId'] = None + return _dict @classmethod @@ -90,7 +96,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "isPublic": obj.get("isPublic"), "isPublished": obj.get("isPublished"), "createdAt": obj.get("createdAt"), - "ownerMail": obj.get("ownerMail") + "ownerMail": obj.get("ownerMail"), + "organizationId": obj.get("organizationId") } try: _obj = cls.model_validate(_data) diff --git a/src/rapidata/api_client/models/query_campaigns_endpoint_output.py b/src/rapidata/api_client/models/query_campaigns_endpoint_output.py index 25d8337b1..3894ed0cf 100644 --- a/src/rapidata/api_client/models/query_campaigns_endpoint_output.py +++ b/src/rapidata/api_client/models/query_campaigns_endpoint_output.py @@ -18,7 +18,7 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from rapidata.api_client.models.boosting_control_mode import BoostingControlMode from rapidata.api_client.models.campaign_status import CampaignStatus from pydantic import ValidationError @@ -38,8 +38,9 @@ class QueryCampaignsEndpointOutput(LazyValidatedModel): boost_level: StrictInt = Field(description="The campaign's effective boost level (0-10). 0 when no boost is active. Lets clients render and edit the level without unpacking the boosting profile.", alias="boostLevel") boosting_control_mode: BoostingControlMode = Field(description="How the campaign's boost is controlled — Manual (user-editable) or Automatic (managed by an owning service; boost edits are rejected by the API).", alias="boostingControlMode") owner_mail: StrictStr = Field(description="The email of the campaign owner.", alias="ownerMail") + organization_id: Optional[StrictStr] = Field(default=None, description="The id of the organization that owns the entity.", alias="organizationId") created_at: datetime = Field(description="The timestamp when the campaign was created.", alias="createdAt") - __properties: ClassVar[List[str]] = ["id", "name", "status", "priority", "hasBooster", "boostLevel", "boostingControlMode", "ownerMail", "createdAt"] + __properties: ClassVar[List[str]] = ["id", "name", "status", "priority", "hasBooster", "boostLevel", "boostingControlMode", "ownerMail", "organizationId", "createdAt"] # model_config is inherited from LazyValidatedModel @@ -76,6 +77,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if organization_id (nullable) is None + # and model_fields_set contains the field + if self.organization_id is None and "organization_id" in self.model_fields_set: + _dict['organizationId'] = None + return _dict @classmethod @@ -96,6 +102,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "boostLevel": obj.get("boostLevel"), "boostingControlMode": obj.get("boostingControlMode"), "ownerMail": obj.get("ownerMail"), + "organizationId": obj.get("organizationId"), "createdAt": obj.get("createdAt") } try: diff --git a/src/rapidata/api_client/models/query_flows_endpoint_output.py b/src/rapidata/api_client/models/query_flows_endpoint_output.py index 08aa86820..3257c4665 100644 --- a/src/rapidata/api_client/models/query_flows_endpoint_output.py +++ b/src/rapidata/api_client/models/query_flows_endpoint_output.py @@ -18,7 +18,7 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from uuid import UUID from rapidata.api_client.models.flow_type import FlowType from pydantic import ValidationError @@ -35,8 +35,9 @@ class QueryFlowsEndpointOutput(LazyValidatedModel): type: FlowType = Field(description="The type of the flow.") owner_id: UUID = Field(description="The ID of the customer who owns the flow.", alias="ownerId") owner_mail: StrictStr = Field(description="The email of the customer who owns the flow.", alias="ownerMail") + organization_id: Optional[StrictStr] = Field(default=None, description="The id of the organization that owns the entity.", alias="organizationId") created_at: datetime = Field(description="The timestamp when the flow was created.", alias="createdAt") - __properties: ClassVar[List[str]] = ["id", "name", "type", "ownerId", "ownerMail", "createdAt"] + __properties: ClassVar[List[str]] = ["id", "name", "type", "ownerId", "ownerMail", "organizationId", "createdAt"] # model_config is inherited from LazyValidatedModel @@ -73,6 +74,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if organization_id (nullable) is None + # and model_fields_set contains the field + if self.organization_id is None and "organization_id" in self.model_fields_set: + _dict['organizationId'] = None + return _dict @classmethod @@ -90,6 +96,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "type": obj.get("type"), "ownerId": obj.get("ownerId"), "ownerMail": obj.get("ownerMail"), + "organizationId": obj.get("organizationId"), "createdAt": obj.get("createdAt") } try: diff --git a/src/rapidata/api_client/models/query_job_definitions_endpoint_output.py b/src/rapidata/api_client/models/query_job_definitions_endpoint_output.py index a0ff34eb1..5267976cd 100644 --- a/src/rapidata/api_client/models/query_job_definitions_endpoint_output.py +++ b/src/rapidata/api_client/models/query_job_definitions_endpoint_output.py @@ -18,7 +18,7 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from uuid import UUID from rapidata.api_client.models.definition_type import DefinitionType from pydantic import ValidationError @@ -37,7 +37,8 @@ class QueryJobDefinitionsEndpointOutput(LazyValidatedModel): revision_count: StrictInt = Field(description="The number of revisions for this job definition.", alias="revisionCount") owner_id: UUID = Field(description="The id of the owner of the job definition.", alias="ownerId") owner_mail: StrictStr = Field(description="The email of the owner of the job definition.", alias="ownerMail") - __properties: ClassVar[List[str]] = ["definitionId", "name", "definitionType", "createdAt", "revisionCount", "ownerId", "ownerMail"] + organization_id: Optional[StrictStr] = Field(default=None, description="The id of the organization that owns the entity.", alias="organizationId") + __properties: ClassVar[List[str]] = ["definitionId", "name", "definitionType", "createdAt", "revisionCount", "ownerId", "ownerMail", "organizationId"] # model_config is inherited from LazyValidatedModel @@ -74,6 +75,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if organization_id (nullable) is None + # and model_fields_set contains the field + if self.organization_id is None and "organization_id" in self.model_fields_set: + _dict['organizationId'] = None + return _dict @classmethod @@ -92,7 +98,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "createdAt": obj.get("createdAt"), "revisionCount": obj.get("revisionCount"), "ownerId": obj.get("ownerId"), - "ownerMail": obj.get("ownerMail") + "ownerMail": obj.get("ownerMail"), + "organizationId": obj.get("organizationId") } try: _obj = cls.model_validate(_data) diff --git a/src/rapidata/api_client/models/query_jobs_endpoint_output.py b/src/rapidata/api_client/models/query_jobs_endpoint_output.py index 8b01c6efb..1ef424746 100644 --- a/src/rapidata/api_client/models/query_jobs_endpoint_output.py +++ b/src/rapidata/api_client/models/query_jobs_endpoint_output.py @@ -37,9 +37,10 @@ class QueryJobsEndpointOutput(LazyValidatedModel): pipeline_id: StrictStr = Field(description="The id of the pipeline executing the job.", alias="pipelineId") state: AudienceJobState = Field(description="The current state of the job.") owner_mail: StrictStr = Field(description="The email of the job's owner.", alias="ownerMail") + organization_id: Optional[StrictStr] = Field(default=None, description="The id of the organization that owns the entity.", alias="organizationId") created_at: datetime = Field(description="The timestamp when the job was created.", alias="createdAt") progress: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Labeling completion as a ratio in the range 0–1, or null when no progress has been reported yet (completion sets it to 1). Sortable via ?sort=progress.") - __properties: ClassVar[List[str]] = ["jobId", "name", "jobDefinitionId", "audienceId", "revisionNumber", "pipelineId", "state", "ownerMail", "createdAt", "progress"] + __properties: ClassVar[List[str]] = ["jobId", "name", "jobDefinitionId", "audienceId", "revisionNumber", "pipelineId", "state", "ownerMail", "organizationId", "createdAt", "progress"] # model_config is inherited from LazyValidatedModel @@ -76,6 +77,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if organization_id (nullable) is None + # and model_fields_set contains the field + if self.organization_id is None and "organization_id" in self.model_fields_set: + _dict['organizationId'] = None + # set to None if progress (nullable) is None # and model_fields_set contains the field if self.progress is None and "progress" in self.model_fields_set: @@ -101,6 +107,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "pipelineId": obj.get("pipelineId"), "state": obj.get("state"), "ownerMail": obj.get("ownerMail"), + "organizationId": obj.get("organizationId"), "createdAt": obj.get("createdAt"), "progress": obj.get("progress") } diff --git a/src/rapidata/api_client/models/query_leaderboard_runs_endpoint_output.py b/src/rapidata/api_client/models/query_leaderboard_runs_endpoint_output.py index f49ea67a8..5434539fd 100644 --- a/src/rapidata/api_client/models/query_leaderboard_runs_endpoint_output.py +++ b/src/rapidata/api_client/models/query_leaderboard_runs_endpoint_output.py @@ -34,10 +34,11 @@ class QueryLeaderboardRunsEndpointOutput(LazyValidatedModel): status: RunStatus = Field(description="The status of the run.") created_at: datetime = Field(description="The timestamp when the run was created.", alias="createdAt") owner_mail: StrictStr = Field(description="The mail of the owner of the run.", alias="ownerMail") + organization_id: Optional[StrictStr] = Field(default=None, description="The id of the organization that owns the entity.", alias="organizationId") order_id: Optional[StrictStr] = Field(description="The id of the associated order, if any.", alias="orderId") job_id: Optional[StrictStr] = Field(description="The id of the associated job, if any.", alias="jobId") audience_id: StrictStr = Field(description="The id of the audience associated with the run.", alias="audienceId") - __properties: ClassVar[List[str]] = ["id", "name", "status", "createdAt", "ownerMail", "orderId", "jobId", "audienceId"] + __properties: ClassVar[List[str]] = ["id", "name", "status", "createdAt", "ownerMail", "organizationId", "orderId", "jobId", "audienceId"] # model_config is inherited from LazyValidatedModel @@ -74,6 +75,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if organization_id (nullable) is None + # and model_fields_set contains the field + if self.organization_id is None and "organization_id" in self.model_fields_set: + _dict['organizationId'] = None + # set to None if order_id (nullable) is None # and model_fields_set contains the field if self.order_id is None and "order_id" in self.model_fields_set: @@ -101,6 +107,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "status": obj.get("status"), "createdAt": obj.get("createdAt"), "ownerMail": obj.get("ownerMail"), + "organizationId": obj.get("organizationId"), "orderId": obj.get("orderId"), "jobId": obj.get("jobId"), "audienceId": obj.get("audienceId") diff --git a/src/rapidata/api_client/models/query_managed_benchmarks_endpoint_output.py b/src/rapidata/api_client/models/query_managed_benchmarks_endpoint_output.py index 8be2cfa2e..71c7b9c0c 100644 --- a/src/rapidata/api_client/models/query_managed_benchmarks_endpoint_output.py +++ b/src/rapidata/api_client/models/query_managed_benchmarks_endpoint_output.py @@ -18,7 +18,7 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from pydantic import ValidationError from rapidata.api_client.lazy_model import LazyValidatedModel from typing import Optional, Set @@ -35,7 +35,8 @@ class QueryManagedBenchmarksEndpointOutput(LazyValidatedModel): is_published: StrictBool = Field(description="Whether the benchmark is published to the public benchmark repository.", alias="isPublished") created_at: datetime = Field(description="The timestamp when the benchmark was created.", alias="createdAt") owner_mail: StrictStr = Field(description="The mail of the customer owning the benchmark.", alias="ownerMail") - __properties: ClassVar[List[str]] = ["id", "name", "isManaged", "isPublic", "isPublished", "createdAt", "ownerMail"] + organization_id: Optional[StrictStr] = Field(default=None, description="The id of the organization that owns the entity.", alias="organizationId") + __properties: ClassVar[List[str]] = ["id", "name", "isManaged", "isPublic", "isPublished", "createdAt", "ownerMail", "organizationId"] # model_config is inherited from LazyValidatedModel @@ -72,6 +73,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if organization_id (nullable) is None + # and model_fields_set contains the field + if self.organization_id is None and "organization_id" in self.model_fields_set: + _dict['organizationId'] = None + return _dict @classmethod @@ -90,7 +96,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "isPublic": obj.get("isPublic"), "isPublished": obj.get("isPublished"), "createdAt": obj.get("createdAt"), - "ownerMail": obj.get("ownerMail") + "ownerMail": obj.get("ownerMail"), + "organizationId": obj.get("organizationId") } try: _obj = cls.model_validate(_data) diff --git a/src/rapidata/api_client/models/query_public_job_definitions_endpoint_output.py b/src/rapidata/api_client/models/query_public_job_definitions_endpoint_output.py index a38aff897..a20c16547 100644 --- a/src/rapidata/api_client/models/query_public_job_definitions_endpoint_output.py +++ b/src/rapidata/api_client/models/query_public_job_definitions_endpoint_output.py @@ -18,7 +18,7 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from uuid import UUID from rapidata.api_client.models.definition_type import DefinitionType from pydantic import ValidationError @@ -37,7 +37,8 @@ class QueryPublicJobDefinitionsEndpointOutput(LazyValidatedModel): revision_count: StrictInt = Field(description="The number of revisions for this job definition.", alias="revisionCount") owner_id: UUID = Field(description="The id of the owner of the job definition.", alias="ownerId") owner_mail: StrictStr = Field(description="The email of the owner of the job definition.", alias="ownerMail") - __properties: ClassVar[List[str]] = ["definitionId", "name", "definitionType", "createdAt", "revisionCount", "ownerId", "ownerMail"] + organization_id: Optional[StrictStr] = Field(default=None, description="The id of the organization that owns the entity.", alias="organizationId") + __properties: ClassVar[List[str]] = ["definitionId", "name", "definitionType", "createdAt", "revisionCount", "ownerId", "ownerMail", "organizationId"] # model_config is inherited from LazyValidatedModel @@ -74,6 +75,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if organization_id (nullable) is None + # and model_fields_set contains the field + if self.organization_id is None and "organization_id" in self.model_fields_set: + _dict['organizationId'] = None + return _dict @classmethod @@ -92,7 +98,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "createdAt": obj.get("createdAt"), "revisionCount": obj.get("revisionCount"), "ownerId": obj.get("ownerId"), - "ownerMail": obj.get("ownerMail") + "ownerMail": obj.get("ownerMail"), + "organizationId": obj.get("organizationId") } try: _obj = cls.model_validate(_data) diff --git a/src/rapidata/api_client/models/query_published_benchmarks_endpoint_output.py b/src/rapidata/api_client/models/query_published_benchmarks_endpoint_output.py index 03d71ae8e..f675e7453 100644 --- a/src/rapidata/api_client/models/query_published_benchmarks_endpoint_output.py +++ b/src/rapidata/api_client/models/query_published_benchmarks_endpoint_output.py @@ -18,7 +18,7 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from pydantic import ValidationError from rapidata.api_client.lazy_model import LazyValidatedModel from typing import Optional, Set @@ -35,7 +35,8 @@ class QueryPublishedBenchmarksEndpointOutput(LazyValidatedModel): is_published: StrictBool = Field(description="Whether the benchmark is published to the public benchmark repository.", alias="isPublished") created_at: datetime = Field(description="The timestamp when the benchmark was created.", alias="createdAt") owner_mail: StrictStr = Field(description="The mail of the customer owning the benchmark.", alias="ownerMail") - __properties: ClassVar[List[str]] = ["id", "name", "isManaged", "isPublic", "isPublished", "createdAt", "ownerMail"] + organization_id: Optional[StrictStr] = Field(default=None, description="The id of the organization that owns the entity.", alias="organizationId") + __properties: ClassVar[List[str]] = ["id", "name", "isManaged", "isPublic", "isPublished", "createdAt", "ownerMail", "organizationId"] # model_config is inherited from LazyValidatedModel @@ -72,6 +73,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if organization_id (nullable) is None + # and model_fields_set contains the field + if self.organization_id is None and "organization_id" in self.model_fields_set: + _dict['organizationId'] = None + return _dict @classmethod @@ -90,7 +96,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "isPublic": obj.get("isPublic"), "isPublished": obj.get("isPublished"), "createdAt": obj.get("createdAt"), - "ownerMail": obj.get("ownerMail") + "ownerMail": obj.get("ownerMail"), + "organizationId": obj.get("organizationId") } try: _obj = cls.model_validate(_data) diff --git a/src/rapidata/api_client/models/query_sample_generations_by_benchmark_endpoint_output.py b/src/rapidata/api_client/models/query_sample_generations_by_benchmark_endpoint_output.py index 03a2929fc..2bd210f5b 100644 --- a/src/rapidata/api_client/models/query_sample_generations_by_benchmark_endpoint_output.py +++ b/src/rapidata/api_client/models/query_sample_generations_by_benchmark_endpoint_output.py @@ -42,8 +42,9 @@ class QuerySampleGenerationsByBenchmarkEndpointOutput(LazyValidatedModel): tags_filter: Optional[List[StrictStr]] = Field(default=None, alias="tagsFilter") owner_id: UUID = Field(description="The id of the customer that started this generation.", alias="ownerId") owner_mail: StrictStr = Field(description="The mail of the customer that started this generation.", alias="ownerMail") + organization_id: Optional[StrictStr] = Field(default=None, description="The id of the organization that owns the entity.", alias="organizationId") created_at: datetime = Field(description="When the generation was created.", alias="createdAt") - __properties: ClassVar[List[str]] = ["id", "benchmarkId", "status", "samplesPerPrompt", "totalCount", "completedCount", "failedCount", "participantIdFilter", "promptIdentifierFilter", "tagsFilter", "ownerId", "ownerMail", "createdAt"] + __properties: ClassVar[List[str]] = ["id", "benchmarkId", "status", "samplesPerPrompt", "totalCount", "completedCount", "failedCount", "participantIdFilter", "promptIdentifierFilter", "tagsFilter", "ownerId", "ownerMail", "organizationId", "createdAt"] # model_config is inherited from LazyValidatedModel @@ -95,6 +96,11 @@ def to_dict(self) -> Dict[str, Any]: if self.tags_filter is None and "tags_filter" in self.model_fields_set: _dict['tagsFilter'] = None + # set to None if organization_id (nullable) is None + # and model_fields_set contains the field + if self.organization_id is None and "organization_id" in self.model_fields_set: + _dict['organizationId'] = None + return _dict @classmethod @@ -119,6 +125,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "tagsFilter": obj.get("tagsFilter"), "ownerId": obj.get("ownerId"), "ownerMail": obj.get("ownerMail"), + "organizationId": obj.get("organizationId"), "createdAt": obj.get("createdAt") } try: diff --git a/src/rapidata/api_client/models/query_signals_endpoint_output.py b/src/rapidata/api_client/models/query_signals_endpoint_output.py index 569e8e898..2c17b5dac 100644 --- a/src/rapidata/api_client/models/query_signals_endpoint_output.py +++ b/src/rapidata/api_client/models/query_signals_endpoint_output.py @@ -42,8 +42,9 @@ class QuerySignalsEndpointOutput(LazyValidatedModel): is_public: StrictBool = Field(description="Whether the signal is readable by every authenticated user.", alias="isPublic") owner_id: UUID = Field(description="The customer id of the signal owner.", alias="ownerId") owner_mail: StrictStr = Field(description="The email of the signal owner.", alias="ownerMail") + organization_id: Optional[StrictStr] = Field(default=None, description="The id of the organization that owns the entity.", alias="organizationId") created_at: datetime = Field(description="When the signal was created.", alias="createdAt") - __properties: ClassVar[List[str]] = ["id", "name", "description", "audienceId", "jobDefinitionId", "revisionNumber", "intervalSeconds", "nextRunAt", "lastRunAt", "isPaused", "isPublic", "ownerId", "ownerMail", "createdAt"] + __properties: ClassVar[List[str]] = ["id", "name", "description", "audienceId", "jobDefinitionId", "revisionNumber", "intervalSeconds", "nextRunAt", "lastRunAt", "isPaused", "isPublic", "ownerId", "ownerMail", "organizationId", "createdAt"] # model_config is inherited from LazyValidatedModel @@ -95,6 +96,11 @@ def to_dict(self) -> Dict[str, Any]: if self.last_run_at is None and "last_run_at" in self.model_fields_set: _dict['lastRunAt'] = None + # set to None if organization_id (nullable) is None + # and model_fields_set contains the field + if self.organization_id is None and "organization_id" in self.model_fields_set: + _dict['organizationId'] = None + return _dict @classmethod @@ -120,6 +126,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "isPublic": obj.get("isPublic"), "ownerId": obj.get("ownerId"), "ownerMail": obj.get("ownerMail"), + "organizationId": obj.get("organizationId"), "createdAt": obj.get("createdAt") } try: diff --git a/src/rapidata/api_client/models/query_validation_sets_endpoint_output.py b/src/rapidata/api_client/models/query_validation_sets_endpoint_output.py index 4b62e410a..93b04c5ff 100644 --- a/src/rapidata/api_client/models/query_validation_sets_endpoint_output.py +++ b/src/rapidata/api_client/models/query_validation_sets_endpoint_output.py @@ -38,8 +38,9 @@ class QueryValidationSetsEndpointOutput(LazyValidatedModel): is_public: StrictBool = Field(description="Whether the validation set is public.", alias="isPublic") owner_id: UUID = Field(description="The id of the owning customer.", alias="ownerId") owner_mail: StrictStr = Field(description="The mail of the owning customer.", alias="ownerMail") + organization_id: Optional[StrictStr] = Field(default=None, description="The id of the organization that owns the entity.", alias="organizationId") created_at: datetime = Field(description="The time at which the validation set was created.", alias="createdAt") - __properties: ClassVar[List[str]] = ["id", "name", "assetType", "modality", "promptType", "dimensions", "isPublic", "ownerId", "ownerMail", "createdAt"] + __properties: ClassVar[List[str]] = ["id", "name", "assetType", "modality", "promptType", "dimensions", "isPublic", "ownerId", "ownerMail", "organizationId", "createdAt"] @field_validator('asset_type') def asset_type_validate_enum(cls, value): @@ -105,6 +106,11 @@ def to_dict(self) -> Dict[str, Any]: if self.dimensions is None and "dimensions" in self.model_fields_set: _dict['dimensions'] = None + # set to None if organization_id (nullable) is None + # and model_fields_set contains the field + if self.organization_id is None and "organization_id" in self.model_fields_set: + _dict['organizationId'] = None + return _dict @classmethod @@ -126,6 +132,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "isPublic": obj.get("isPublic"), "ownerId": obj.get("ownerId"), "ownerMail": obj.get("ownerMail"), + "organizationId": obj.get("organizationId"), "createdAt": obj.get("createdAt") } try: