@opusdns/api 0.80.0 → 0.81.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.
package/src/schema.d.ts CHANGED
@@ -848,7 +848,7 @@ export interface paths {
848
848
  * Delete an organization
849
849
  * @description Permanently deletes an organization
850
850
  */
851
- delete: operations["delete_user_v1_organizations__organization_id__delete"];
851
+ delete: operations["delete_organization_v1_organizations__organization_id__delete"];
852
852
  options?: never;
853
853
  head?: never;
854
854
  /**
@@ -858,146 +858,6 @@ export interface paths {
858
858
  patch: operations["update_organization_v1_organizations__organization_id__patch"];
859
859
  trace?: never;
860
860
  };
861
- "/v1/organizations/{organization_id}/billing/checkout-sessions": {
862
- parameters: {
863
- query?: never;
864
- header?: never;
865
- path?: never;
866
- cookie?: never;
867
- };
868
- get?: never;
869
- put?: never;
870
- /**
871
- * Create checkout session
872
- * @description Create a checkout session for the organization
873
- */
874
- post: operations["get_checkout_session_v1_organizations__organization_id__billing_checkout_sessions_post"];
875
- delete?: never;
876
- options?: never;
877
- head?: never;
878
- patch?: never;
879
- trace?: never;
880
- };
881
- "/v1/organizations/{organization_id}/billing/payment-methods": {
882
- parameters: {
883
- query?: never;
884
- header?: never;
885
- path?: never;
886
- cookie?: never;
887
- };
888
- /**
889
- * List all payment methods
890
- * @description List all available payment methods for the organization
891
- */
892
- get: operations["list_payment_methods_v1_organizations__organization_id__billing_payment_methods_get"];
893
- put?: never;
894
- post?: never;
895
- delete?: never;
896
- options?: never;
897
- head?: never;
898
- patch?: never;
899
- trace?: never;
900
- };
901
- "/v1/organizations/{organization_id}/billing/payment-methods/{payment_method_id}": {
902
- parameters: {
903
- query?: never;
904
- header?: never;
905
- path?: never;
906
- cookie?: never;
907
- };
908
- get?: never;
909
- put?: never;
910
- post?: never;
911
- /**
912
- * Delete a payment method
913
- * @description Delete a payment method for the organization
914
- */
915
- delete: operations["delete_payment_method_v1_organizations__organization_id__billing_payment_methods__payment_method_id__delete"];
916
- options?: never;
917
- head?: never;
918
- patch?: never;
919
- trace?: never;
920
- };
921
- "/v1/organizations/{organization_id}/billing/payment-methods/{payment_method_id}/default": {
922
- parameters: {
923
- query?: never;
924
- header?: never;
925
- path?: never;
926
- cookie?: never;
927
- };
928
- get?: never;
929
- put?: never;
930
- post?: never;
931
- delete?: never;
932
- options?: never;
933
- head?: never;
934
- /**
935
- * Set payment method as default
936
- * @description Set the provided payment method as default for the specified organization
937
- */
938
- patch: operations["update_default_payment_method_v1_organizations__organization_id__billing_payment_methods__payment_method_id__default_patch"];
939
- trace?: never;
940
- };
941
- "/v1/organizations/{organization_id}/billing/wallet/credits": {
942
- parameters: {
943
- query?: never;
944
- header?: never;
945
- path?: never;
946
- cookie?: never;
947
- };
948
- get?: never;
949
- put?: never;
950
- /**
951
- * Credit wallet
952
- * @description Credit the organization's wallet using the provided amount and payment method
953
- */
954
- post: operations["credit_wallet_v1_organizations__organization_id__billing_wallet_credits_post"];
955
- delete?: never;
956
- options?: never;
957
- head?: never;
958
- patch?: never;
959
- trace?: never;
960
- };
961
- "/v1/organizations/{organization_id}/plan": {
962
- parameters: {
963
- query?: never;
964
- header?: never;
965
- path?: never;
966
- cookie?: never;
967
- };
968
- get?: never;
969
- put?: never;
970
- post?: never;
971
- delete?: never;
972
- options?: never;
973
- head?: never;
974
- /**
975
- * Update organization plan
976
- * @description Changes the plan for an organization
977
- */
978
- patch: operations["change_plan_v1_organizations__organization_id__plan_patch"];
979
- trace?: never;
980
- };
981
- "/v1/organizations/{organization_id}/plans": {
982
- parameters: {
983
- query?: never;
984
- header?: never;
985
- path?: never;
986
- cookie?: never;
987
- };
988
- /**
989
- * Get plans for an organization
990
- * @description Retrieves a list of plans for an organization
991
- */
992
- get: operations["get_current_available_plans_v1_organizations__organization_id__plans_get"];
993
- put?: never;
994
- post?: never;
995
- delete?: never;
996
- options?: never;
997
- head?: never;
998
- patch?: never;
999
- trace?: never;
1000
- };
1001
861
  "/v1/organizations/{organization_id}/pricing/product-type/{product_type}": {
1002
862
  parameters: {
1003
863
  query?: never;
@@ -1379,16 +1239,6 @@ export interface components {
1379
1239
  * @enum {string}
1380
1240
  */
1381
1241
  BillingTransactionStatus: "pending" | "succeeded" | "failed" | "canceled";
1382
- /** CheckoutSessionRequest */
1383
- CheckoutSessionRequest: Record<string, never>;
1384
- /** CheckoutSessionResponse */
1385
- CheckoutSessionResponse: {
1386
- /**
1387
- * Session Client Secret
1388
- * @description Checkout session client secret - meant to be used in the embedded checkout
1389
- */
1390
- session_client_secret: string;
1391
- };
1392
1242
  /**
1393
1243
  * ContactAttributeDefinition
1394
1244
  * @description Definition of a possible attribute for a TLD.
@@ -1903,44 +1753,6 @@ export interface components {
1903
1753
  * @enum {string}
1904
1754
  */
1905
1755
  Currency: "USD" | "EUR";
1906
- /** CustomerCreditCardPaymentMethod */
1907
- CustomerCreditCardPaymentMethod: {
1908
- /**
1909
- * Brand
1910
- * @description Card brand
1911
- */
1912
- brand: string;
1913
- /**
1914
- * Country
1915
- * @description Country code
1916
- */
1917
- country?: string | null;
1918
- /**
1919
- * Exp Month
1920
- * @description Expiration month
1921
- */
1922
- exp_month: number;
1923
- /**
1924
- * Exp Year
1925
- * @description Expiration year
1926
- */
1927
- exp_year: number;
1928
- /**
1929
- * Id
1930
- * @description Payment method ID
1931
- */
1932
- id: string;
1933
- /**
1934
- * Is Default
1935
- * @description Whether this is the default payment method
1936
- */
1937
- is_default: boolean;
1938
- /**
1939
- * Last4
1940
- * @description Last four digits of the card
1941
- */
1942
- last4: string;
1943
- };
1944
1756
  /**
1945
1757
  * DeletePolicyType
1946
1758
  * @enum {string}
@@ -2933,16 +2745,6 @@ export interface components {
2933
2745
  */
2934
2746
  start_date: Date;
2935
2747
  };
2936
- /** GetCurrentAvailablePlansResponse */
2937
- GetCurrentAvailablePlansResponse: {
2938
- /** @description Current active plan for the customer */
2939
- current_plan?: components["schemas"]["PlanInfo"] | null;
2940
- /**
2941
- * Plans
2942
- * @description List of available plans
2943
- */
2944
- plans: components["schemas"]["PlanInfo"][];
2945
- };
2946
2748
  /** GetPricesResponse */
2947
2749
  GetPricesResponse: {
2948
2750
  /**
@@ -3714,47 +3516,6 @@ export interface components {
3714
3516
  /** Permissions */
3715
3517
  permissions?: components["schemas"]["Permission"][];
3716
3518
  };
3717
- /** PlanIdRequest */
3718
- PlanIdRequest: {
3719
- /**
3720
- * Plan Id
3721
- * @description Plan ID from available plans
3722
- */
3723
- plan_id: string;
3724
- };
3725
- /** PlanInfo */
3726
- PlanInfo: {
3727
- /**
3728
- * Amount
3729
- * @description Base price
3730
- */
3731
- amount: string;
3732
- /**
3733
- * Currency
3734
- * @description Currency code
3735
- */
3736
- currency: string;
3737
- /**
3738
- * Name
3739
- * @description Plan display name
3740
- */
3741
- name?: string | null;
3742
- /**
3743
- * Plan Id
3744
- * @description Unique plan identifier
3745
- */
3746
- plan_id: string;
3747
- /**
3748
- * Plan Level
3749
- * @description Plan level such as 'premium' or 'starter'
3750
- */
3751
- plan_level?: string | null;
3752
- /**
3753
- * Plan Type
3754
- * @description Plan type or billing interval
3755
- */
3756
- plan_type?: string | null;
3757
- };
3758
3519
  /**
3759
3520
  * PostTransferRequirements
3760
3521
  * @enum {string}
@@ -4508,54 +4269,6 @@ export interface components {
4508
4269
  * @enum {string}
4509
4270
  */
4510
4271
  VerificationType: "api" | "email";
4511
- /** WalletCreditRequest */
4512
- WalletCreditRequest: {
4513
- /**
4514
- * Amount
4515
- * @description Amount to credit the customer wallet
4516
- */
4517
- amount: number | string;
4518
- /**
4519
- * Payment Method Id
4520
- * @description Payment method ID that should be used
4521
- */
4522
- payment_method_id: string;
4523
- };
4524
- /**
4525
- * WalletCreditResponseStatus
4526
- * @enum {string}
4527
- */
4528
- WalletCreditResponseStatus: "success" | "failed" | "pending";
4529
- /** WalletCreditResponseWithBalance */
4530
- WalletCreditResponseWithBalance: {
4531
- /**
4532
- * Amount
4533
- * @description Amount credited to the customer wallet
4534
- */
4535
- amount: string;
4536
- /**
4537
- * Balance
4538
- * @description Updated wallet balance after the credit
4539
- */
4540
- balance: string;
4541
- /**
4542
- * Client Secret
4543
- * @description Client secret for 3DS authentication
4544
- */
4545
- client_secret: string | null;
4546
- /**
4547
- * Credit Id
4548
- * @description Unique identifier of the wallet credit transaction
4549
- */
4550
- credit_id: string;
4551
- /**
4552
- * Message
4553
- * @description Optional human-readable message describing the result
4554
- */
4555
- message?: string | null;
4556
- /** @description Status of the credit operation */
4557
- status: components["schemas"]["WalletCreditResponseStatus"];
4558
- };
4559
4272
  /** WhoisBase */
4560
4273
  WhoisBase: {
4561
4274
  /**
@@ -7582,7 +7295,7 @@ export interface operations {
7582
7295
  };
7583
7296
  };
7584
7297
  };
7585
- delete_user_v1_organizations__organization_id__delete: {
7298
+ delete_organization_v1_organizations__organization_id__delete: {
7586
7299
  parameters: {
7587
7300
  query?: never;
7588
7301
  header?: never;
@@ -7646,235 +7359,6 @@ export interface operations {
7646
7359
  };
7647
7360
  };
7648
7361
  };
7649
- get_checkout_session_v1_organizations__organization_id__billing_checkout_sessions_post: {
7650
- parameters: {
7651
- query?: never;
7652
- header?: never;
7653
- path: {
7654
- organization_id: TypeId<"organization">;
7655
- };
7656
- cookie?: never;
7657
- };
7658
- requestBody: {
7659
- content: {
7660
- "application/json": components["schemas"]["CheckoutSessionRequest"];
7661
- };
7662
- };
7663
- responses: {
7664
- /** @description Successful Response */
7665
- 200: {
7666
- headers: {
7667
- [name: string]: unknown;
7668
- };
7669
- content: {
7670
- "application/json": components["schemas"]["CheckoutSessionResponse"];
7671
- };
7672
- };
7673
- /** @description Validation Error */
7674
- 422: {
7675
- headers: {
7676
- [name: string]: unknown;
7677
- };
7678
- content: {
7679
- "application/problem+json": components["schemas"]["HTTPValidationError"];
7680
- };
7681
- };
7682
- };
7683
- };
7684
- list_payment_methods_v1_organizations__organization_id__billing_payment_methods_get: {
7685
- parameters: {
7686
- query?: never;
7687
- header?: never;
7688
- path: {
7689
- organization_id: TypeId<"organization">;
7690
- };
7691
- cookie?: never;
7692
- };
7693
- requestBody?: never;
7694
- responses: {
7695
- /** @description Successful Response */
7696
- 200: {
7697
- headers: {
7698
- [name: string]: unknown;
7699
- };
7700
- content: {
7701
- "application/json": components["schemas"]["CustomerCreditCardPaymentMethod"][];
7702
- };
7703
- };
7704
- /** @description Validation Error */
7705
- 422: {
7706
- headers: {
7707
- [name: string]: unknown;
7708
- };
7709
- content: {
7710
- "application/problem+json": components["schemas"]["HTTPValidationError"];
7711
- };
7712
- };
7713
- };
7714
- };
7715
- delete_payment_method_v1_organizations__organization_id__billing_payment_methods__payment_method_id__delete: {
7716
- parameters: {
7717
- query?: never;
7718
- header?: never;
7719
- path: {
7720
- payment_method_id: string;
7721
- organization_id: TypeId<"organization">;
7722
- };
7723
- cookie?: never;
7724
- };
7725
- requestBody?: never;
7726
- responses: {
7727
- /** @description Successful Response */
7728
- 204: {
7729
- headers: {
7730
- [name: string]: unknown;
7731
- };
7732
- content?: never;
7733
- };
7734
- /** @description Validation Error */
7735
- 422: {
7736
- headers: {
7737
- [name: string]: unknown;
7738
- };
7739
- content: {
7740
- "application/problem+json": components["schemas"]["HTTPValidationError"];
7741
- };
7742
- };
7743
- };
7744
- };
7745
- update_default_payment_method_v1_organizations__organization_id__billing_payment_methods__payment_method_id__default_patch: {
7746
- parameters: {
7747
- query?: never;
7748
- header?: never;
7749
- path: {
7750
- payment_method_id: string;
7751
- organization_id: TypeId<"organization">;
7752
- };
7753
- cookie?: never;
7754
- };
7755
- requestBody?: never;
7756
- responses: {
7757
- /** @description Successful Response */
7758
- 200: {
7759
- headers: {
7760
- [name: string]: unknown;
7761
- };
7762
- content: {
7763
- "application/json": components["schemas"]["CustomerCreditCardPaymentMethod"][];
7764
- };
7765
- };
7766
- /** @description Validation Error */
7767
- 422: {
7768
- headers: {
7769
- [name: string]: unknown;
7770
- };
7771
- content: {
7772
- "application/problem+json": components["schemas"]["HTTPValidationError"];
7773
- };
7774
- };
7775
- };
7776
- };
7777
- credit_wallet_v1_organizations__organization_id__billing_wallet_credits_post: {
7778
- parameters: {
7779
- query?: never;
7780
- header?: never;
7781
- path: {
7782
- organization_id: TypeId<"organization">;
7783
- };
7784
- cookie?: never;
7785
- };
7786
- requestBody: {
7787
- content: {
7788
- "application/json": components["schemas"]["WalletCreditRequest"];
7789
- };
7790
- };
7791
- responses: {
7792
- /** @description Successful Response */
7793
- 200: {
7794
- headers: {
7795
- [name: string]: unknown;
7796
- };
7797
- content: {
7798
- "application/json": components["schemas"]["WalletCreditResponseWithBalance"];
7799
- };
7800
- };
7801
- /** @description Validation Error */
7802
- 422: {
7803
- headers: {
7804
- [name: string]: unknown;
7805
- };
7806
- content: {
7807
- "application/problem+json": components["schemas"]["HTTPValidationError"];
7808
- };
7809
- };
7810
- };
7811
- };
7812
- change_plan_v1_organizations__organization_id__plan_patch: {
7813
- parameters: {
7814
- query?: never;
7815
- header?: never;
7816
- path: {
7817
- organization_id: TypeId<"organization">;
7818
- };
7819
- cookie?: never;
7820
- };
7821
- requestBody: {
7822
- content: {
7823
- "application/json": components["schemas"]["PlanIdRequest"];
7824
- };
7825
- };
7826
- responses: {
7827
- /** @description Successful Response */
7828
- 200: {
7829
- headers: {
7830
- [name: string]: unknown;
7831
- };
7832
- content: {
7833
- "application/json": components["schemas"]["OrganizationWithBillingData"];
7834
- };
7835
- };
7836
- /** @description Validation Error */
7837
- 422: {
7838
- headers: {
7839
- [name: string]: unknown;
7840
- };
7841
- content: {
7842
- "application/problem+json": components["schemas"]["HTTPValidationError"];
7843
- };
7844
- };
7845
- };
7846
- };
7847
- get_current_available_plans_v1_organizations__organization_id__plans_get: {
7848
- parameters: {
7849
- query?: never;
7850
- header?: never;
7851
- path: {
7852
- organization_id: TypeId<"organization">;
7853
- };
7854
- cookie?: never;
7855
- };
7856
- requestBody?: never;
7857
- responses: {
7858
- /** @description Successful Response */
7859
- 200: {
7860
- headers: {
7861
- [name: string]: unknown;
7862
- };
7863
- content: {
7864
- "application/json": components["schemas"]["GetCurrentAvailablePlansResponse"];
7865
- };
7866
- };
7867
- /** @description Validation Error */
7868
- 422: {
7869
- headers: {
7870
- [name: string]: unknown;
7871
- };
7872
- content: {
7873
- "application/problem+json": components["schemas"]["HTTPValidationError"];
7874
- };
7875
- };
7876
- };
7877
- };
7878
7362
  get_pricing_plans_v1_organizations__organization_id__pricing_product_type__product_type__get: {
7879
7363
  parameters: {
7880
7364
  query?: {