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