@friggframework/core 2.0.0--canary.681.2df9ef0.0 → 2.0.0--canary.682.cbca9e2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/README.md +36 -0
  2. package/application/commands/integration-commands.js +20 -10
  3. package/application/index.js +6 -2
  4. package/database/encryption/encryption-schema-registry.js +7 -0
  5. package/database/organization-where.js +18 -0
  6. package/generated/prisma-mongodb/edge.js +5 -3
  7. package/generated/prisma-mongodb/index-browser.js +2 -0
  8. package/generated/prisma-mongodb/index.d.ts +115 -2
  9. package/generated/prisma-mongodb/index.js +5 -3
  10. package/generated/prisma-mongodb/package.json +1 -1
  11. package/generated/prisma-mongodb/schema.prisma +15 -0
  12. package/generated/prisma-mongodb/wasm.js +5 -3
  13. package/generated/prisma-postgresql/edge.js +5 -3
  14. package/generated/prisma-postgresql/index-browser.js +2 -0
  15. package/generated/prisma-postgresql/index.d.ts +131 -2
  16. package/generated/prisma-postgresql/index.js +5 -3
  17. package/generated/prisma-postgresql/package.json +1 -1
  18. package/generated/prisma-postgresql/schema.prisma +15 -0
  19. package/generated/prisma-postgresql/wasm.js +5 -3
  20. package/handlers/app-definition-loader.js +25 -8
  21. package/handlers/backend-utils.js +31 -25
  22. package/handlers/routers/health.js +1 -4
  23. package/handlers/workers/integration-defined-workers.js +5 -2
  24. package/index.js +10 -2
  25. package/integrations/index.js +0 -4
  26. package/integrations/integration-router.js +99 -52
  27. package/integrations/repositories/integration-not-found.js +14 -0
  28. package/integrations/repositories/integration-repository-documentdb.js +34 -3
  29. package/integrations/repositories/integration-repository-interface.js +17 -1
  30. package/integrations/repositories/integration-repository-mongo.js +59 -76
  31. package/integrations/repositories/integration-repository-postgres.js +62 -76
  32. package/integrations/tests/doubles/test-integration-repository.js +12 -1
  33. package/integrations/use-cases/create-integration.js +55 -20
  34. package/integrations/use-cases/get-integrations-for-user.js +80 -40
  35. package/integrations/use-cases/index.js +5 -1
  36. package/integrations/use-cases/integration-operations-for-user.js +40 -19
  37. package/integrations/use-cases/resolve-integration-ownership.js +177 -0
  38. package/integrations/utils/map-integration-dto.js +1 -15
  39. package/management-api/management-api-config.js +3 -0
  40. package/management-api/openapi/components.js +46 -1
  41. package/management-api/openapi/v2-operations.js +14 -1
  42. package/management-api/v2/dependencies.js +56 -14
  43. package/management-api/v2/dto.js +17 -0
  44. package/management-api/v2/handlers/authorization.js +1 -0
  45. package/management-api/v2/handlers/entities.js +10 -7
  46. package/management-api/v2/handlers/integrations.js +6 -3
  47. package/management-api/v2/request.js +32 -1
  48. package/modules/entity-scope.js +15 -0
  49. package/modules/entity-type-registry.js +311 -0
  50. package/modules/index.js +14 -0
  51. package/modules/repositories/module-repository-documentdb.js +41 -1
  52. package/modules/repositories/module-repository-interface.js +19 -2
  53. package/modules/repositories/module-repository-mongo.js +64 -73
  54. package/modules/repositories/module-repository-postgres.js +63 -73
  55. package/modules/scope-config.js +155 -0
  56. package/modules/scope-policy.js +80 -0
  57. package/modules/scope-resolution.js +277 -0
  58. package/modules/scope-visibility.js +165 -0
  59. package/modules/tests/doubles/ownership-matching.js +18 -0
  60. package/modules/use-cases/authorize-entity-for-user.js +59 -0
  61. package/modules/use-cases/entity-operations-for-user.js +42 -10
  62. package/modules/use-cases/entity-types.js +62 -14
  63. package/modules/use-cases/execute-entity-proxy-request.js +15 -0
  64. package/modules/use-cases/get-entities-for-user.js +16 -5
  65. package/modules/use-cases/get-entity-module-for-user.js +23 -3
  66. package/modules/use-cases/get-entity-options-by-id.js +5 -2
  67. package/modules/use-cases/get-module.js +5 -2
  68. package/modules/use-cases/multi-step-authorization.js +36 -12
  69. package/modules/use-cases/process-authorization-callback.js +52 -18
  70. package/modules/use-cases/refresh-entity-options.js +5 -2
  71. package/modules/use-cases/test-module-auth.js +5 -2
  72. package/package.json +5 -5
  73. package/prisma-mongodb/schema.prisma +15 -0
  74. package/prisma-postgresql/migrations/20261016000000_add_entity_integration_organization/migration.sql +25 -0
  75. package/prisma-postgresql/schema.prisma +15 -0
  76. package/types/index.d.ts +1 -0
  77. package/types/modules/index.d.ts +145 -0
@@ -6563,12 +6563,14 @@ export namespace Prisma {
6563
6563
  id: number | null
6564
6564
  credentialId: number | null
6565
6565
  userId: number | null
6566
+ organizationId: number | null
6566
6567
  }
6567
6568
 
6568
6569
  export type EntitySumAggregateOutputType = {
6569
6570
  id: number | null
6570
6571
  credentialId: number | null
6571
6572
  userId: number | null
6573
+ organizationId: number | null
6572
6574
  }
6573
6575
 
6574
6576
  export type EntityMinAggregateOutputType = {
@@ -6578,6 +6580,7 @@ export namespace Prisma {
6578
6580
  name: string | null
6579
6581
  moduleName: string | null
6580
6582
  externalId: string | null
6583
+ organizationId: number | null
6581
6584
  createdAt: Date | null
6582
6585
  updatedAt: Date | null
6583
6586
  }
@@ -6589,6 +6592,7 @@ export namespace Prisma {
6589
6592
  name: string | null
6590
6593
  moduleName: string | null
6591
6594
  externalId: string | null
6595
+ organizationId: number | null
6592
6596
  createdAt: Date | null
6593
6597
  updatedAt: Date | null
6594
6598
  }
@@ -6600,6 +6604,7 @@ export namespace Prisma {
6600
6604
  name: number
6601
6605
  moduleName: number
6602
6606
  externalId: number
6607
+ organizationId: number
6603
6608
  data: number
6604
6609
  createdAt: number
6605
6610
  updatedAt: number
@@ -6611,12 +6616,14 @@ export namespace Prisma {
6611
6616
  id?: true
6612
6617
  credentialId?: true
6613
6618
  userId?: true
6619
+ organizationId?: true
6614
6620
  }
6615
6621
 
6616
6622
  export type EntitySumAggregateInputType = {
6617
6623
  id?: true
6618
6624
  credentialId?: true
6619
6625
  userId?: true
6626
+ organizationId?: true
6620
6627
  }
6621
6628
 
6622
6629
  export type EntityMinAggregateInputType = {
@@ -6626,6 +6633,7 @@ export namespace Prisma {
6626
6633
  name?: true
6627
6634
  moduleName?: true
6628
6635
  externalId?: true
6636
+ organizationId?: true
6629
6637
  createdAt?: true
6630
6638
  updatedAt?: true
6631
6639
  }
@@ -6637,6 +6645,7 @@ export namespace Prisma {
6637
6645
  name?: true
6638
6646
  moduleName?: true
6639
6647
  externalId?: true
6648
+ organizationId?: true
6640
6649
  createdAt?: true
6641
6650
  updatedAt?: true
6642
6651
  }
@@ -6648,6 +6657,7 @@ export namespace Prisma {
6648
6657
  name?: true
6649
6658
  moduleName?: true
6650
6659
  externalId?: true
6660
+ organizationId?: true
6651
6661
  data?: true
6652
6662
  createdAt?: true
6653
6663
  updatedAt?: true
@@ -6747,6 +6757,7 @@ export namespace Prisma {
6747
6757
  name: string | null
6748
6758
  moduleName: string | null
6749
6759
  externalId: string | null
6760
+ organizationId: number | null
6750
6761
  data: JsonValue
6751
6762
  createdAt: Date
6752
6763
  updatedAt: Date
@@ -6778,6 +6789,7 @@ export namespace Prisma {
6778
6789
  name?: boolean
6779
6790
  moduleName?: boolean
6780
6791
  externalId?: boolean
6792
+ organizationId?: boolean
6781
6793
  data?: boolean
6782
6794
  createdAt?: boolean
6783
6795
  updatedAt?: boolean
@@ -6797,6 +6809,7 @@ export namespace Prisma {
6797
6809
  name?: boolean
6798
6810
  moduleName?: boolean
6799
6811
  externalId?: boolean
6812
+ organizationId?: boolean
6800
6813
  data?: boolean
6801
6814
  createdAt?: boolean
6802
6815
  updatedAt?: boolean
@@ -6811,6 +6824,7 @@ export namespace Prisma {
6811
6824
  name?: boolean
6812
6825
  moduleName?: boolean
6813
6826
  externalId?: boolean
6827
+ organizationId?: boolean
6814
6828
  data?: boolean
6815
6829
  createdAt?: boolean
6816
6830
  updatedAt?: boolean
@@ -6825,12 +6839,13 @@ export namespace Prisma {
6825
6839
  name?: boolean
6826
6840
  moduleName?: boolean
6827
6841
  externalId?: boolean
6842
+ organizationId?: boolean
6828
6843
  data?: boolean
6829
6844
  createdAt?: boolean
6830
6845
  updatedAt?: boolean
6831
6846
  }
6832
6847
 
6833
- export type EntityOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "credentialId" | "userId" | "name" | "moduleName" | "externalId" | "data" | "createdAt" | "updatedAt", ExtArgs["result"]["entity"]>
6848
+ export type EntityOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "credentialId" | "userId" | "name" | "moduleName" | "externalId" | "organizationId" | "data" | "createdAt" | "updatedAt", ExtArgs["result"]["entity"]>
6834
6849
  export type EntityInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
6835
6850
  credential?: boolean | Entity$credentialArgs<ExtArgs>
6836
6851
  user?: boolean | Entity$userArgs<ExtArgs>
@@ -6866,6 +6881,7 @@ export namespace Prisma {
6866
6881
  name: string | null
6867
6882
  moduleName: string | null
6868
6883
  externalId: string | null
6884
+ organizationId: number | null
6869
6885
  data: Prisma.JsonValue
6870
6886
  createdAt: Date
6871
6887
  updatedAt: Date
@@ -7304,6 +7320,7 @@ export namespace Prisma {
7304
7320
  readonly name: FieldRef<"Entity", 'String'>
7305
7321
  readonly moduleName: FieldRef<"Entity", 'String'>
7306
7322
  readonly externalId: FieldRef<"Entity", 'String'>
7323
+ readonly organizationId: FieldRef<"Entity", 'Int'>
7307
7324
  readonly data: FieldRef<"Entity", 'Json'>
7308
7325
  readonly createdAt: FieldRef<"Entity", 'DateTime'>
7309
7326
  readonly updatedAt: FieldRef<"Entity", 'DateTime'>
@@ -7870,17 +7887,20 @@ export namespace Prisma {
7870
7887
  export type IntegrationAvgAggregateOutputType = {
7871
7888
  id: number | null
7872
7889
  userId: number | null
7890
+ organizationId: number | null
7873
7891
  }
7874
7892
 
7875
7893
  export type IntegrationSumAggregateOutputType = {
7876
7894
  id: number | null
7877
7895
  userId: number | null
7896
+ organizationId: number | null
7878
7897
  }
7879
7898
 
7880
7899
  export type IntegrationMinAggregateOutputType = {
7881
7900
  id: number | null
7882
7901
  userId: number | null
7883
7902
  status: $Enums.IntegrationStatus | null
7903
+ organizationId: number | null
7884
7904
  version: string | null
7885
7905
  createdAt: Date | null
7886
7906
  updatedAt: Date | null
@@ -7890,6 +7910,7 @@ export namespace Prisma {
7890
7910
  id: number | null
7891
7911
  userId: number | null
7892
7912
  status: $Enums.IntegrationStatus | null
7913
+ organizationId: number | null
7893
7914
  version: string | null
7894
7915
  createdAt: Date | null
7895
7916
  updatedAt: Date | null
@@ -7899,6 +7920,7 @@ export namespace Prisma {
7899
7920
  id: number
7900
7921
  userId: number
7901
7922
  status: number
7923
+ organizationId: number
7902
7924
  config: number
7903
7925
  version: number
7904
7926
  errors: number
@@ -7914,17 +7936,20 @@ export namespace Prisma {
7914
7936
  export type IntegrationAvgAggregateInputType = {
7915
7937
  id?: true
7916
7938
  userId?: true
7939
+ organizationId?: true
7917
7940
  }
7918
7941
 
7919
7942
  export type IntegrationSumAggregateInputType = {
7920
7943
  id?: true
7921
7944
  userId?: true
7945
+ organizationId?: true
7922
7946
  }
7923
7947
 
7924
7948
  export type IntegrationMinAggregateInputType = {
7925
7949
  id?: true
7926
7950
  userId?: true
7927
7951
  status?: true
7952
+ organizationId?: true
7928
7953
  version?: true
7929
7954
  createdAt?: true
7930
7955
  updatedAt?: true
@@ -7934,6 +7959,7 @@ export namespace Prisma {
7934
7959
  id?: true
7935
7960
  userId?: true
7936
7961
  status?: true
7962
+ organizationId?: true
7937
7963
  version?: true
7938
7964
  createdAt?: true
7939
7965
  updatedAt?: true
@@ -7943,6 +7969,7 @@ export namespace Prisma {
7943
7969
  id?: true
7944
7970
  userId?: true
7945
7971
  status?: true
7972
+ organizationId?: true
7946
7973
  config?: true
7947
7974
  version?: true
7948
7975
  errors?: true
@@ -8044,6 +8071,7 @@ export namespace Prisma {
8044
8071
  id: number
8045
8072
  userId: number | null
8046
8073
  status: $Enums.IntegrationStatus
8074
+ organizationId: number | null
8047
8075
  config: JsonValue | null
8048
8076
  version: string | null
8049
8077
  errors: JsonValue
@@ -8077,6 +8105,7 @@ export namespace Prisma {
8077
8105
  id?: boolean
8078
8106
  userId?: boolean
8079
8107
  status?: boolean
8108
+ organizationId?: boolean
8080
8109
  config?: boolean
8081
8110
  version?: boolean
8082
8111
  errors?: boolean
@@ -8098,6 +8127,7 @@ export namespace Prisma {
8098
8127
  id?: boolean
8099
8128
  userId?: boolean
8100
8129
  status?: boolean
8130
+ organizationId?: boolean
8101
8131
  config?: boolean
8102
8132
  version?: boolean
8103
8133
  errors?: boolean
@@ -8113,6 +8143,7 @@ export namespace Prisma {
8113
8143
  id?: boolean
8114
8144
  userId?: boolean
8115
8145
  status?: boolean
8146
+ organizationId?: boolean
8116
8147
  config?: boolean
8117
8148
  version?: boolean
8118
8149
  errors?: boolean
@@ -8128,6 +8159,7 @@ export namespace Prisma {
8128
8159
  id?: boolean
8129
8160
  userId?: boolean
8130
8161
  status?: boolean
8162
+ organizationId?: boolean
8131
8163
  config?: boolean
8132
8164
  version?: boolean
8133
8165
  errors?: boolean
@@ -8138,7 +8170,7 @@ export namespace Prisma {
8138
8170
  updatedAt?: boolean
8139
8171
  }
8140
8172
 
8141
- export type IntegrationOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "userId" | "status" | "config" | "version" | "errors" | "warnings" | "info" | "logs" | "createdAt" | "updatedAt", ExtArgs["result"]["integration"]>
8173
+ export type IntegrationOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "userId" | "status" | "organizationId" | "config" | "version" | "errors" | "warnings" | "info" | "logs" | "createdAt" | "updatedAt", ExtArgs["result"]["integration"]>
8142
8174
  export type IntegrationInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
8143
8175
  user?: boolean | Integration$userArgs<ExtArgs>
8144
8176
  entities?: boolean | Integration$entitiesArgs<ExtArgs>
@@ -8169,6 +8201,7 @@ export namespace Prisma {
8169
8201
  id: number
8170
8202
  userId: number | null
8171
8203
  status: $Enums.IntegrationStatus
8204
+ organizationId: number | null
8172
8205
  config: Prisma.JsonValue | null
8173
8206
  version: string | null
8174
8207
  errors: Prisma.JsonValue
@@ -8609,6 +8642,7 @@ export namespace Prisma {
8609
8642
  readonly id: FieldRef<"Integration", 'Int'>
8610
8643
  readonly userId: FieldRef<"Integration", 'Int'>
8611
8644
  readonly status: FieldRef<"Integration", 'IntegrationStatus'>
8645
+ readonly organizationId: FieldRef<"Integration", 'Int'>
8612
8646
  readonly config: FieldRef<"Integration", 'Json'>
8613
8647
  readonly version: FieldRef<"Integration", 'String'>
8614
8648
  readonly errors: FieldRef<"Integration", 'Json'>
@@ -23678,6 +23712,7 @@ export namespace Prisma {
23678
23712
  name: 'name',
23679
23713
  moduleName: 'moduleName',
23680
23714
  externalId: 'externalId',
23715
+ organizationId: 'organizationId',
23681
23716
  data: 'data',
23682
23717
  createdAt: 'createdAt',
23683
23718
  updatedAt: 'updatedAt'
@@ -23690,6 +23725,7 @@ export namespace Prisma {
23690
23725
  id: 'id',
23691
23726
  userId: 'userId',
23692
23727
  status: 'status',
23728
+ organizationId: 'organizationId',
23693
23729
  config: 'config',
23694
23730
  version: 'version',
23695
23731
  errors: 'errors',
@@ -24319,6 +24355,7 @@ export namespace Prisma {
24319
24355
  name?: StringNullableFilter<"Entity"> | string | null
24320
24356
  moduleName?: StringNullableFilter<"Entity"> | string | null
24321
24357
  externalId?: StringNullableFilter<"Entity"> | string | null
24358
+ organizationId?: IntNullableFilter<"Entity"> | number | null
24322
24359
  data?: JsonFilter<"Entity">
24323
24360
  createdAt?: DateTimeFilter<"Entity"> | Date | string
24324
24361
  updatedAt?: DateTimeFilter<"Entity"> | Date | string
@@ -24337,6 +24374,7 @@ export namespace Prisma {
24337
24374
  name?: SortOrderInput | SortOrder
24338
24375
  moduleName?: SortOrderInput | SortOrder
24339
24376
  externalId?: SortOrderInput | SortOrder
24377
+ organizationId?: SortOrderInput | SortOrder
24340
24378
  data?: SortOrder
24341
24379
  createdAt?: SortOrder
24342
24380
  updatedAt?: SortOrder
@@ -24358,6 +24396,7 @@ export namespace Prisma {
24358
24396
  name?: StringNullableFilter<"Entity"> | string | null
24359
24397
  moduleName?: StringNullableFilter<"Entity"> | string | null
24360
24398
  externalId?: StringNullableFilter<"Entity"> | string | null
24399
+ organizationId?: IntNullableFilter<"Entity"> | number | null
24361
24400
  data?: JsonFilter<"Entity">
24362
24401
  createdAt?: DateTimeFilter<"Entity"> | Date | string
24363
24402
  updatedAt?: DateTimeFilter<"Entity"> | Date | string
@@ -24376,6 +24415,7 @@ export namespace Prisma {
24376
24415
  name?: SortOrderInput | SortOrder
24377
24416
  moduleName?: SortOrderInput | SortOrder
24378
24417
  externalId?: SortOrderInput | SortOrder
24418
+ organizationId?: SortOrderInput | SortOrder
24379
24419
  data?: SortOrder
24380
24420
  createdAt?: SortOrder
24381
24421
  updatedAt?: SortOrder
@@ -24396,6 +24436,7 @@ export namespace Prisma {
24396
24436
  name?: StringNullableWithAggregatesFilter<"Entity"> | string | null
24397
24437
  moduleName?: StringNullableWithAggregatesFilter<"Entity"> | string | null
24398
24438
  externalId?: StringNullableWithAggregatesFilter<"Entity"> | string | null
24439
+ organizationId?: IntNullableWithAggregatesFilter<"Entity"> | number | null
24399
24440
  data?: JsonWithAggregatesFilter<"Entity">
24400
24441
  createdAt?: DateTimeWithAggregatesFilter<"Entity"> | Date | string
24401
24442
  updatedAt?: DateTimeWithAggregatesFilter<"Entity"> | Date | string
@@ -24408,6 +24449,7 @@ export namespace Prisma {
24408
24449
  id?: IntFilter<"Integration"> | number
24409
24450
  userId?: IntNullableFilter<"Integration"> | number | null
24410
24451
  status?: EnumIntegrationStatusFilter<"Integration"> | $Enums.IntegrationStatus
24452
+ organizationId?: IntNullableFilter<"Integration"> | number | null
24411
24453
  config?: JsonNullableFilter<"Integration">
24412
24454
  version?: StringNullableFilter<"Integration"> | string | null
24413
24455
  errors?: JsonFilter<"Integration">
@@ -24428,6 +24470,7 @@ export namespace Prisma {
24428
24470
  id?: SortOrder
24429
24471
  userId?: SortOrderInput | SortOrder
24430
24472
  status?: SortOrder
24473
+ organizationId?: SortOrderInput | SortOrder
24431
24474
  config?: SortOrderInput | SortOrder
24432
24475
  version?: SortOrderInput | SortOrder
24433
24476
  errors?: SortOrder
@@ -24451,6 +24494,7 @@ export namespace Prisma {
24451
24494
  NOT?: IntegrationWhereInput | IntegrationWhereInput[]
24452
24495
  userId?: IntNullableFilter<"Integration"> | number | null
24453
24496
  status?: EnumIntegrationStatusFilter<"Integration"> | $Enums.IntegrationStatus
24497
+ organizationId?: IntNullableFilter<"Integration"> | number | null
24454
24498
  config?: JsonNullableFilter<"Integration">
24455
24499
  version?: StringNullableFilter<"Integration"> | string | null
24456
24500
  errors?: JsonFilter<"Integration">
@@ -24471,6 +24515,7 @@ export namespace Prisma {
24471
24515
  id?: SortOrder
24472
24516
  userId?: SortOrderInput | SortOrder
24473
24517
  status?: SortOrder
24518
+ organizationId?: SortOrderInput | SortOrder
24474
24519
  config?: SortOrderInput | SortOrder
24475
24520
  version?: SortOrderInput | SortOrder
24476
24521
  errors?: SortOrder
@@ -24493,6 +24538,7 @@ export namespace Prisma {
24493
24538
  id?: IntWithAggregatesFilter<"Integration"> | number
24494
24539
  userId?: IntNullableWithAggregatesFilter<"Integration"> | number | null
24495
24540
  status?: EnumIntegrationStatusWithAggregatesFilter<"Integration"> | $Enums.IntegrationStatus
24541
+ organizationId?: IntNullableWithAggregatesFilter<"Integration"> | number | null
24496
24542
  config?: JsonNullableWithAggregatesFilter<"Integration">
24497
24543
  version?: StringNullableWithAggregatesFilter<"Integration"> | string | null
24498
24544
  errors?: JsonWithAggregatesFilter<"Integration">
@@ -25619,6 +25665,7 @@ export namespace Prisma {
25619
25665
  name?: string | null
25620
25666
  moduleName?: string | null
25621
25667
  externalId?: string | null
25668
+ organizationId?: number | null
25622
25669
  data?: JsonNullValueInput | InputJsonValue
25623
25670
  createdAt?: Date | string
25624
25671
  updatedAt?: Date | string
@@ -25637,6 +25684,7 @@ export namespace Prisma {
25637
25684
  name?: string | null
25638
25685
  moduleName?: string | null
25639
25686
  externalId?: string | null
25687
+ organizationId?: number | null
25640
25688
  data?: JsonNullValueInput | InputJsonValue
25641
25689
  createdAt?: Date | string
25642
25690
  updatedAt?: Date | string
@@ -25650,6 +25698,7 @@ export namespace Prisma {
25650
25698
  name?: NullableStringFieldUpdateOperationsInput | string | null
25651
25699
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
25652
25700
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
25701
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
25653
25702
  data?: JsonNullValueInput | InputJsonValue
25654
25703
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
25655
25704
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -25668,6 +25717,7 @@ export namespace Prisma {
25668
25717
  name?: NullableStringFieldUpdateOperationsInput | string | null
25669
25718
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
25670
25719
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
25720
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
25671
25721
  data?: JsonNullValueInput | InputJsonValue
25672
25722
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
25673
25723
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -25684,6 +25734,7 @@ export namespace Prisma {
25684
25734
  name?: string | null
25685
25735
  moduleName?: string | null
25686
25736
  externalId?: string | null
25737
+ organizationId?: number | null
25687
25738
  data?: JsonNullValueInput | InputJsonValue
25688
25739
  createdAt?: Date | string
25689
25740
  updatedAt?: Date | string
@@ -25693,6 +25744,7 @@ export namespace Prisma {
25693
25744
  name?: NullableStringFieldUpdateOperationsInput | string | null
25694
25745
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
25695
25746
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
25747
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
25696
25748
  data?: JsonNullValueInput | InputJsonValue
25697
25749
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
25698
25750
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -25705,6 +25757,7 @@ export namespace Prisma {
25705
25757
  name?: NullableStringFieldUpdateOperationsInput | string | null
25706
25758
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
25707
25759
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
25760
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
25708
25761
  data?: JsonNullValueInput | InputJsonValue
25709
25762
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
25710
25763
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -25712,6 +25765,7 @@ export namespace Prisma {
25712
25765
 
25713
25766
  export type IntegrationCreateInput = {
25714
25767
  status?: $Enums.IntegrationStatus
25768
+ organizationId?: number | null
25715
25769
  config?: NullableJsonNullValueInput | InputJsonValue
25716
25770
  version?: string | null
25717
25771
  errors?: JsonNullValueInput | InputJsonValue
@@ -25732,6 +25786,7 @@ export namespace Prisma {
25732
25786
  id?: number
25733
25787
  userId?: number | null
25734
25788
  status?: $Enums.IntegrationStatus
25789
+ organizationId?: number | null
25735
25790
  config?: NullableJsonNullValueInput | InputJsonValue
25736
25791
  version?: string | null
25737
25792
  errors?: JsonNullValueInput | InputJsonValue
@@ -25749,6 +25804,7 @@ export namespace Prisma {
25749
25804
 
25750
25805
  export type IntegrationUpdateInput = {
25751
25806
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
25807
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
25752
25808
  config?: NullableJsonNullValueInput | InputJsonValue
25753
25809
  version?: NullableStringFieldUpdateOperationsInput | string | null
25754
25810
  errors?: JsonNullValueInput | InputJsonValue
@@ -25769,6 +25825,7 @@ export namespace Prisma {
25769
25825
  id?: IntFieldUpdateOperationsInput | number
25770
25826
  userId?: NullableIntFieldUpdateOperationsInput | number | null
25771
25827
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
25828
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
25772
25829
  config?: NullableJsonNullValueInput | InputJsonValue
25773
25830
  version?: NullableStringFieldUpdateOperationsInput | string | null
25774
25831
  errors?: JsonNullValueInput | InputJsonValue
@@ -25788,6 +25845,7 @@ export namespace Prisma {
25788
25845
  id?: number
25789
25846
  userId?: number | null
25790
25847
  status?: $Enums.IntegrationStatus
25848
+ organizationId?: number | null
25791
25849
  config?: NullableJsonNullValueInput | InputJsonValue
25792
25850
  version?: string | null
25793
25851
  errors?: JsonNullValueInput | InputJsonValue
@@ -25800,6 +25858,7 @@ export namespace Prisma {
25800
25858
 
25801
25859
  export type IntegrationUpdateManyMutationInput = {
25802
25860
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
25861
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
25803
25862
  config?: NullableJsonNullValueInput | InputJsonValue
25804
25863
  version?: NullableStringFieldUpdateOperationsInput | string | null
25805
25864
  errors?: JsonNullValueInput | InputJsonValue
@@ -25814,6 +25873,7 @@ export namespace Prisma {
25814
25873
  id?: IntFieldUpdateOperationsInput | number
25815
25874
  userId?: NullableIntFieldUpdateOperationsInput | number | null
25816
25875
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
25876
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
25817
25877
  config?: NullableJsonNullValueInput | InputJsonValue
25818
25878
  version?: NullableStringFieldUpdateOperationsInput | string | null
25819
25879
  errors?: JsonNullValueInput | InputJsonValue
@@ -27172,6 +27232,7 @@ export namespace Prisma {
27172
27232
  name?: SortOrder
27173
27233
  moduleName?: SortOrder
27174
27234
  externalId?: SortOrder
27235
+ organizationId?: SortOrder
27175
27236
  data?: SortOrder
27176
27237
  createdAt?: SortOrder
27177
27238
  updatedAt?: SortOrder
@@ -27181,6 +27242,7 @@ export namespace Prisma {
27181
27242
  id?: SortOrder
27182
27243
  credentialId?: SortOrder
27183
27244
  userId?: SortOrder
27245
+ organizationId?: SortOrder
27184
27246
  }
27185
27247
 
27186
27248
  export type EntityMaxOrderByAggregateInput = {
@@ -27190,6 +27252,7 @@ export namespace Prisma {
27190
27252
  name?: SortOrder
27191
27253
  moduleName?: SortOrder
27192
27254
  externalId?: SortOrder
27255
+ organizationId?: SortOrder
27193
27256
  createdAt?: SortOrder
27194
27257
  updatedAt?: SortOrder
27195
27258
  }
@@ -27201,6 +27264,7 @@ export namespace Prisma {
27201
27264
  name?: SortOrder
27202
27265
  moduleName?: SortOrder
27203
27266
  externalId?: SortOrder
27267
+ organizationId?: SortOrder
27204
27268
  createdAt?: SortOrder
27205
27269
  updatedAt?: SortOrder
27206
27270
  }
@@ -27209,6 +27273,7 @@ export namespace Prisma {
27209
27273
  id?: SortOrder
27210
27274
  credentialId?: SortOrder
27211
27275
  userId?: SortOrder
27276
+ organizationId?: SortOrder
27212
27277
  }
27213
27278
 
27214
27279
  export type EnumIntegrationStatusFilter<$PrismaModel = never> = {
@@ -27265,6 +27330,7 @@ export namespace Prisma {
27265
27330
  id?: SortOrder
27266
27331
  userId?: SortOrder
27267
27332
  status?: SortOrder
27333
+ organizationId?: SortOrder
27268
27334
  config?: SortOrder
27269
27335
  version?: SortOrder
27270
27336
  errors?: SortOrder
@@ -27278,12 +27344,14 @@ export namespace Prisma {
27278
27344
  export type IntegrationAvgOrderByAggregateInput = {
27279
27345
  id?: SortOrder
27280
27346
  userId?: SortOrder
27347
+ organizationId?: SortOrder
27281
27348
  }
27282
27349
 
27283
27350
  export type IntegrationMaxOrderByAggregateInput = {
27284
27351
  id?: SortOrder
27285
27352
  userId?: SortOrder
27286
27353
  status?: SortOrder
27354
+ organizationId?: SortOrder
27287
27355
  version?: SortOrder
27288
27356
  createdAt?: SortOrder
27289
27357
  updatedAt?: SortOrder
@@ -27293,6 +27361,7 @@ export namespace Prisma {
27293
27361
  id?: SortOrder
27294
27362
  userId?: SortOrder
27295
27363
  status?: SortOrder
27364
+ organizationId?: SortOrder
27296
27365
  version?: SortOrder
27297
27366
  createdAt?: SortOrder
27298
27367
  updatedAt?: SortOrder
@@ -27301,6 +27370,7 @@ export namespace Prisma {
27301
27370
  export type IntegrationSumOrderByAggregateInput = {
27302
27371
  id?: SortOrder
27303
27372
  userId?: SortOrder
27373
+ organizationId?: SortOrder
27304
27374
  }
27305
27375
 
27306
27376
  export type EnumIntegrationStatusWithAggregatesFilter<$PrismaModel = never> = {
@@ -29774,6 +29844,7 @@ export namespace Prisma {
29774
29844
  name?: string | null
29775
29845
  moduleName?: string | null
29776
29846
  externalId?: string | null
29847
+ organizationId?: number | null
29777
29848
  data?: JsonNullValueInput | InputJsonValue
29778
29849
  createdAt?: Date | string
29779
29850
  updatedAt?: Date | string
@@ -29790,6 +29861,7 @@ export namespace Prisma {
29790
29861
  name?: string | null
29791
29862
  moduleName?: string | null
29792
29863
  externalId?: string | null
29864
+ organizationId?: number | null
29793
29865
  data?: JsonNullValueInput | InputJsonValue
29794
29866
  createdAt?: Date | string
29795
29867
  updatedAt?: Date | string
@@ -29811,6 +29883,7 @@ export namespace Prisma {
29811
29883
 
29812
29884
  export type IntegrationCreateWithoutUserInput = {
29813
29885
  status?: $Enums.IntegrationStatus
29886
+ organizationId?: number | null
29814
29887
  config?: NullableJsonNullValueInput | InputJsonValue
29815
29888
  version?: string | null
29816
29889
  errors?: JsonNullValueInput | InputJsonValue
@@ -29829,6 +29902,7 @@ export namespace Prisma {
29829
29902
  export type IntegrationUncheckedCreateWithoutUserInput = {
29830
29903
  id?: number
29831
29904
  status?: $Enums.IntegrationStatus
29905
+ organizationId?: number | null
29832
29906
  config?: NullableJsonNullValueInput | InputJsonValue
29833
29907
  version?: string | null
29834
29908
  errors?: JsonNullValueInput | InputJsonValue
@@ -30104,6 +30178,7 @@ export namespace Prisma {
30104
30178
  name?: StringNullableFilter<"Entity"> | string | null
30105
30179
  moduleName?: StringNullableFilter<"Entity"> | string | null
30106
30180
  externalId?: StringNullableFilter<"Entity"> | string | null
30181
+ organizationId?: IntNullableFilter<"Entity"> | number | null
30107
30182
  data?: JsonFilter<"Entity">
30108
30183
  createdAt?: DateTimeFilter<"Entity"> | Date | string
30109
30184
  updatedAt?: DateTimeFilter<"Entity"> | Date | string
@@ -30132,6 +30207,7 @@ export namespace Prisma {
30132
30207
  id?: IntFilter<"Integration"> | number
30133
30208
  userId?: IntNullableFilter<"Integration"> | number | null
30134
30209
  status?: EnumIntegrationStatusFilter<"Integration"> | $Enums.IntegrationStatus
30210
+ organizationId?: IntNullableFilter<"Integration"> | number | null
30135
30211
  config?: JsonNullableFilter<"Integration">
30136
30212
  version?: StringNullableFilter<"Integration"> | string | null
30137
30213
  errors?: JsonFilter<"Integration">
@@ -30366,6 +30442,7 @@ export namespace Prisma {
30366
30442
  name?: string | null
30367
30443
  moduleName?: string | null
30368
30444
  externalId?: string | null
30445
+ organizationId?: number | null
30369
30446
  data?: JsonNullValueInput | InputJsonValue
30370
30447
  createdAt?: Date | string
30371
30448
  updatedAt?: Date | string
@@ -30382,6 +30459,7 @@ export namespace Prisma {
30382
30459
  name?: string | null
30383
30460
  moduleName?: string | null
30384
30461
  externalId?: string | null
30462
+ organizationId?: number | null
30385
30463
  data?: JsonNullValueInput | InputJsonValue
30386
30464
  createdAt?: Date | string
30387
30465
  updatedAt?: Date | string
@@ -30541,6 +30619,7 @@ export namespace Prisma {
30541
30619
 
30542
30620
  export type IntegrationCreateWithoutEntitiesInput = {
30543
30621
  status?: $Enums.IntegrationStatus
30622
+ organizationId?: number | null
30544
30623
  config?: NullableJsonNullValueInput | InputJsonValue
30545
30624
  version?: string | null
30546
30625
  errors?: JsonNullValueInput | InputJsonValue
@@ -30560,6 +30639,7 @@ export namespace Prisma {
30560
30639
  id?: number
30561
30640
  userId?: number | null
30562
30641
  status?: $Enums.IntegrationStatus
30642
+ organizationId?: number | null
30563
30643
  config?: NullableJsonNullValueInput | InputJsonValue
30564
30644
  version?: string | null
30565
30645
  errors?: JsonNullValueInput | InputJsonValue
@@ -30876,6 +30956,7 @@ export namespace Prisma {
30876
30956
  name?: string | null
30877
30957
  moduleName?: string | null
30878
30958
  externalId?: string | null
30959
+ organizationId?: number | null
30879
30960
  data?: JsonNullValueInput | InputJsonValue
30880
30961
  createdAt?: Date | string
30881
30962
  updatedAt?: Date | string
@@ -30893,6 +30974,7 @@ export namespace Prisma {
30893
30974
  name?: string | null
30894
30975
  moduleName?: string | null
30895
30976
  externalId?: string | null
30977
+ organizationId?: number | null
30896
30978
  data?: JsonNullValueInput | InputJsonValue
30897
30979
  createdAt?: Date | string
30898
30980
  updatedAt?: Date | string
@@ -31175,6 +31257,7 @@ export namespace Prisma {
31175
31257
 
31176
31258
  export type IntegrationCreateWithoutMappingsInput = {
31177
31259
  status?: $Enums.IntegrationStatus
31260
+ organizationId?: number | null
31178
31261
  config?: NullableJsonNullValueInput | InputJsonValue
31179
31262
  version?: string | null
31180
31263
  errors?: JsonNullValueInput | InputJsonValue
@@ -31194,6 +31277,7 @@ export namespace Prisma {
31194
31277
  id?: number
31195
31278
  userId?: number | null
31196
31279
  status?: $Enums.IntegrationStatus
31280
+ organizationId?: number | null
31197
31281
  config?: NullableJsonNullValueInput | InputJsonValue
31198
31282
  version?: string | null
31199
31283
  errors?: JsonNullValueInput | InputJsonValue
@@ -31226,6 +31310,7 @@ export namespace Prisma {
31226
31310
 
31227
31311
  export type IntegrationUpdateWithoutMappingsInput = {
31228
31312
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
31313
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
31229
31314
  config?: NullableJsonNullValueInput | InputJsonValue
31230
31315
  version?: NullableStringFieldUpdateOperationsInput | string | null
31231
31316
  errors?: JsonNullValueInput | InputJsonValue
@@ -31245,6 +31330,7 @@ export namespace Prisma {
31245
31330
  id?: IntFieldUpdateOperationsInput | number
31246
31331
  userId?: NullableIntFieldUpdateOperationsInput | number | null
31247
31332
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
31333
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
31248
31334
  config?: NullableJsonNullValueInput | InputJsonValue
31249
31335
  version?: NullableStringFieldUpdateOperationsInput | string | null
31250
31336
  errors?: JsonNullValueInput | InputJsonValue
@@ -31261,6 +31347,7 @@ export namespace Prisma {
31261
31347
 
31262
31348
  export type IntegrationCreateWithoutSyncsInput = {
31263
31349
  status?: $Enums.IntegrationStatus
31350
+ organizationId?: number | null
31264
31351
  config?: NullableJsonNullValueInput | InputJsonValue
31265
31352
  version?: string | null
31266
31353
  errors?: JsonNullValueInput | InputJsonValue
@@ -31280,6 +31367,7 @@ export namespace Prisma {
31280
31367
  id?: number
31281
31368
  userId?: number | null
31282
31369
  status?: $Enums.IntegrationStatus
31370
+ organizationId?: number | null
31283
31371
  config?: NullableJsonNullValueInput | InputJsonValue
31284
31372
  version?: string | null
31285
31373
  errors?: JsonNullValueInput | InputJsonValue
@@ -31303,6 +31391,7 @@ export namespace Prisma {
31303
31391
  name?: string | null
31304
31392
  moduleName?: string | null
31305
31393
  externalId?: string | null
31394
+ organizationId?: number | null
31306
31395
  data?: JsonNullValueInput | InputJsonValue
31307
31396
  createdAt?: Date | string
31308
31397
  updatedAt?: Date | string
@@ -31320,6 +31409,7 @@ export namespace Prisma {
31320
31409
  name?: string | null
31321
31410
  moduleName?: string | null
31322
31411
  externalId?: string | null
31412
+ organizationId?: number | null
31323
31413
  data?: JsonNullValueInput | InputJsonValue
31324
31414
  createdAt?: Date | string
31325
31415
  updatedAt?: Date | string
@@ -31369,6 +31459,7 @@ export namespace Prisma {
31369
31459
 
31370
31460
  export type IntegrationUpdateWithoutSyncsInput = {
31371
31461
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
31462
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
31372
31463
  config?: NullableJsonNullValueInput | InputJsonValue
31373
31464
  version?: NullableStringFieldUpdateOperationsInput | string | null
31374
31465
  errors?: JsonNullValueInput | InputJsonValue
@@ -31388,6 +31479,7 @@ export namespace Prisma {
31388
31479
  id?: IntFieldUpdateOperationsInput | number
31389
31480
  userId?: NullableIntFieldUpdateOperationsInput | number | null
31390
31481
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
31482
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
31391
31483
  config?: NullableJsonNullValueInput | InputJsonValue
31392
31484
  version?: NullableStringFieldUpdateOperationsInput | string | null
31393
31485
  errors?: JsonNullValueInput | InputJsonValue
@@ -31458,6 +31550,7 @@ export namespace Prisma {
31458
31550
  name?: string | null
31459
31551
  moduleName?: string | null
31460
31552
  externalId?: string | null
31553
+ organizationId?: number | null
31461
31554
  data?: JsonNullValueInput | InputJsonValue
31462
31555
  createdAt?: Date | string
31463
31556
  updatedAt?: Date | string
@@ -31475,6 +31568,7 @@ export namespace Prisma {
31475
31568
  name?: string | null
31476
31569
  moduleName?: string | null
31477
31570
  externalId?: string | null
31571
+ organizationId?: number | null
31478
31572
  data?: JsonNullValueInput | InputJsonValue
31479
31573
  createdAt?: Date | string
31480
31574
  updatedAt?: Date | string
@@ -31529,6 +31623,7 @@ export namespace Prisma {
31529
31623
  name?: NullableStringFieldUpdateOperationsInput | string | null
31530
31624
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
31531
31625
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
31626
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
31532
31627
  data?: JsonNullValueInput | InputJsonValue
31533
31628
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
31534
31629
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -31546,6 +31641,7 @@ export namespace Prisma {
31546
31641
  name?: NullableStringFieldUpdateOperationsInput | string | null
31547
31642
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
31548
31643
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
31644
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
31549
31645
  data?: JsonNullValueInput | InputJsonValue
31550
31646
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
31551
31647
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -31556,6 +31652,7 @@ export namespace Prisma {
31556
31652
 
31557
31653
  export type IntegrationCreateWithoutAssociationsInput = {
31558
31654
  status?: $Enums.IntegrationStatus
31655
+ organizationId?: number | null
31559
31656
  config?: NullableJsonNullValueInput | InputJsonValue
31560
31657
  version?: string | null
31561
31658
  errors?: JsonNullValueInput | InputJsonValue
@@ -31575,6 +31672,7 @@ export namespace Prisma {
31575
31672
  id?: number
31576
31673
  userId?: number | null
31577
31674
  status?: $Enums.IntegrationStatus
31675
+ organizationId?: number | null
31578
31676
  config?: NullableJsonNullValueInput | InputJsonValue
31579
31677
  version?: string | null
31580
31678
  errors?: JsonNullValueInput | InputJsonValue
@@ -31632,6 +31730,7 @@ export namespace Prisma {
31632
31730
 
31633
31731
  export type IntegrationUpdateWithoutAssociationsInput = {
31634
31732
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
31733
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
31635
31734
  config?: NullableJsonNullValueInput | InputJsonValue
31636
31735
  version?: NullableStringFieldUpdateOperationsInput | string | null
31637
31736
  errors?: JsonNullValueInput | InputJsonValue
@@ -31651,6 +31750,7 @@ export namespace Prisma {
31651
31750
  id?: IntFieldUpdateOperationsInput | number
31652
31751
  userId?: NullableIntFieldUpdateOperationsInput | number | null
31653
31752
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
31753
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
31654
31754
  config?: NullableJsonNullValueInput | InputJsonValue
31655
31755
  version?: NullableStringFieldUpdateOperationsInput | string | null
31656
31756
  errors?: JsonNullValueInput | InputJsonValue
@@ -31705,6 +31805,7 @@ export namespace Prisma {
31705
31805
  name?: string | null
31706
31806
  moduleName?: string | null
31707
31807
  externalId?: string | null
31808
+ organizationId?: number | null
31708
31809
  data?: JsonNullValueInput | InputJsonValue
31709
31810
  createdAt?: Date | string
31710
31811
  updatedAt?: Date | string
@@ -31722,6 +31823,7 @@ export namespace Prisma {
31722
31823
  name?: string | null
31723
31824
  moduleName?: string | null
31724
31825
  externalId?: string | null
31826
+ organizationId?: number | null
31725
31827
  data?: JsonNullValueInput | InputJsonValue
31726
31828
  createdAt?: Date | string
31727
31829
  updatedAt?: Date | string
@@ -31776,6 +31878,7 @@ export namespace Prisma {
31776
31878
  name?: NullableStringFieldUpdateOperationsInput | string | null
31777
31879
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
31778
31880
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
31881
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
31779
31882
  data?: JsonNullValueInput | InputJsonValue
31780
31883
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
31781
31884
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -31793,6 +31896,7 @@ export namespace Prisma {
31793
31896
  name?: NullableStringFieldUpdateOperationsInput | string | null
31794
31897
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
31795
31898
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
31899
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
31796
31900
  data?: JsonNullValueInput | InputJsonValue
31797
31901
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
31798
31902
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -31849,6 +31953,7 @@ export namespace Prisma {
31849
31953
 
31850
31954
  export type IntegrationCreateWithoutProcessesInput = {
31851
31955
  status?: $Enums.IntegrationStatus
31956
+ organizationId?: number | null
31852
31957
  config?: NullableJsonNullValueInput | InputJsonValue
31853
31958
  version?: string | null
31854
31959
  errors?: JsonNullValueInput | InputJsonValue
@@ -31868,6 +31973,7 @@ export namespace Prisma {
31868
31973
  id?: number
31869
31974
  userId?: number | null
31870
31975
  status?: $Enums.IntegrationStatus
31976
+ organizationId?: number | null
31871
31977
  config?: NullableJsonNullValueInput | InputJsonValue
31872
31978
  version?: string | null
31873
31979
  errors?: JsonNullValueInput | InputJsonValue
@@ -32021,6 +32127,7 @@ export namespace Prisma {
32021
32127
 
32022
32128
  export type IntegrationUpdateWithoutProcessesInput = {
32023
32129
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
32130
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
32024
32131
  config?: NullableJsonNullValueInput | InputJsonValue
32025
32132
  version?: NullableStringFieldUpdateOperationsInput | string | null
32026
32133
  errors?: JsonNullValueInput | InputJsonValue
@@ -32040,6 +32147,7 @@ export namespace Prisma {
32040
32147
  id?: IntFieldUpdateOperationsInput | number
32041
32148
  userId?: NullableIntFieldUpdateOperationsInput | number | null
32042
32149
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
32150
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
32043
32151
  config?: NullableJsonNullValueInput | InputJsonValue
32044
32152
  version?: NullableStringFieldUpdateOperationsInput | string | null
32045
32153
  errors?: JsonNullValueInput | InputJsonValue
@@ -32465,6 +32573,7 @@ export namespace Prisma {
32465
32573
  name?: string | null
32466
32574
  moduleName?: string | null
32467
32575
  externalId?: string | null
32576
+ organizationId?: number | null
32468
32577
  data?: JsonNullValueInput | InputJsonValue
32469
32578
  createdAt?: Date | string
32470
32579
  updatedAt?: Date | string
@@ -32473,6 +32582,7 @@ export namespace Prisma {
32473
32582
  export type IntegrationCreateManyUserInput = {
32474
32583
  id?: number
32475
32584
  status?: $Enums.IntegrationStatus
32585
+ organizationId?: number | null
32476
32586
  config?: NullableJsonNullValueInput | InputJsonValue
32477
32587
  version?: string | null
32478
32588
  errors?: JsonNullValueInput | InputJsonValue
@@ -32616,6 +32726,7 @@ export namespace Prisma {
32616
32726
  name?: NullableStringFieldUpdateOperationsInput | string | null
32617
32727
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
32618
32728
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
32729
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
32619
32730
  data?: JsonNullValueInput | InputJsonValue
32620
32731
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
32621
32732
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -32632,6 +32743,7 @@ export namespace Prisma {
32632
32743
  name?: NullableStringFieldUpdateOperationsInput | string | null
32633
32744
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
32634
32745
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
32746
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
32635
32747
  data?: JsonNullValueInput | InputJsonValue
32636
32748
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
32637
32749
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -32647,6 +32759,7 @@ export namespace Prisma {
32647
32759
  name?: NullableStringFieldUpdateOperationsInput | string | null
32648
32760
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
32649
32761
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
32762
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
32650
32763
  data?: JsonNullValueInput | InputJsonValue
32651
32764
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
32652
32765
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -32654,6 +32767,7 @@ export namespace Prisma {
32654
32767
 
32655
32768
  export type IntegrationUpdateWithoutUserInput = {
32656
32769
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
32770
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
32657
32771
  config?: NullableJsonNullValueInput | InputJsonValue
32658
32772
  version?: NullableStringFieldUpdateOperationsInput | string | null
32659
32773
  errors?: JsonNullValueInput | InputJsonValue
@@ -32672,6 +32786,7 @@ export namespace Prisma {
32672
32786
  export type IntegrationUncheckedUpdateWithoutUserInput = {
32673
32787
  id?: IntFieldUpdateOperationsInput | number
32674
32788
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
32789
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
32675
32790
  config?: NullableJsonNullValueInput | InputJsonValue
32676
32791
  version?: NullableStringFieldUpdateOperationsInput | string | null
32677
32792
  errors?: JsonNullValueInput | InputJsonValue
@@ -32690,6 +32805,7 @@ export namespace Prisma {
32690
32805
  export type IntegrationUncheckedUpdateManyWithoutUserInput = {
32691
32806
  id?: IntFieldUpdateOperationsInput | number
32692
32807
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
32808
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
32693
32809
  config?: NullableJsonNullValueInput | InputJsonValue
32694
32810
  version?: NullableStringFieldUpdateOperationsInput | string | null
32695
32811
  errors?: JsonNullValueInput | InputJsonValue
@@ -32786,6 +32902,7 @@ export namespace Prisma {
32786
32902
  name?: string | null
32787
32903
  moduleName?: string | null
32788
32904
  externalId?: string | null
32905
+ organizationId?: number | null
32789
32906
  data?: JsonNullValueInput | InputJsonValue
32790
32907
  createdAt?: Date | string
32791
32908
  updatedAt?: Date | string
@@ -32795,6 +32912,7 @@ export namespace Prisma {
32795
32912
  name?: NullableStringFieldUpdateOperationsInput | string | null
32796
32913
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
32797
32914
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
32915
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
32798
32916
  data?: JsonNullValueInput | InputJsonValue
32799
32917
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
32800
32918
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -32811,6 +32929,7 @@ export namespace Prisma {
32811
32929
  name?: NullableStringFieldUpdateOperationsInput | string | null
32812
32930
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
32813
32931
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
32932
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
32814
32933
  data?: JsonNullValueInput | InputJsonValue
32815
32934
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
32816
32935
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -32826,6 +32945,7 @@ export namespace Prisma {
32826
32945
  name?: NullableStringFieldUpdateOperationsInput | string | null
32827
32946
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
32828
32947
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
32948
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
32829
32949
  data?: JsonNullValueInput | InputJsonValue
32830
32950
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
32831
32951
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -32848,6 +32968,7 @@ export namespace Prisma {
32848
32968
 
32849
32969
  export type IntegrationUpdateWithoutEntitiesInput = {
32850
32970
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
32971
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
32851
32972
  config?: NullableJsonNullValueInput | InputJsonValue
32852
32973
  version?: NullableStringFieldUpdateOperationsInput | string | null
32853
32974
  errors?: JsonNullValueInput | InputJsonValue
@@ -32867,6 +32988,7 @@ export namespace Prisma {
32867
32988
  id?: IntFieldUpdateOperationsInput | number
32868
32989
  userId?: NullableIntFieldUpdateOperationsInput | number | null
32869
32990
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
32991
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
32870
32992
  config?: NullableJsonNullValueInput | InputJsonValue
32871
32993
  version?: NullableStringFieldUpdateOperationsInput | string | null
32872
32994
  errors?: JsonNullValueInput | InputJsonValue
@@ -32885,6 +33007,7 @@ export namespace Prisma {
32885
33007
  id?: IntFieldUpdateOperationsInput | number
32886
33008
  userId?: NullableIntFieldUpdateOperationsInput | number | null
32887
33009
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
33010
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
32888
33011
  config?: NullableJsonNullValueInput | InputJsonValue
32889
33012
  version?: NullableStringFieldUpdateOperationsInput | string | null
32890
33013
  errors?: JsonNullValueInput | InputJsonValue
@@ -32998,6 +33121,7 @@ export namespace Prisma {
32998
33121
  name?: NullableStringFieldUpdateOperationsInput | string | null
32999
33122
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
33000
33123
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
33124
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
33001
33125
  data?: JsonNullValueInput | InputJsonValue
33002
33126
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
33003
33127
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -33015,6 +33139,7 @@ export namespace Prisma {
33015
33139
  name?: NullableStringFieldUpdateOperationsInput | string | null
33016
33140
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
33017
33141
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
33142
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
33018
33143
  data?: JsonNullValueInput | InputJsonValue
33019
33144
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
33020
33145
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -33030,6 +33155,7 @@ export namespace Prisma {
33030
33155
  name?: NullableStringFieldUpdateOperationsInput | string | null
33031
33156
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
33032
33157
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
33158
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
33033
33159
  data?: JsonNullValueInput | InputJsonValue
33034
33160
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
33035
33161
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -33152,6 +33278,7 @@ export namespace Prisma {
33152
33278
  name?: NullableStringFieldUpdateOperationsInput | string | null
33153
33279
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
33154
33280
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
33281
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
33155
33282
  data?: JsonNullValueInput | InputJsonValue
33156
33283
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
33157
33284
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -33169,6 +33296,7 @@ export namespace Prisma {
33169
33296
  name?: NullableStringFieldUpdateOperationsInput | string | null
33170
33297
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
33171
33298
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
33299
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
33172
33300
  data?: JsonNullValueInput | InputJsonValue
33173
33301
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
33174
33302
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -33184,6 +33312,7 @@ export namespace Prisma {
33184
33312
  name?: NullableStringFieldUpdateOperationsInput | string | null
33185
33313
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
33186
33314
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
33315
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
33187
33316
  data?: JsonNullValueInput | InputJsonValue
33188
33317
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
33189
33318
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string