@flowselections/ai-authenticatie 1.0.4 → 1.0.6

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 (27) hide show
  1. package/dist-lib/integrations/supabase/auth-middleware.d.ts +266 -0
  2. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  3. package/dist-lib/integrations/supabase/client.d.ts +266 -0
  4. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  5. package/dist-lib/integrations/supabase/client.server.d.ts +266 -0
  6. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  7. package/dist-lib/integrations/supabase/types.d.ts +273 -0
  8. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  9. package/dist-lib/lib/aiChat.functions.d.ts +532 -0
  10. package/dist-lib/lib/aiChat.functions.d.ts.map +1 -1
  11. package/dist-lib/lib/aiCredentialTest.functions.d.ts +532 -0
  12. package/dist-lib/lib/aiCredentialTest.functions.d.ts.map +1 -1
  13. package/dist-lib/lib/aiModules.functions.d.ts +1596 -0
  14. package/dist-lib/lib/aiModules.functions.d.ts.map +1 -1
  15. package/dist-lib/lib/aiPricing.functions.d.ts +532 -0
  16. package/dist-lib/lib/aiPricing.functions.d.ts.map +1 -1
  17. package/dist-lib/lib/aiUsageByModule.functions.d.ts +532 -0
  18. package/dist-lib/lib/aiUsageByModule.functions.d.ts.map +1 -1
  19. package/dist-lib/lib/modules.functions.d.ts +798 -0
  20. package/dist-lib/lib/modules.functions.d.ts.map +1 -1
  21. package/package.json +3 -3
  22. package/dist-lib/hooks/useAiGoals.d.ts +0 -8
  23. package/dist-lib/hooks/useAiGoals.d.ts.map +0 -1
  24. package/dist-lib/hooks/useAiGoals.js +0 -22
  25. package/dist-lib/lib/aiGoals.functions.d.ts +0 -12912
  26. package/dist-lib/lib/aiGoals.functions.d.ts.map +0 -1
  27. package/dist-lib/lib/aiGoals.functions.js +0 -14
@@ -2929,6 +2929,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
2929
2929
  status: string;
2930
2930
  token_expires_at: string | null;
2931
2931
  updated_at: string;
2932
+ watch_scope: string;
2932
2933
  webhook_last_attempt_at: string | null;
2933
2934
  webhook_last_error: string | null;
2934
2935
  webhook_status: string;
@@ -2971,6 +2972,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
2971
2972
  status?: string;
2972
2973
  token_expires_at?: string | null;
2973
2974
  updated_at?: string;
2975
+ watch_scope?: string;
2974
2976
  webhook_last_attempt_at?: string | null;
2975
2977
  webhook_last_error?: string | null;
2976
2978
  webhook_status?: string;
@@ -3013,6 +3015,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
3013
3015
  status?: string;
3014
3016
  token_expires_at?: string | null;
3015
3017
  updated_at?: string;
3018
+ watch_scope?: string;
3016
3019
  webhook_last_attempt_at?: string | null;
3017
3020
  webhook_last_error?: string | null;
3018
3021
  webhook_status?: string;
@@ -3211,6 +3214,72 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
3211
3214
  referencedColumns: ["id"];
3212
3215
  }];
3213
3216
  };
3217
+ email_auth_watch_folders: {
3218
+ Row: {
3219
+ connection_id: string;
3220
+ created_at: string;
3221
+ folder_id: string;
3222
+ folder_name: string | null;
3223
+ gmail_history_id: string | null;
3224
+ graph_subscription_expires_at: string | null;
3225
+ graph_subscription_id: string | null;
3226
+ id: string;
3227
+ imap_last_uid: number | null;
3228
+ imap_uid_validity: number | null;
3229
+ mailbox: string;
3230
+ provider: string;
3231
+ updated_at: string;
3232
+ webhook_last_error: string | null;
3233
+ webhook_status: string | null;
3234
+ };
3235
+ Insert: {
3236
+ connection_id: string;
3237
+ created_at?: string;
3238
+ folder_id: string;
3239
+ folder_name?: string | null;
3240
+ gmail_history_id?: string | null;
3241
+ graph_subscription_expires_at?: string | null;
3242
+ graph_subscription_id?: string | null;
3243
+ id?: string;
3244
+ imap_last_uid?: number | null;
3245
+ imap_uid_validity?: number | null;
3246
+ mailbox?: string;
3247
+ provider: string;
3248
+ updated_at?: string;
3249
+ webhook_last_error?: string | null;
3250
+ webhook_status?: string | null;
3251
+ };
3252
+ Update: {
3253
+ connection_id?: string;
3254
+ created_at?: string;
3255
+ folder_id?: string;
3256
+ folder_name?: string | null;
3257
+ gmail_history_id?: string | null;
3258
+ graph_subscription_expires_at?: string | null;
3259
+ graph_subscription_id?: string | null;
3260
+ id?: string;
3261
+ imap_last_uid?: number | null;
3262
+ imap_uid_validity?: number | null;
3263
+ mailbox?: string;
3264
+ provider?: string;
3265
+ updated_at?: string;
3266
+ webhook_last_error?: string | null;
3267
+ webhook_status?: string | null;
3268
+ };
3269
+ Relationships: [{
3270
+ foreignKeyName: "email_auth_watch_folders_connection_id_fkey";
3271
+ columns: ["connection_id"];
3272
+ isOneToOne: false;
3273
+ referencedRelation: "email_auth_connections";
3274
+ referencedColumns: ["id"];
3275
+ }, {
3276
+ foreignKeyName: "email_auth_watch_folders_connection_id_fkey";
3277
+ columns: ["connection_id"];
3278
+ isOneToOne: false;
3279
+ referencedRelation: "email_auth_connections_safe";
3280
+ referencedColumns: ["id"];
3281
+ }];
3282
+ };
3214
3283
  email_auth_webhook_log: {
3215
3284
  Row: {
3216
3285
  body_sample: string | null;
@@ -6478,6 +6547,36 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6478
6547
  };
6479
6548
  Relationships: [];
6480
6549
  };
6550
+ invoice_post_idempotency: {
6551
+ Row: {
6552
+ client_request_id: string;
6553
+ completed_at: string | null;
6554
+ created_at: string;
6555
+ error_message: string | null;
6556
+ invoice_number: string | null;
6557
+ status: string;
6558
+ user_id: string;
6559
+ };
6560
+ Insert: {
6561
+ client_request_id: string;
6562
+ completed_at?: string | null;
6563
+ created_at?: string;
6564
+ error_message?: string | null;
6565
+ invoice_number?: string | null;
6566
+ status?: string;
6567
+ user_id: string;
6568
+ };
6569
+ Update: {
6570
+ client_request_id?: string;
6571
+ completed_at?: string | null;
6572
+ created_at?: string;
6573
+ error_message?: string | null;
6574
+ invoice_number?: string | null;
6575
+ status?: string;
6576
+ user_id?: string;
6577
+ };
6578
+ Relationships: [];
6579
+ };
6481
6580
  invoice_push_log: {
6482
6581
  Row: {
6483
6582
  connection_id: string | null;
@@ -7333,6 +7432,96 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
7333
7432
  referencedColumns: ["id"];
7334
7433
  }];
7335
7434
  };
7435
+ logistics_rule_configs: {
7436
+ Row: {
7437
+ created_at: string;
7438
+ current_version: number;
7439
+ description: string | null;
7440
+ id: string;
7441
+ is_active: boolean;
7442
+ name: string;
7443
+ settings: import("./types").Json;
7444
+ status: string;
7445
+ strategy_id: string | null;
7446
+ updated_at: string;
7447
+ user_id: string;
7448
+ };
7449
+ Insert: {
7450
+ created_at?: string;
7451
+ current_version?: number;
7452
+ description?: string | null;
7453
+ id?: string;
7454
+ is_active?: boolean;
7455
+ name: string;
7456
+ settings?: import("./types").Json;
7457
+ status?: string;
7458
+ strategy_id?: string | null;
7459
+ updated_at?: string;
7460
+ user_id?: string;
7461
+ };
7462
+ Update: {
7463
+ created_at?: string;
7464
+ current_version?: number;
7465
+ description?: string | null;
7466
+ id?: string;
7467
+ is_active?: boolean;
7468
+ name?: string;
7469
+ settings?: import("./types").Json;
7470
+ status?: string;
7471
+ strategy_id?: string | null;
7472
+ updated_at?: string;
7473
+ user_id?: string;
7474
+ };
7475
+ Relationships: [{
7476
+ foreignKeyName: "logistics_rule_configs_strategy_id_fkey";
7477
+ columns: ["strategy_id"];
7478
+ isOneToOne: false;
7479
+ referencedRelation: "logistics_strategies";
7480
+ referencedColumns: ["id"];
7481
+ }];
7482
+ };
7483
+ logistics_rule_versions: {
7484
+ Row: {
7485
+ config_id: string;
7486
+ created_at: string;
7487
+ id: string;
7488
+ label: string | null;
7489
+ note: string | null;
7490
+ settings: import("./types").Json;
7491
+ status: string;
7492
+ user_id: string;
7493
+ version: number;
7494
+ };
7495
+ Insert: {
7496
+ config_id: string;
7497
+ created_at?: string;
7498
+ id?: string;
7499
+ label?: string | null;
7500
+ note?: string | null;
7501
+ settings?: import("./types").Json;
7502
+ status?: string;
7503
+ user_id?: string;
7504
+ version: number;
7505
+ };
7506
+ Update: {
7507
+ config_id?: string;
7508
+ created_at?: string;
7509
+ id?: string;
7510
+ label?: string | null;
7511
+ note?: string | null;
7512
+ settings?: import("./types").Json;
7513
+ status?: string;
7514
+ user_id?: string;
7515
+ version?: number;
7516
+ };
7517
+ Relationships: [{
7518
+ foreignKeyName: "logistics_rule_versions_config_id_fkey";
7519
+ columns: ["config_id"];
7520
+ isOneToOne: false;
7521
+ referencedRelation: "logistics_rule_configs";
7522
+ referencedColumns: ["id"];
7523
+ }];
7524
+ };
7336
7525
  logistics_strategies: {
7337
7526
  Row: {
7338
7527
  color: string;
@@ -13150,6 +13339,27 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
13150
13339
  };
13151
13340
  Relationships: [];
13152
13341
  };
13342
+ twinfield_revoked_accounts: {
13343
+ Row: {
13344
+ account_key: string;
13345
+ last_revoke_error: string | null;
13346
+ revoked_at: string;
13347
+ user_id: string;
13348
+ };
13349
+ Insert: {
13350
+ account_key: string;
13351
+ last_revoke_error?: string | null;
13352
+ revoked_at?: string;
13353
+ user_id: string;
13354
+ };
13355
+ Update: {
13356
+ account_key?: string;
13357
+ last_revoke_error?: string | null;
13358
+ revoked_at?: string;
13359
+ user_id?: string;
13360
+ };
13361
+ Relationships: [];
13362
+ };
13153
13363
  twinfield_session_cache: {
13154
13364
  Row: {
13155
13365
  cluster: string;
@@ -13252,6 +13462,48 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
13252
13462
  referencedColumns: ["id"];
13253
13463
  }];
13254
13464
  };
13465
+ voorraad_custom_fields: {
13466
+ Row: {
13467
+ created_at: string;
13468
+ field_key: string;
13469
+ field_label: string;
13470
+ field_type: string;
13471
+ id: string;
13472
+ options: string[];
13473
+ show_in_columns: boolean;
13474
+ show_in_detail: boolean;
13475
+ show_in_template: boolean;
13476
+ sort_order: number;
13477
+ updated_at: string;
13478
+ };
13479
+ Insert: {
13480
+ created_at?: string;
13481
+ field_key: string;
13482
+ field_label: string;
13483
+ field_type?: string;
13484
+ id?: string;
13485
+ options?: string[];
13486
+ show_in_columns?: boolean;
13487
+ show_in_detail?: boolean;
13488
+ show_in_template?: boolean;
13489
+ sort_order?: number;
13490
+ updated_at?: string;
13491
+ };
13492
+ Update: {
13493
+ created_at?: string;
13494
+ field_key?: string;
13495
+ field_label?: string;
13496
+ field_type?: string;
13497
+ id?: string;
13498
+ options?: string[];
13499
+ show_in_columns?: boolean;
13500
+ show_in_detail?: boolean;
13501
+ show_in_template?: boolean;
13502
+ sort_order?: number;
13503
+ updated_at?: string;
13504
+ };
13505
+ Relationships: [];
13506
+ };
13255
13507
  voorraad_media_upload_failures: {
13256
13508
  Row: {
13257
13509
  action: string;
@@ -15534,6 +15786,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
15534
15786
  };
15535
15787
  Returns: number;
15536
15788
  };
15789
+ release_debtor_lock: {
15790
+ Args: {
15791
+ _group_key: string;
15792
+ _user_id: string;
15793
+ };
15794
+ Returns: boolean;
15795
+ };
15537
15796
  reorder_customer_price_groups: {
15538
15797
  Args: {
15539
15798
  _ids: string[];
@@ -15913,6 +16172,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
15913
16172
  };
15914
16173
  Returns: undefined;
15915
16174
  };
16175
+ try_debtor_lock: {
16176
+ Args: {
16177
+ _group_key: string;
16178
+ _user_id: string;
16179
+ };
16180
+ Returns: boolean;
16181
+ };
15916
16182
  twinfield_register_cron: {
15917
16183
  Args: {
15918
16184
  apikey: string;