@prisma/orm-extension-supabase 8.0.0-rc.11-dev.36 → 8.0.0-rc.11-dev.37

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.
@@ -1,5 +1,5 @@
1
- //#region ../../../3-extensions/supabase/dist/contract-oMK_MwNB.mjs
2
- var version = "8.0.0-rc.11-dev.36";
1
+ //#region ../../../3-extensions/supabase/dist/contract-BIIonumi.mjs
2
+ var version = "8.0.0-rc.11-dev.37";
3
3
  var contract_default = {
4
4
  schemaVersion: "1",
5
5
  targetFamily: "sql",
@@ -3942,6 +3942,80 @@ var contract_default = {
3942
3942
  "uniques": []
3943
3943
  },
3944
3944
  "custom_oauth_providers": {
3945
+ "checks": [
3946
+ {
3947
+ "expression": "((authorization_url IS NULL) OR (authorization_url ~~ 'https://%'::text))",
3948
+ "name": "custom_oauth_providers_authorization_url_https"
3949
+ },
3950
+ {
3951
+ "expression": "((authorization_url IS NULL) OR (char_length(authorization_url) <= 2048))",
3952
+ "name": "custom_oauth_providers_authorization_url_length"
3953
+ },
3954
+ {
3955
+ "expression": "((char_length(client_id) >= 1) AND (char_length(client_id) <= 512))",
3956
+ "name": "custom_oauth_providers_client_id_length"
3957
+ },
3958
+ {
3959
+ "expression": "((discovery_url IS NULL) OR (char_length(discovery_url) <= 2048))",
3960
+ "name": "custom_oauth_providers_discovery_url_length"
3961
+ },
3962
+ {
3963
+ "expression": "(identifier ~ '^[a-z0-9][a-z0-9:-]{0,48}[a-z0-9]$'::text)",
3964
+ "name": "custom_oauth_providers_identifier_format"
3965
+ },
3966
+ {
3967
+ "expression": "((issuer IS NULL) OR ((char_length(issuer) >= 1) AND (char_length(issuer) <= 2048)))",
3968
+ "name": "custom_oauth_providers_issuer_length"
3969
+ },
3970
+ {
3971
+ "expression": "((jwks_uri IS NULL) OR (jwks_uri ~~ 'https://%'::text))",
3972
+ "name": "custom_oauth_providers_jwks_uri_https"
3973
+ },
3974
+ {
3975
+ "expression": "((jwks_uri IS NULL) OR (char_length(jwks_uri) <= 2048))",
3976
+ "name": "custom_oauth_providers_jwks_uri_length"
3977
+ },
3978
+ {
3979
+ "expression": "((char_length(name) >= 1) AND (char_length(name) <= 100))",
3980
+ "name": "custom_oauth_providers_name_length"
3981
+ },
3982
+ {
3983
+ "expression": "((provider_type <> 'oauth2'::text) OR ((authorization_url IS NOT NULL) AND (token_url IS NOT NULL) AND (userinfo_url IS NOT NULL)))",
3984
+ "name": "custom_oauth_providers_oauth2_requires_endpoints"
3985
+ },
3986
+ {
3987
+ "expression": "((provider_type <> 'oidc'::text) OR (discovery_url IS NULL) OR (discovery_url ~~ 'https://%'::text))",
3988
+ "name": "custom_oauth_providers_oidc_discovery_url_https"
3989
+ },
3990
+ {
3991
+ "expression": "((provider_type <> 'oidc'::text) OR (issuer IS NULL) OR (issuer ~~ 'https://%'::text))",
3992
+ "name": "custom_oauth_providers_oidc_issuer_https"
3993
+ },
3994
+ {
3995
+ "expression": "((provider_type <> 'oidc'::text) OR (issuer IS NOT NULL))",
3996
+ "name": "custom_oauth_providers_oidc_requires_issuer"
3997
+ },
3998
+ {
3999
+ "expression": "(provider_type = ANY (ARRAY['oauth2'::text, 'oidc'::text]))",
4000
+ "name": "custom_oauth_providers_provider_type_check"
4001
+ },
4002
+ {
4003
+ "expression": "((token_url IS NULL) OR (token_url ~~ 'https://%'::text))",
4004
+ "name": "custom_oauth_providers_token_url_https"
4005
+ },
4006
+ {
4007
+ "expression": "((token_url IS NULL) OR (char_length(token_url) <= 2048))",
4008
+ "name": "custom_oauth_providers_token_url_length"
4009
+ },
4010
+ {
4011
+ "expression": "((userinfo_url IS NULL) OR (userinfo_url ~~ 'https://%'::text))",
4012
+ "name": "custom_oauth_providers_userinfo_url_https"
4013
+ },
4014
+ {
4015
+ "expression": "((userinfo_url IS NULL) OR (char_length(userinfo_url) <= 2048))",
4016
+ "name": "custom_oauth_providers_userinfo_url_length"
4017
+ }
4018
+ ],
3945
4019
  "columns": {
3946
4020
  "acceptable_client_ids": {
3947
4021
  "codecId": "pg/text@1",
@@ -3951,6 +4025,7 @@ var contract_default = {
3951
4025
  },
3952
4026
  "many": true,
3953
4027
  "nativeType": "text",
4028
+ "noCheck": ["elementNotNull"],
3954
4029
  "nullable": false
3955
4030
  },
3956
4031
  "attribute_mapping": {
@@ -4080,6 +4155,7 @@ var contract_default = {
4080
4155
  },
4081
4156
  "many": true,
4082
4157
  "nativeType": "text",
4158
+ "noCheck": ["elementNotNull"],
4083
4159
  "nullable": false
4084
4160
  },
4085
4161
  "skip_nonce_check": {
@@ -4646,6 +4722,40 @@ var contract_default = {
4646
4722
  }]
4647
4723
  },
4648
4724
  "oauth_authorizations": {
4725
+ "checks": [
4726
+ {
4727
+ "expression": "(char_length(authorization_code) <= 255)",
4728
+ "name": "oauth_authorizations_authorization_code_length"
4729
+ },
4730
+ {
4731
+ "expression": "(char_length(code_challenge) <= 128)",
4732
+ "name": "oauth_authorizations_code_challenge_length"
4733
+ },
4734
+ {
4735
+ "expression": "(expires_at > created_at)",
4736
+ "name": "oauth_authorizations_expires_at_future"
4737
+ },
4738
+ {
4739
+ "expression": "(char_length(nonce) <= 255)",
4740
+ "name": "oauth_authorizations_nonce_length"
4741
+ },
4742
+ {
4743
+ "expression": "(char_length(redirect_uri) <= 2048)",
4744
+ "name": "oauth_authorizations_redirect_uri_length"
4745
+ },
4746
+ {
4747
+ "expression": "(char_length(resource) <= 2048)",
4748
+ "name": "oauth_authorizations_resource_length"
4749
+ },
4750
+ {
4751
+ "expression": "(char_length(scope) <= 4096)",
4752
+ "name": "oauth_authorizations_scope_length"
4753
+ },
4754
+ {
4755
+ "expression": "(char_length(state) <= 4096)",
4756
+ "name": "oauth_authorizations_state_length"
4757
+ }
4758
+ ],
4649
4759
  "columns": {
4650
4760
  "approved_at": {
4651
4761
  "codecId": "pg/timestamptz-temporal@1",
@@ -4727,8 +4837,8 @@ var contract_default = {
4727
4837
  "response_type": {
4728
4838
  "codecId": "pg/enum@1",
4729
4839
  "default": {
4730
- "expression": "'code'::auth.oauth_response_type",
4731
- "kind": "function"
4840
+ "kind": "literal",
4841
+ "value": "code"
4732
4842
  },
4733
4843
  "nativeType": "auth.oauth_response_type",
4734
4844
  "nullable": false,
@@ -4753,8 +4863,8 @@ var contract_default = {
4753
4863
  "status": {
4754
4864
  "codecId": "pg/enum@1",
4755
4865
  "default": {
4756
- "expression": "'pending'::auth.oauth_authorization_status",
4757
- "kind": "function"
4866
+ "kind": "literal",
4867
+ "value": "pending"
4758
4868
  },
4759
4869
  "nativeType": "auth.oauth_authorization_status",
4760
4870
  "nullable": false,
@@ -4855,6 +4965,24 @@ var contract_default = {
4855
4965
  "uniques": []
4856
4966
  },
4857
4967
  "oauth_clients": {
4968
+ "checks": [
4969
+ {
4970
+ "expression": "(char_length(client_name) <= 1024)",
4971
+ "name": "oauth_clients_client_name_length"
4972
+ },
4973
+ {
4974
+ "expression": "(char_length(client_uri) <= 2048)",
4975
+ "name": "oauth_clients_client_uri_length"
4976
+ },
4977
+ {
4978
+ "expression": "(char_length(logo_uri) <= 2048)",
4979
+ "name": "oauth_clients_logo_uri_length"
4980
+ },
4981
+ {
4982
+ "expression": "(token_endpoint_auth_method = ANY (ARRAY['client_secret_basic'::text, 'client_secret_post'::text, 'none'::text]))",
4983
+ "name": "oauth_clients_token_endpoint_auth_method_check"
4984
+ }
4985
+ ],
4858
4986
  "columns": {
4859
4987
  "client_name": {
4860
4988
  "codecId": "pg/text@1",
@@ -4869,8 +4997,8 @@ var contract_default = {
4869
4997
  "client_type": {
4870
4998
  "codecId": "pg/enum@1",
4871
4999
  "default": {
4872
- "expression": "'confidential'::auth.oauth_client_type",
4873
- "kind": "function"
5000
+ "kind": "literal",
5001
+ "value": "confidential"
4874
5002
  },
4875
5003
  "nativeType": "auth.oauth_client_type",
4876
5004
  "nullable": false,
@@ -4962,6 +5090,20 @@ var contract_default = {
4962
5090
  "uniques": []
4963
5091
  },
4964
5092
  "oauth_consents": {
5093
+ "checks": [
5094
+ {
5095
+ "expression": "((revoked_at IS NULL) OR (revoked_at >= granted_at))",
5096
+ "name": "oauth_consents_revoked_after_granted"
5097
+ },
5098
+ {
5099
+ "expression": "(char_length(scopes) <= 2048)",
5100
+ "name": "oauth_consents_scopes_length"
5101
+ },
5102
+ {
5103
+ "expression": "(char_length(TRIM(BOTH FROM scopes)) > 0)",
5104
+ "name": "oauth_consents_scopes_not_empty"
5105
+ }
5106
+ ],
4965
5107
  "columns": {
4966
5108
  "client_id": {
4967
5109
  "codecId": "pg/uuid@1",
@@ -5057,6 +5199,10 @@ var contract_default = {
5057
5199
  }]
5058
5200
  },
5059
5201
  "one_time_tokens": {
5202
+ "checks": [{
5203
+ "expression": "(char_length(token_hash) > 0)",
5204
+ "name": "one_time_tokens_token_hash_check"
5205
+ }],
5060
5206
  "columns": {
5061
5207
  "created_at": {
5062
5208
  "codecId": "pg/timestamp-temporal@1",
@@ -5260,6 +5406,20 @@ var contract_default = {
5260
5406
  }]
5261
5407
  },
5262
5408
  "saml_providers": {
5409
+ "checks": [
5410
+ {
5411
+ "expression": "(char_length(entity_id) > 0)",
5412
+ "name": "entity_id not empty"
5413
+ },
5414
+ {
5415
+ "expression": "((metadata_url = NULL::text) OR (char_length(metadata_url) > 0))",
5416
+ "name": "metadata_url not empty"
5417
+ },
5418
+ {
5419
+ "expression": "(char_length(metadata_xml) > 0)",
5420
+ "name": "metadata_xml not empty"
5421
+ }
5422
+ ],
5263
5423
  "columns": {
5264
5424
  "attribute_mapping": {
5265
5425
  "codecId": "pg/jsonb@1",
@@ -5338,6 +5498,10 @@ var contract_default = {
5338
5498
  }]
5339
5499
  },
5340
5500
  "saml_relay_states": {
5501
+ "checks": [{
5502
+ "expression": "(char_length(request_id) > 0)",
5503
+ "name": "request_id not empty"
5504
+ }],
5341
5505
  "columns": {
5342
5506
  "created_at": {
5343
5507
  "codecId": "pg/timestamptz-temporal@1",
@@ -5449,6 +5613,10 @@ var contract_default = {
5449
5613
  "uniques": []
5450
5614
  },
5451
5615
  "sessions": {
5616
+ "checks": [{
5617
+ "expression": "(char_length(scopes) <= 4096)",
5618
+ "name": "sessions_scopes_length"
5619
+ }],
5452
5620
  "columns": {
5453
5621
  "aal": {
5454
5622
  "codecId": "pg/enum@1",
@@ -5595,6 +5763,10 @@ var contract_default = {
5595
5763
  "uniques": []
5596
5764
  },
5597
5765
  "sso_domains": {
5766
+ "checks": [{
5767
+ "expression": "(char_length(domain) > 0)",
5768
+ "name": "domain not empty"
5769
+ }],
5598
5770
  "columns": {
5599
5771
  "created_at": {
5600
5772
  "codecId": "pg/timestamptz-temporal@1",
@@ -5654,6 +5826,10 @@ var contract_default = {
5654
5826
  "uniques": []
5655
5827
  },
5656
5828
  "sso_providers": {
5829
+ "checks": [{
5830
+ "expression": "((resource_id = NULL::text) OR (char_length(resource_id) > 0))",
5831
+ "name": "resource_id not empty"
5832
+ }],
5657
5833
  "columns": {
5658
5834
  "created_at": {
5659
5835
  "codecId": "pg/timestamptz-temporal@1",
@@ -5699,6 +5875,10 @@ var contract_default = {
5699
5875
  "uniques": []
5700
5876
  },
5701
5877
  "users": {
5878
+ "checks": [{
5879
+ "expression": "((email_change_confirm_status >= 0) AND (email_change_confirm_status <= 2))",
5880
+ "name": "users_email_change_confirm_status_check"
5881
+ }],
5702
5882
  "columns": {
5703
5883
  "aud": {
5704
5884
  "codecId": "sql/varchar@1",
@@ -5982,6 +6162,10 @@ var contract_default = {
5982
6162
  }]
5983
6163
  },
5984
6164
  "webauthn_challenges": {
6165
+ "checks": [{
6166
+ "expression": "(challenge_type = ANY (ARRAY['signup'::text, 'registration'::text, 'authentication'::text]))",
6167
+ "name": "webauthn_challenges_challenge_type_check"
6168
+ }],
5985
6169
  "columns": {
5986
6170
  "challenge_type": {
5987
6171
  "codecId": "pg/text@1",
@@ -6391,8 +6575,8 @@ var contract_default = {
6391
6575
  "type": {
6392
6576
  "codecId": "pg/enum@1",
6393
6577
  "default": {
6394
- "expression": "'STANDARD'::storage.buckettype",
6395
- "kind": "function"
6578
+ "kind": "literal",
6579
+ "value": "STANDARD"
6396
6580
  },
6397
6581
  "nativeType": "storage.buckettype",
6398
6582
  "nullable": false,
@@ -6469,8 +6653,8 @@ var contract_default = {
6469
6653
  "type": {
6470
6654
  "codecId": "pg/enum@1",
6471
6655
  "default": {
6472
- "expression": "'ANALYTICS'::storage.buckettype",
6473
- "kind": "function"
6656
+ "kind": "literal",
6657
+ "value": "ANALYTICS"
6474
6658
  },
6475
6659
  "nativeType": "storage.buckettype",
6476
6660
  "nullable": false,
@@ -6524,8 +6708,8 @@ var contract_default = {
6524
6708
  "type": {
6525
6709
  "codecId": "pg/enum@1",
6526
6710
  "default": {
6527
- "expression": "'VECTOR'::storage.buckettype",
6528
- "kind": "function"
6711
+ "kind": "literal",
6712
+ "value": "VECTOR"
6529
6713
  },
6530
6714
  "nativeType": "storage.buckettype",
6531
6715
  "nullable": false,
@@ -7206,7 +7390,7 @@ var contract_default = {
7206
7390
  "kind": "postgres-schema"
7207
7391
  }
7208
7392
  },
7209
- "storageHash": "ede079259d126d9153bcb4fc4aa6781d870a255585524e1e95fae9e5af4eef89",
7393
+ "storageHash": "43f09411473534105017fa715b8932facbdf79feab1bfc75da681beb87f22cbc",
7210
7394
  "types": {
7211
7395
  "CreatedAt": {
7212
7396
  "codecId": "pg/timestamp-temporal@1",
@@ -7289,4 +7473,4 @@ var contract_default = {
7289
7473
  //#endregion
7290
7474
  export { version as n, contract_default as t };
7291
7475
 
7292
- //# sourceMappingURL=contract-oMK_MwNB-BTh8WsPd.mjs.map
7476
+ //# sourceMappingURL=contract-BIIonumi-Chj3Kprj.mjs.map