@amerged/ohmyhost-mcp 0.1.49 → 0.1.52

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 (29) hide show
  1. package/README.md +1 -1
  2. package/dist/{chunk-GLPFLQD6.js → chunk-EAD7RRAF.js} +5 -5
  3. package/dist/index.js +1 -1
  4. package/dist/stdio-main.js +555 -5
  5. package/package.json +1 -1
  6. package/src/apps/mcp/package.json +1 -1
  7. package/src/apps/mcp/src/local-client.ts +5 -0
  8. package/src/apps/mcp/src/local-server.ts +307 -1
  9. package/src/apps/product-cli/package.json +1 -1
  10. package/src/apps/product-cli/src/cli.ts +22 -0
  11. package/src/apps/product-cli/src/command.ts +235 -0
  12. package/src/apps/product-cli/src/composition.ts +7 -2
  13. package/src/apps/product-cli/src/index.ts +1 -0
  14. package/src/apps/product-cli/src/native-auth.ts +172 -0
  15. package/src/apps/product-cli/src/product-api.ts +6 -0
  16. package/src/packages/agent-skills/src/generated-skill-resources.ts +4 -4
  17. package/src/packages/contracts/package.json +10 -0
  18. package/src/packages/contracts/src/framework-admission.ts +5 -0
  19. package/src/packages/contracts/src/framework-source-rules.ts +9 -0
  20. package/src/packages/contracts/src/index.ts +1 -1
  21. package/src/packages/contracts/src/native-auth.ts +158 -0
  22. package/src/packages/contracts/src/previews.ts +179 -0
  23. package/src/packages/contracts/src/problem-policy.ts +8 -1
  24. package/src/packages/contracts/src/project-exports.ts +11 -3
  25. package/src/packages/sdk-ts/package.json +1 -1
  26. package/src/packages/sdk-ts/src/generated/index.ts +81 -0
  27. package/src/packages/sdk-ts/src/generated/sdk.gen.ts +604 -0
  28. package/src/packages/sdk-ts/src/generated/types.gen.ts +995 -4
  29. package/src/packages/workos-auth-contracts/src/webhooks.ts +30 -13
@@ -55,6 +55,8 @@ import type {
55
55
  CreateDeploymentResponses,
56
56
  CreateManagedSourceUploadErrors,
57
57
  CreateManagedSourceUploadResponses,
58
+ CreateNativeAuthUserErrors,
59
+ CreateNativeAuthUserResponses,
58
60
  CreateOrganizationErrors,
59
61
  CreateOrganizationRequest,
60
62
  CreateOrganizationResponses,
@@ -90,6 +92,8 @@ import type {
90
92
  DeleteEnvironmentSecretResponses,
91
93
  DeleteManagedMailDomainErrors,
92
94
  DeleteManagedMailDomainResponses,
95
+ DeleteNativeAuthUserErrors,
96
+ DeleteNativeAuthUserResponses,
93
97
  DeletePaidProjectDomainErrors,
94
98
  DeletePaidProjectDomainResponses,
95
99
  DeleteProjectDatabaseScheduleErrors,
@@ -143,6 +147,12 @@ import type {
143
147
  GetManagedMailMessageResponses,
144
148
  GetManagedSourceUploadErrors,
145
149
  GetManagedSourceUploadResponses,
150
+ GetNativeAuthConfigurationErrors,
151
+ GetNativeAuthConfigurationResponses,
152
+ GetNativeAuthProviderErrors,
153
+ GetNativeAuthProviderResponses,
154
+ GetNativeAuthUserErrors,
155
+ GetNativeAuthUserResponses,
146
156
  GetOperationErrors,
147
157
  GetOperationResponses,
148
158
  GetOrganizationAccountErrors,
@@ -206,6 +216,8 @@ import type {
206
216
  ListManagedSourceFilesResponses,
207
217
  ListManagedSourceVersionsErrors,
208
218
  ListManagedSourceVersionsResponses,
219
+ ListNativeAuthUsersErrors,
220
+ ListNativeAuthUsersResponses,
209
221
  ListProjectDatabaseAccessErrors,
210
222
  ListProjectDatabaseAccessResponses,
211
223
  ListProjectDatabaseScheduleRunsErrors,
@@ -235,6 +247,9 @@ import type {
235
247
  ManagedSourceRestoreRequest,
236
248
  ManagedSourceSwitchRequest,
237
249
  ManagedSourceUploadRequest,
250
+ NativeAuthConfigurationUpdate,
251
+ NativeAuthProviderUpdateWritable,
252
+ NativeAuthUserCreate,
238
253
  PaidDomainRequest,
239
254
  PlanDeploymentErrors,
240
255
  PlanDeploymentPromotionErrors,
@@ -267,6 +282,8 @@ import type {
267
282
  PutProjectMailDomainBindingResponses,
268
283
  QueryProjectDatabaseErrors,
269
284
  QueryProjectDatabaseResponses,
285
+ ReactivateNativeAuthUserErrors,
286
+ ReactivateNativeAuthUserResponses,
270
287
  ReconcileOperationErrors,
271
288
  ReconcileOperationResponses,
272
289
  RecordSignupSourceErrors,
@@ -275,6 +292,8 @@ import type {
275
292
  RegisterFeatureInterestResponses,
276
293
  ReplayProjectDatabaseWebhookDeliveryErrors,
277
294
  ReplayProjectDatabaseWebhookDeliveryResponses,
295
+ ResendNativeAuthInvitationErrors,
296
+ ResendNativeAuthInvitationResponses,
278
297
  RestoreManagedSourceErrors,
279
298
  RestoreManagedSourceResponses,
280
299
  RetireWorkspaceMailDomainErrors,
@@ -287,6 +306,8 @@ import type {
287
306
  RevokeApplicationDomainIdentityResponses,
288
307
  RevokeCurrentSessionErrors,
289
308
  RevokeCurrentSessionResponses,
309
+ RevokeNativeAuthUserSessionsErrors,
310
+ RevokeNativeAuthUserSessionsResponses,
290
311
  RevokeProjectDatabaseAccessErrors,
291
312
  RevokeProjectDatabaseAccessResponses,
292
313
  RevokeProjectDevShareLinkErrors,
@@ -325,11 +346,17 @@ import type {
325
346
  SubmitContactRequestResponses,
326
347
  SubmitFeedbackErrors,
327
348
  SubmitFeedbackResponses,
349
+ SuspendNativeAuthUserErrors,
350
+ SuspendNativeAuthUserResponses,
328
351
  SwitchManagedSourceErrors,
329
352
  SwitchManagedSourceResponses,
330
353
  TestProjectDatabaseWebhookErrors,
331
354
  TestProjectDatabaseWebhookResponses,
332
355
  Ulid,
356
+ UpdateNativeAuthConfigurationErrors,
357
+ UpdateNativeAuthConfigurationResponses,
358
+ UpdateNativeAuthProviderErrors,
359
+ UpdateNativeAuthProviderResponses,
333
360
  UserApiKeyId,
334
361
  VerifyApplicationDomainIdentityErrors,
335
362
  VerifyApplicationDomainIdentityResponses,
@@ -357,6 +384,583 @@ export type Options<
357
384
  meta?: keyof ClientMeta extends never ? Record<string, unknown> : ClientMeta;
358
385
  };
359
386
 
387
+ /**
388
+ * Read Native Auth configuration
389
+ *
390
+ * Requires the current project Owner for this environment. Source capability and owner pause are independent.
391
+ */
392
+ export const getNativeAuthConfiguration = <ThrowOnError extends boolean = true>(
393
+ parameters: {
394
+ "X-Request-Id"?: string;
395
+ project_id: Ulid;
396
+ environment_id: Ulid;
397
+ },
398
+ options?: Options<never, ThrowOnError>,
399
+ ): RequestResult<
400
+ GetNativeAuthConfigurationResponses,
401
+ GetNativeAuthConfigurationErrors,
402
+ ThrowOnError,
403
+ "data"
404
+ > => {
405
+ const params = buildClientParams(
406
+ [parameters],
407
+ [
408
+ {
409
+ args: [
410
+ { in: "headers", key: "X-Request-Id" },
411
+ { in: "path", key: "project_id" },
412
+ { in: "path", key: "environment_id" },
413
+ ],
414
+ },
415
+ ],
416
+ );
417
+ return (options?.client ?? client).get<
418
+ GetNativeAuthConfigurationResponses,
419
+ GetNativeAuthConfigurationErrors,
420
+ ThrowOnError,
421
+ "data"
422
+ >({
423
+ responseStyle: "data",
424
+ security: [{ scheme: "bearer", type: "http" }],
425
+ url: "/v1/projects/{project_id}/environments/{environment_id}/auth",
426
+ ...options,
427
+ ...params,
428
+ });
429
+ };
430
+
431
+ /**
432
+ * Update Native Auth configuration
433
+ *
434
+ * Requires the current project Owner for this environment. Source capability and owner pause are independent.
435
+ */
436
+ export const updateNativeAuthConfiguration = <ThrowOnError extends boolean = true>(
437
+ parameters: {
438
+ "X-Request-Id"?: string;
439
+ "Idempotency-Key": string;
440
+ project_id: Ulid;
441
+ environment_id: Ulid;
442
+ nativeAuthConfigurationUpdate: NativeAuthConfigurationUpdate;
443
+ },
444
+ options?: Options<never, ThrowOnError>,
445
+ ): RequestResult<
446
+ UpdateNativeAuthConfigurationResponses,
447
+ UpdateNativeAuthConfigurationErrors,
448
+ ThrowOnError,
449
+ "data"
450
+ > => {
451
+ const params = buildClientParams(
452
+ [parameters],
453
+ [
454
+ {
455
+ args: [
456
+ { in: "headers", key: "X-Request-Id" },
457
+ { in: "headers", key: "Idempotency-Key" },
458
+ { in: "path", key: "project_id" },
459
+ { in: "path", key: "environment_id" },
460
+ { key: "nativeAuthConfigurationUpdate", map: "body" },
461
+ ],
462
+ },
463
+ ],
464
+ );
465
+ return (options?.client ?? client).put<
466
+ UpdateNativeAuthConfigurationResponses,
467
+ UpdateNativeAuthConfigurationErrors,
468
+ ThrowOnError,
469
+ "data"
470
+ >({
471
+ responseStyle: "data",
472
+ security: [{ scheme: "bearer", type: "http" }],
473
+ url: "/v1/projects/{project_id}/environments/{environment_id}/auth",
474
+ ...options,
475
+ ...params,
476
+ headers: {
477
+ "Content-Type": "application/json",
478
+ ...options?.headers,
479
+ ...params.headers,
480
+ },
481
+ });
482
+ };
483
+
484
+ /**
485
+ * Read a Native Auth provider
486
+ *
487
+ * Requires the current project Owner for this environment. Source capability and owner pause are independent.
488
+ */
489
+ export const getNativeAuthProvider = <ThrowOnError extends boolean = true>(
490
+ parameters: {
491
+ "X-Request-Id"?: string;
492
+ project_id: Ulid;
493
+ environment_id: Ulid;
494
+ provider: "google" | "github";
495
+ },
496
+ options?: Options<never, ThrowOnError>,
497
+ ): RequestResult<
498
+ GetNativeAuthProviderResponses,
499
+ GetNativeAuthProviderErrors,
500
+ ThrowOnError,
501
+ "data"
502
+ > => {
503
+ const params = buildClientParams(
504
+ [parameters],
505
+ [
506
+ {
507
+ args: [
508
+ { in: "headers", key: "X-Request-Id" },
509
+ { in: "path", key: "project_id" },
510
+ { in: "path", key: "environment_id" },
511
+ { in: "path", key: "provider" },
512
+ ],
513
+ },
514
+ ],
515
+ );
516
+ return (options?.client ?? client).get<
517
+ GetNativeAuthProviderResponses,
518
+ GetNativeAuthProviderErrors,
519
+ ThrowOnError,
520
+ "data"
521
+ >({
522
+ responseStyle: "data",
523
+ security: [{ scheme: "bearer", type: "http" }],
524
+ url: "/v1/projects/{project_id}/environments/{environment_id}/auth/providers/{provider}",
525
+ ...options,
526
+ ...params,
527
+ });
528
+ };
529
+
530
+ /**
531
+ * Update a Native Auth provider
532
+ *
533
+ * Requires the current project Owner for this environment. Source capability and owner pause are independent.
534
+ */
535
+ export const updateNativeAuthProvider = <ThrowOnError extends boolean = true>(
536
+ parameters: {
537
+ "X-Request-Id"?: string;
538
+ "Idempotency-Key": string;
539
+ project_id: Ulid;
540
+ environment_id: Ulid;
541
+ provider: "google" | "github";
542
+ nativeAuthProviderUpdateWritable: NativeAuthProviderUpdateWritable;
543
+ },
544
+ options?: Options<never, ThrowOnError>,
545
+ ): RequestResult<
546
+ UpdateNativeAuthProviderResponses,
547
+ UpdateNativeAuthProviderErrors,
548
+ ThrowOnError,
549
+ "data"
550
+ > => {
551
+ const params = buildClientParams(
552
+ [parameters],
553
+ [
554
+ {
555
+ args: [
556
+ { in: "headers", key: "X-Request-Id" },
557
+ { in: "headers", key: "Idempotency-Key" },
558
+ { in: "path", key: "project_id" },
559
+ { in: "path", key: "environment_id" },
560
+ { in: "path", key: "provider" },
561
+ { key: "nativeAuthProviderUpdateWritable", map: "body" },
562
+ ],
563
+ },
564
+ ],
565
+ );
566
+ return (options?.client ?? client).put<
567
+ UpdateNativeAuthProviderResponses,
568
+ UpdateNativeAuthProviderErrors,
569
+ ThrowOnError,
570
+ "data"
571
+ >({
572
+ responseStyle: "data",
573
+ security: [{ scheme: "bearer", type: "http" }],
574
+ url: "/v1/projects/{project_id}/environments/{environment_id}/auth/providers/{provider}",
575
+ ...options,
576
+ ...params,
577
+ headers: {
578
+ "Content-Type": "application/json",
579
+ ...options?.headers,
580
+ ...params.headers,
581
+ },
582
+ });
583
+ };
584
+
585
+ /**
586
+ * List Native Auth users
587
+ *
588
+ * Requires the current project Owner for this environment. Source capability and owner pause are independent.
589
+ */
590
+ export const listNativeAuthUsers = <ThrowOnError extends boolean = true>(
591
+ parameters: {
592
+ "X-Request-Id"?: string;
593
+ project_id: Ulid;
594
+ environment_id: Ulid;
595
+ limit?: number;
596
+ cursor?: string;
597
+ search?: string;
598
+ },
599
+ options?: Options<never, ThrowOnError>,
600
+ ): RequestResult<ListNativeAuthUsersResponses, ListNativeAuthUsersErrors, ThrowOnError, "data"> => {
601
+ const params = buildClientParams(
602
+ [parameters],
603
+ [
604
+ {
605
+ args: [
606
+ { in: "headers", key: "X-Request-Id" },
607
+ { in: "path", key: "project_id" },
608
+ { in: "path", key: "environment_id" },
609
+ { in: "query", key: "limit" },
610
+ { in: "query", key: "cursor" },
611
+ { in: "query", key: "search" },
612
+ ],
613
+ },
614
+ ],
615
+ );
616
+ return (options?.client ?? client).get<
617
+ ListNativeAuthUsersResponses,
618
+ ListNativeAuthUsersErrors,
619
+ ThrowOnError,
620
+ "data"
621
+ >({
622
+ responseStyle: "data",
623
+ security: [{ scheme: "bearer", type: "http" }],
624
+ url: "/v1/projects/{project_id}/environments/{environment_id}/auth/users",
625
+ ...options,
626
+ ...params,
627
+ });
628
+ };
629
+
630
+ /**
631
+ * Create and invite a Native Auth user
632
+ *
633
+ * Requires the current project Owner for this environment. Source capability and owner pause are independent.
634
+ */
635
+ export const createNativeAuthUser = <ThrowOnError extends boolean = true>(
636
+ parameters: {
637
+ "X-Request-Id"?: string;
638
+ "Idempotency-Key": string;
639
+ project_id: Ulid;
640
+ environment_id: Ulid;
641
+ nativeAuthUserCreate: NativeAuthUserCreate;
642
+ },
643
+ options?: Options<never, ThrowOnError>,
644
+ ): RequestResult<
645
+ CreateNativeAuthUserResponses,
646
+ CreateNativeAuthUserErrors,
647
+ ThrowOnError,
648
+ "data"
649
+ > => {
650
+ const params = buildClientParams(
651
+ [parameters],
652
+ [
653
+ {
654
+ args: [
655
+ { in: "headers", key: "X-Request-Id" },
656
+ { in: "headers", key: "Idempotency-Key" },
657
+ { in: "path", key: "project_id" },
658
+ { in: "path", key: "environment_id" },
659
+ { key: "nativeAuthUserCreate", map: "body" },
660
+ ],
661
+ },
662
+ ],
663
+ );
664
+ return (options?.client ?? client).post<
665
+ CreateNativeAuthUserResponses,
666
+ CreateNativeAuthUserErrors,
667
+ ThrowOnError,
668
+ "data"
669
+ >({
670
+ responseStyle: "data",
671
+ security: [{ scheme: "bearer", type: "http" }],
672
+ url: "/v1/projects/{project_id}/environments/{environment_id}/auth/users",
673
+ ...options,
674
+ ...params,
675
+ headers: {
676
+ "Content-Type": "application/json",
677
+ ...options?.headers,
678
+ ...params.headers,
679
+ },
680
+ });
681
+ };
682
+
683
+ /**
684
+ * Delete a Native Auth user
685
+ *
686
+ * Requires the current project Owner for this environment. Source capability and owner pause are independent.
687
+ */
688
+ export const deleteNativeAuthUser = <ThrowOnError extends boolean = true>(
689
+ parameters: {
690
+ "X-Request-Id"?: string;
691
+ "Idempotency-Key": string;
692
+ project_id: Ulid;
693
+ environment_id: Ulid;
694
+ user_id: string;
695
+ },
696
+ options?: Options<never, ThrowOnError>,
697
+ ): RequestResult<
698
+ DeleteNativeAuthUserResponses,
699
+ DeleteNativeAuthUserErrors,
700
+ ThrowOnError,
701
+ "data"
702
+ > => {
703
+ const params = buildClientParams(
704
+ [parameters],
705
+ [
706
+ {
707
+ args: [
708
+ { in: "headers", key: "X-Request-Id" },
709
+ { in: "headers", key: "Idempotency-Key" },
710
+ { in: "path", key: "project_id" },
711
+ { in: "path", key: "environment_id" },
712
+ { in: "path", key: "user_id" },
713
+ ],
714
+ },
715
+ ],
716
+ );
717
+ return (options?.client ?? client).delete<
718
+ DeleteNativeAuthUserResponses,
719
+ DeleteNativeAuthUserErrors,
720
+ ThrowOnError,
721
+ "data"
722
+ >({
723
+ responseStyle: "data",
724
+ security: [{ scheme: "bearer", type: "http" }],
725
+ url: "/v1/projects/{project_id}/environments/{environment_id}/auth/users/{user_id}",
726
+ ...options,
727
+ ...params,
728
+ });
729
+ };
730
+
731
+ /**
732
+ * Read a Native Auth user
733
+ *
734
+ * Requires the current project Owner for this environment. Source capability and owner pause are independent.
735
+ */
736
+ export const getNativeAuthUser = <ThrowOnError extends boolean = true>(
737
+ parameters: {
738
+ "X-Request-Id"?: string;
739
+ project_id: Ulid;
740
+ environment_id: Ulid;
741
+ user_id: string;
742
+ },
743
+ options?: Options<never, ThrowOnError>,
744
+ ): RequestResult<GetNativeAuthUserResponses, GetNativeAuthUserErrors, ThrowOnError, "data"> => {
745
+ const params = buildClientParams(
746
+ [parameters],
747
+ [
748
+ {
749
+ args: [
750
+ { in: "headers", key: "X-Request-Id" },
751
+ { in: "path", key: "project_id" },
752
+ { in: "path", key: "environment_id" },
753
+ { in: "path", key: "user_id" },
754
+ ],
755
+ },
756
+ ],
757
+ );
758
+ return (options?.client ?? client).get<
759
+ GetNativeAuthUserResponses,
760
+ GetNativeAuthUserErrors,
761
+ ThrowOnError,
762
+ "data"
763
+ >({
764
+ responseStyle: "data",
765
+ security: [{ scheme: "bearer", type: "http" }],
766
+ url: "/v1/projects/{project_id}/environments/{environment_id}/auth/users/{user_id}",
767
+ ...options,
768
+ ...params,
769
+ });
770
+ };
771
+
772
+ /**
773
+ * Resend an invitation
774
+ *
775
+ * Requires the current project Owner for this environment. Source capability and owner pause are independent.
776
+ */
777
+ export const resendNativeAuthInvitation = <ThrowOnError extends boolean = true>(
778
+ parameters: {
779
+ "X-Request-Id"?: string;
780
+ "Idempotency-Key": string;
781
+ project_id: Ulid;
782
+ environment_id: Ulid;
783
+ user_id: string;
784
+ },
785
+ options?: Options<never, ThrowOnError>,
786
+ ): RequestResult<
787
+ ResendNativeAuthInvitationResponses,
788
+ ResendNativeAuthInvitationErrors,
789
+ ThrowOnError,
790
+ "data"
791
+ > => {
792
+ const params = buildClientParams(
793
+ [parameters],
794
+ [
795
+ {
796
+ args: [
797
+ { in: "headers", key: "X-Request-Id" },
798
+ { in: "headers", key: "Idempotency-Key" },
799
+ { in: "path", key: "project_id" },
800
+ { in: "path", key: "environment_id" },
801
+ { in: "path", key: "user_id" },
802
+ ],
803
+ },
804
+ ],
805
+ );
806
+ return (options?.client ?? client).post<
807
+ ResendNativeAuthInvitationResponses,
808
+ ResendNativeAuthInvitationErrors,
809
+ ThrowOnError,
810
+ "data"
811
+ >({
812
+ responseStyle: "data",
813
+ security: [{ scheme: "bearer", type: "http" }],
814
+ url: "/v1/projects/{project_id}/environments/{environment_id}/auth/users/{user_id}/invite",
815
+ ...options,
816
+ ...params,
817
+ });
818
+ };
819
+
820
+ /**
821
+ * Suspend a Native Auth user
822
+ *
823
+ * Requires the current project Owner for this environment. Source capability and owner pause are independent.
824
+ */
825
+ export const suspendNativeAuthUser = <ThrowOnError extends boolean = true>(
826
+ parameters: {
827
+ "X-Request-Id"?: string;
828
+ "Idempotency-Key": string;
829
+ project_id: Ulid;
830
+ environment_id: Ulid;
831
+ user_id: string;
832
+ },
833
+ options?: Options<never, ThrowOnError>,
834
+ ): RequestResult<
835
+ SuspendNativeAuthUserResponses,
836
+ SuspendNativeAuthUserErrors,
837
+ ThrowOnError,
838
+ "data"
839
+ > => {
840
+ const params = buildClientParams(
841
+ [parameters],
842
+ [
843
+ {
844
+ args: [
845
+ { in: "headers", key: "X-Request-Id" },
846
+ { in: "headers", key: "Idempotency-Key" },
847
+ { in: "path", key: "project_id" },
848
+ { in: "path", key: "environment_id" },
849
+ { in: "path", key: "user_id" },
850
+ ],
851
+ },
852
+ ],
853
+ );
854
+ return (options?.client ?? client).post<
855
+ SuspendNativeAuthUserResponses,
856
+ SuspendNativeAuthUserErrors,
857
+ ThrowOnError,
858
+ "data"
859
+ >({
860
+ responseStyle: "data",
861
+ security: [{ scheme: "bearer", type: "http" }],
862
+ url: "/v1/projects/{project_id}/environments/{environment_id}/auth/users/{user_id}/suspend",
863
+ ...options,
864
+ ...params,
865
+ });
866
+ };
867
+
868
+ /**
869
+ * Reactivate a Native Auth user
870
+ *
871
+ * Requires the current project Owner for this environment. Source capability and owner pause are independent.
872
+ */
873
+ export const reactivateNativeAuthUser = <ThrowOnError extends boolean = true>(
874
+ parameters: {
875
+ "X-Request-Id"?: string;
876
+ "Idempotency-Key": string;
877
+ project_id: Ulid;
878
+ environment_id: Ulid;
879
+ user_id: string;
880
+ },
881
+ options?: Options<never, ThrowOnError>,
882
+ ): RequestResult<
883
+ ReactivateNativeAuthUserResponses,
884
+ ReactivateNativeAuthUserErrors,
885
+ ThrowOnError,
886
+ "data"
887
+ > => {
888
+ const params = buildClientParams(
889
+ [parameters],
890
+ [
891
+ {
892
+ args: [
893
+ { in: "headers", key: "X-Request-Id" },
894
+ { in: "headers", key: "Idempotency-Key" },
895
+ { in: "path", key: "project_id" },
896
+ { in: "path", key: "environment_id" },
897
+ { in: "path", key: "user_id" },
898
+ ],
899
+ },
900
+ ],
901
+ );
902
+ return (options?.client ?? client).post<
903
+ ReactivateNativeAuthUserResponses,
904
+ ReactivateNativeAuthUserErrors,
905
+ ThrowOnError,
906
+ "data"
907
+ >({
908
+ responseStyle: "data",
909
+ security: [{ scheme: "bearer", type: "http" }],
910
+ url: "/v1/projects/{project_id}/environments/{environment_id}/auth/users/{user_id}/reactivate",
911
+ ...options,
912
+ ...params,
913
+ });
914
+ };
915
+
916
+ /**
917
+ * Revoke a Native Auth user's sessions
918
+ *
919
+ * Requires the current project Owner for this environment. Source capability and owner pause are independent.
920
+ */
921
+ export const revokeNativeAuthUserSessions = <ThrowOnError extends boolean = true>(
922
+ parameters: {
923
+ "X-Request-Id"?: string;
924
+ "Idempotency-Key": string;
925
+ project_id: Ulid;
926
+ environment_id: Ulid;
927
+ user_id: string;
928
+ },
929
+ options?: Options<never, ThrowOnError>,
930
+ ): RequestResult<
931
+ RevokeNativeAuthUserSessionsResponses,
932
+ RevokeNativeAuthUserSessionsErrors,
933
+ ThrowOnError,
934
+ "data"
935
+ > => {
936
+ const params = buildClientParams(
937
+ [parameters],
938
+ [
939
+ {
940
+ args: [
941
+ { in: "headers", key: "X-Request-Id" },
942
+ { in: "headers", key: "Idempotency-Key" },
943
+ { in: "path", key: "project_id" },
944
+ { in: "path", key: "environment_id" },
945
+ { in: "path", key: "user_id" },
946
+ ],
947
+ },
948
+ ],
949
+ );
950
+ return (options?.client ?? client).post<
951
+ RevokeNativeAuthUserSessionsResponses,
952
+ RevokeNativeAuthUserSessionsErrors,
953
+ ThrowOnError,
954
+ "data"
955
+ >({
956
+ responseStyle: "data",
957
+ security: [{ scheme: "bearer", type: "http" }],
958
+ url: "/v1/projects/{project_id}/environments/{environment_id}/auth/users/{user_id}/revoke-sessions",
959
+ ...options,
960
+ ...params,
961
+ });
962
+ };
963
+
360
964
  /**
361
965
  * List authorized workspace sending domains
362
966
  *