@raystack/proton 0.1.0-80ce71da5211fde064d83731a80cee2dffbdf84b → 0.1.0-80fc5ba1e538e38d5ca190386af1e69ee64584ee

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.
@@ -4,7 +4,7 @@
4
4
 
5
5
  import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
6
6
  import type { JsonObject, Message } from "@bufbuild/protobuf";
7
- import type { AuditLog, AuditRecord, AuditRecordActor, AuditRecordResource, AuditRecordTarget, BillingAccount, BillingAccount_Address, BillingAccount_Balance, BillingAccount_Tax, BillingAccountDetails, BillingTransaction, CheckoutProductBody, CheckoutSession, CheckoutSetupBody, CheckoutSubscriptionBody, Domain, Feature, Group, Invitation, Invoice, JSONWebKey, KeyCredential, MetaSchema, Namespace, Organization, OrganizationKyc, PaymentMethod, Permission, Plan, Policy, Preference, PreferenceRequestBody, PreferenceTrait, Price, Product, Product_BehaviorConfig, Project, Relation, Resource, Role, RoleRequestBody, SecretCredential, ServiceUser, ServiceUserJWK, ServiceUserToken, Session, Subscription, Subscription_Phase, Usage, User } from "./models_pb";
7
+ import type { AuditRecord, AuditRecordActor, AuditRecordResource, AuditRecordTarget, BillingAccount, BillingAccount_Address, BillingAccount_Balance, BillingAccount_Tax, BillingAccountDetails, BillingTransaction, CheckoutProductBody, CheckoutSession, CheckoutSetupBody, CheckoutSubscriptionBody, Domain, Feature, Group, Invitation, Invoice, JSONWebKey, KeyCredential, MetaSchema, Namespace, Organization, OrganizationKyc, PaymentMethod, Permission, Plan, Policy, Preference, PreferenceRequestBody, PreferenceTrait, Price, Product, Product_BehaviorConfig, Project, Relation, Resource, Role, RoleRequestBody, SecretCredential, ServiceUser, ServiceUserJWK, ServiceUserToken, Session, Session_Meta, Subscription, Subscription_Phase, Usage, User } from "./models_pb";
8
8
  import type { Timestamp } from "@bufbuild/protobuf/wkt";
9
9
 
10
10
  /**
@@ -556,9 +556,10 @@ export declare type ListBillingTransactionsRequest = Message<"raystack.frontier.
556
556
  orgId: string;
557
557
 
558
558
  /**
559
- * ID of the billing account to update the subscription for
559
+ * DEPRECATED: billing_id will be inferred from org_id
560
560
  *
561
- * @generated from field: string billing_id = 2;
561
+ * @generated from field: string billing_id = 2 [deprecated = true];
562
+ * @deprecated
562
563
  */
563
564
  billingId: string;
564
565
 
@@ -618,9 +619,10 @@ export declare type TotalDebitedTransactionsRequest = Message<"raystack.frontier
618
619
  orgId: string;
619
620
 
620
621
  /**
621
- * ID of the billing account
622
+ * DEPRECATED: billing_id will be inferred from org_id
622
623
  *
623
- * @generated from field: string billing_id = 2;
624
+ * @generated from field: string billing_id = 2 [deprecated = true];
625
+ * @deprecated
624
626
  */
625
627
  billingId: string;
626
628
  };
@@ -654,14 +656,19 @@ export declare const TotalDebitedTransactionsResponseSchema: GenMessage<TotalDeb
654
656
  */
655
657
  export declare type GetSubscriptionRequest = Message<"raystack.frontier.v1beta1.GetSubscriptionRequest"> & {
656
658
  /**
657
- * @generated from field: string org_id = 1;
659
+ * DEPRECATED: org_id will be inferred from subscription id
660
+ *
661
+ * @generated from field: string org_id = 1 [deprecated = true];
662
+ * @deprecated
658
663
  */
659
664
  orgId: string;
660
665
 
661
666
  /**
667
+ * DEPRECATED: billing_id will be inferred from subscription id
662
668
  * ID of the billing account to get the subscription for
663
669
  *
664
- * @generated from field: string billing_id = 2;
670
+ * @generated from field: string billing_id = 2 [deprecated = true];
671
+ * @deprecated
665
672
  */
666
673
  billingId: string;
667
674
 
@@ -710,9 +717,11 @@ export declare type ListSubscriptionsRequest = Message<"raystack.frontier.v1beta
710
717
  orgId: string;
711
718
 
712
719
  /**
720
+ * DEPRECATED: billing_id will be inferred from org_id
713
721
  * ID of the billing account to list subscriptions for
714
722
  *
715
- * @generated from field: string billing_id = 2;
723
+ * @generated from field: string billing_id = 2 [deprecated = true];
724
+ * @deprecated
716
725
  */
717
726
  billingId: string;
718
727
 
@@ -763,14 +772,19 @@ export declare const ListSubscriptionsResponseSchema: GenMessage<ListSubscriptio
763
772
  */
764
773
  export declare type UpdateSubscriptionRequest = Message<"raystack.frontier.v1beta1.UpdateSubscriptionRequest"> & {
765
774
  /**
766
- * @generated from field: string org_id = 1;
775
+ * DEPRECATED: org_id will be inferred from subscription id
776
+ *
777
+ * @generated from field: string org_id = 1 [deprecated = true];
778
+ * @deprecated
767
779
  */
768
780
  orgId: string;
769
781
 
770
782
  /**
783
+ * DEPRECATED: billing_id will be inferred from subscription id
771
784
  * ID of the billing account to update the subscription for
772
785
  *
773
- * @generated from field: string billing_id = 2;
786
+ * @generated from field: string billing_id = 2 [deprecated = true];
787
+ * @deprecated
774
788
  */
775
789
  billingId: string;
776
790
 
@@ -816,14 +830,19 @@ export declare const UpdateSubscriptionResponseSchema: GenMessage<UpdateSubscrip
816
830
  */
817
831
  export declare type ChangeSubscriptionRequest = Message<"raystack.frontier.v1beta1.ChangeSubscriptionRequest"> & {
818
832
  /**
819
- * @generated from field: string org_id = 1;
833
+ * DEPRECATED: org_id will be inferred from subscription id
834
+ *
835
+ * @generated from field: string org_id = 1 [deprecated = true];
836
+ * @deprecated
820
837
  */
821
838
  orgId: string;
822
839
 
823
840
  /**
841
+ * DEPRECATED: billing_id will be inferred from subscription id
824
842
  * ID of the billing account to update the subscription for
825
843
  *
826
- * @generated from field: string billing_id = 2;
844
+ * @generated from field: string billing_id = 2 [deprecated = true];
845
+ * @deprecated
827
846
  */
828
847
  billingId: string;
829
848
 
@@ -940,14 +959,19 @@ export declare const ChangeSubscriptionResponseSchema: GenMessage<ChangeSubscrip
940
959
  */
941
960
  export declare type CancelSubscriptionRequest = Message<"raystack.frontier.v1beta1.CancelSubscriptionRequest"> & {
942
961
  /**
943
- * @generated from field: string org_id = 1;
962
+ * DEPRECATED: org_id will be inferred from subscription id
963
+ *
964
+ * @generated from field: string org_id = 1 [deprecated = true];
965
+ * @deprecated
944
966
  */
945
967
  orgId: string;
946
968
 
947
969
  /**
970
+ * DEPRECATED: billing_id will be inferred from subscription id
948
971
  * ID of the billing account to update the subscription for
949
972
  *
950
- * @generated from field: string billing_id = 2;
973
+ * @generated from field: string billing_id = 2 [deprecated = true];
974
+ * @deprecated
951
975
  */
952
976
  billingId: string;
953
977
 
@@ -1113,9 +1137,11 @@ export declare type CreateCheckoutRequest = Message<"raystack.frontier.v1beta1.C
1113
1137
  orgId: string;
1114
1138
 
1115
1139
  /**
1140
+ * DEPRECATED: billing_id will be inferred from org_id
1116
1141
  * ID of the billing account to update the subscription for
1117
1142
  *
1118
- * @generated from field: string billing_id = 2;
1143
+ * @generated from field: string billing_id = 2 [deprecated = true];
1144
+ * @deprecated
1119
1145
  */
1120
1146
  billingId: string;
1121
1147
 
@@ -1185,9 +1211,11 @@ export declare type ListCheckoutsRequest = Message<"raystack.frontier.v1beta1.Li
1185
1211
  orgId: string;
1186
1212
 
1187
1213
  /**
1214
+ * DEPRECATED: billing_id will be inferred from org_id
1188
1215
  * ID of the billing account to get the subscriptions for
1189
1216
  *
1190
- * @generated from field: string billing_id = 2;
1217
+ * @generated from field: string billing_id = 2 [deprecated = true];
1218
+ * @deprecated
1191
1219
  */
1192
1220
  billingId: string;
1193
1221
  };
@@ -1221,14 +1249,18 @@ export declare const ListCheckoutsResponseSchema: GenMessage<ListCheckoutsRespon
1221
1249
  */
1222
1250
  export declare type GetCheckoutRequest = Message<"raystack.frontier.v1beta1.GetCheckoutRequest"> & {
1223
1251
  /**
1224
- * @generated from field: string org_id = 1;
1252
+ * DEPRECATED: org_id is not needed, checkout can be fetched by id alone
1253
+ *
1254
+ * @generated from field: string org_id = 1 [deprecated = true];
1255
+ * @deprecated
1225
1256
  */
1226
1257
  orgId: string;
1227
1258
 
1228
1259
  /**
1229
- * ID of the billing account to get the subscriptions for
1260
+ * DEPRECATED: billing_id is not needed, checkout can be fetched by id alone
1230
1261
  *
1231
- * @generated from field: string billing_id = 2;
1262
+ * @generated from field: string billing_id = 2 [deprecated = true];
1263
+ * @deprecated
1232
1264
  */
1233
1265
  billingId: string;
1234
1266
 
@@ -1821,9 +1853,10 @@ export declare type ListInvoicesRequest = Message<"raystack.frontier.v1beta1.Lis
1821
1853
  orgId: string;
1822
1854
 
1823
1855
  /**
1824
- * ID of the billing account to list invoices for
1856
+ * DEPRECATED: billing_id will be inferred from org_id
1825
1857
  *
1826
- * @generated from field: string billing_id = 2;
1858
+ * @generated from field: string billing_id = 2 [deprecated = true];
1859
+ * @deprecated
1827
1860
  */
1828
1861
  billingId: string;
1829
1862
 
@@ -1872,9 +1905,10 @@ export declare type GetUpcomingInvoiceRequest = Message<"raystack.frontier.v1bet
1872
1905
  orgId: string;
1873
1906
 
1874
1907
  /**
1875
- * ID of the billing account to get the upcoming invoice for
1908
+ * DEPRECATED: billing_id will be inferred from org_id
1876
1909
  *
1877
- * @generated from field: string billing_id = 2;
1910
+ * @generated from field: string billing_id = 2 [deprecated = true];
1911
+ * @deprecated
1878
1912
  */
1879
1913
  billingId: string;
1880
1914
  };
@@ -3067,48 +3101,6 @@ export declare type GetServiceUserResponse = Message<"raystack.frontier.v1beta1.
3067
3101
  */
3068
3102
  export declare const GetServiceUserResponseSchema: GenMessage<GetServiceUserResponse>;
3069
3103
 
3070
- /**
3071
- * @generated from message raystack.frontier.v1beta1.UpdateServiceUserRequest
3072
- */
3073
- export declare type UpdateServiceUserRequest = Message<"raystack.frontier.v1beta1.UpdateServiceUserRequest"> & {
3074
- /**
3075
- * @generated from field: string id = 1;
3076
- */
3077
- id: string;
3078
-
3079
- /**
3080
- * @generated from field: raystack.frontier.v1beta1.ServiceUserRequestBody body = 2;
3081
- */
3082
- body?: ServiceUserRequestBody;
3083
-
3084
- /**
3085
- * @generated from field: string org_id = 3;
3086
- */
3087
- orgId: string;
3088
- };
3089
-
3090
- /**
3091
- * Describes the message raystack.frontier.v1beta1.UpdateServiceUserRequest.
3092
- * Use `create(UpdateServiceUserRequestSchema)` to create a new message.
3093
- */
3094
- export declare const UpdateServiceUserRequestSchema: GenMessage<UpdateServiceUserRequest>;
3095
-
3096
- /**
3097
- * @generated from message raystack.frontier.v1beta1.UpdateServiceUserResponse
3098
- */
3099
- export declare type UpdateServiceUserResponse = Message<"raystack.frontier.v1beta1.UpdateServiceUserResponse"> & {
3100
- /**
3101
- * @generated from field: raystack.frontier.v1beta1.ServiceUser serviceuser = 1;
3102
- */
3103
- serviceuser?: ServiceUser;
3104
- };
3105
-
3106
- /**
3107
- * Describes the message raystack.frontier.v1beta1.UpdateServiceUserResponse.
3108
- * Use `create(UpdateServiceUserResponseSchema)` to create a new message.
3109
- */
3110
- export declare const UpdateServiceUserResponseSchema: GenMessage<UpdateServiceUserResponse>;
3111
-
3112
3104
  /**
3113
3105
  * @generated from message raystack.frontier.v1beta1.DeleteServiceUserRequest
3114
3106
  */
@@ -6796,135 +6788,6 @@ export declare type ListMetaSchemasResponse = Message<"raystack.frontier.v1beta1
6796
6788
  */
6797
6789
  export declare const ListMetaSchemasResponseSchema: GenMessage<ListMetaSchemasResponse>;
6798
6790
 
6799
- /**
6800
- * @generated from message raystack.frontier.v1beta1.ListOrganizationAuditLogsRequest
6801
- */
6802
- export declare type ListOrganizationAuditLogsRequest = Message<"raystack.frontier.v1beta1.ListOrganizationAuditLogsRequest"> & {
6803
- /**
6804
- * @generated from field: string org_id = 1;
6805
- */
6806
- orgId: string;
6807
-
6808
- /**
6809
- * @generated from field: string source = 5;
6810
- */
6811
- source: string;
6812
-
6813
- /**
6814
- * @generated from field: string action = 6;
6815
- */
6816
- action: string;
6817
-
6818
- /**
6819
- * @generated from field: bool ignore_system = 7;
6820
- */
6821
- ignoreSystem: boolean;
6822
-
6823
- /**
6824
- * start_time and end_time are inclusive
6825
- *
6826
- * @generated from field: google.protobuf.Timestamp start_time = 10;
6827
- */
6828
- startTime?: Timestamp;
6829
-
6830
- /**
6831
- * @generated from field: google.protobuf.Timestamp end_time = 11;
6832
- */
6833
- endTime?: Timestamp;
6834
- };
6835
-
6836
- /**
6837
- * Describes the message raystack.frontier.v1beta1.ListOrganizationAuditLogsRequest.
6838
- * Use `create(ListOrganizationAuditLogsRequestSchema)` to create a new message.
6839
- */
6840
- export declare const ListOrganizationAuditLogsRequestSchema: GenMessage<ListOrganizationAuditLogsRequest>;
6841
-
6842
- /**
6843
- * @generated from message raystack.frontier.v1beta1.ListOrganizationAuditLogsResponse
6844
- */
6845
- export declare type ListOrganizationAuditLogsResponse = Message<"raystack.frontier.v1beta1.ListOrganizationAuditLogsResponse"> & {
6846
- /**
6847
- * @generated from field: repeated raystack.frontier.v1beta1.AuditLog logs = 1;
6848
- */
6849
- logs: AuditLog[];
6850
- };
6851
-
6852
- /**
6853
- * Describes the message raystack.frontier.v1beta1.ListOrganizationAuditLogsResponse.
6854
- * Use `create(ListOrganizationAuditLogsResponseSchema)` to create a new message.
6855
- */
6856
- export declare const ListOrganizationAuditLogsResponseSchema: GenMessage<ListOrganizationAuditLogsResponse>;
6857
-
6858
- /**
6859
- * @generated from message raystack.frontier.v1beta1.CreateOrganizationAuditLogsRequest
6860
- */
6861
- export declare type CreateOrganizationAuditLogsRequest = Message<"raystack.frontier.v1beta1.CreateOrganizationAuditLogsRequest"> & {
6862
- /**
6863
- * @generated from field: string org_id = 1;
6864
- */
6865
- orgId: string;
6866
-
6867
- /**
6868
- * @generated from field: repeated raystack.frontier.v1beta1.AuditLog logs = 2;
6869
- */
6870
- logs: AuditLog[];
6871
- };
6872
-
6873
- /**
6874
- * Describes the message raystack.frontier.v1beta1.CreateOrganizationAuditLogsRequest.
6875
- * Use `create(CreateOrganizationAuditLogsRequestSchema)` to create a new message.
6876
- */
6877
- export declare const CreateOrganizationAuditLogsRequestSchema: GenMessage<CreateOrganizationAuditLogsRequest>;
6878
-
6879
- /**
6880
- * @generated from message raystack.frontier.v1beta1.CreateOrganizationAuditLogsResponse
6881
- */
6882
- export declare type CreateOrganizationAuditLogsResponse = Message<"raystack.frontier.v1beta1.CreateOrganizationAuditLogsResponse"> & {
6883
- };
6884
-
6885
- /**
6886
- * Describes the message raystack.frontier.v1beta1.CreateOrganizationAuditLogsResponse.
6887
- * Use `create(CreateOrganizationAuditLogsResponseSchema)` to create a new message.
6888
- */
6889
- export declare const CreateOrganizationAuditLogsResponseSchema: GenMessage<CreateOrganizationAuditLogsResponse>;
6890
-
6891
- /**
6892
- * @generated from message raystack.frontier.v1beta1.GetOrganizationAuditLogRequest
6893
- */
6894
- export declare type GetOrganizationAuditLogRequest = Message<"raystack.frontier.v1beta1.GetOrganizationAuditLogRequest"> & {
6895
- /**
6896
- * @generated from field: string org_id = 1;
6897
- */
6898
- orgId: string;
6899
-
6900
- /**
6901
- * @generated from field: string id = 2;
6902
- */
6903
- id: string;
6904
- };
6905
-
6906
- /**
6907
- * Describes the message raystack.frontier.v1beta1.GetOrganizationAuditLogRequest.
6908
- * Use `create(GetOrganizationAuditLogRequestSchema)` to create a new message.
6909
- */
6910
- export declare const GetOrganizationAuditLogRequestSchema: GenMessage<GetOrganizationAuditLogRequest>;
6911
-
6912
- /**
6913
- * @generated from message raystack.frontier.v1beta1.GetOrganizationAuditLogResponse
6914
- */
6915
- export declare type GetOrganizationAuditLogResponse = Message<"raystack.frontier.v1beta1.GetOrganizationAuditLogResponse"> & {
6916
- /**
6917
- * @generated from field: raystack.frontier.v1beta1.AuditLog log = 1;
6918
- */
6919
- log?: AuditLog;
6920
- };
6921
-
6922
- /**
6923
- * Describes the message raystack.frontier.v1beta1.GetOrganizationAuditLogResponse.
6924
- * Use `create(GetOrganizationAuditLogResponseSchema)` to create a new message.
6925
- */
6926
- export declare const GetOrganizationAuditLogResponseSchema: GenMessage<GetOrganizationAuditLogResponse>;
6927
-
6928
6791
  /**
6929
6792
  * @generated from message raystack.frontier.v1beta1.DescribePreferencesRequest
6930
6793
  */
@@ -7447,6 +7310,10 @@ export declare const PingUserSessionRequestSchema: GenMessage<PingUserSessionReq
7447
7310
  * @generated from message raystack.frontier.v1beta1.PingUserSessionResponse
7448
7311
  */
7449
7312
  export declare type PingUserSessionResponse = Message<"raystack.frontier.v1beta1.PingUserSessionResponse"> & {
7313
+ /**
7314
+ * @generated from field: raystack.frontier.v1beta1.Session.Meta metadata = 1;
7315
+ */
7316
+ metadata?: Session_Meta;
7450
7317
  };
7451
7318
 
7452
7319
  /**
@@ -8515,35 +8382,6 @@ export declare const FrontierService: GenService<{
8515
8382
  input: typeof DeleteMetaSchemaRequestSchema;
8516
8383
  output: typeof DeleteMetaSchemaResponseSchema;
8517
8384
  },
8518
- /**
8519
- * Audit logs
8520
- *
8521
- * @generated from rpc raystack.frontier.v1beta1.FrontierService.ListOrganizationAuditLogs
8522
- * @deprecated
8523
- */
8524
- listOrganizationAuditLogs: {
8525
- methodKind: "unary";
8526
- input: typeof ListOrganizationAuditLogsRequestSchema;
8527
- output: typeof ListOrganizationAuditLogsResponseSchema;
8528
- },
8529
- /**
8530
- * @generated from rpc raystack.frontier.v1beta1.FrontierService.CreateOrganizationAuditLogs
8531
- * @deprecated
8532
- */
8533
- createOrganizationAuditLogs: {
8534
- methodKind: "unary";
8535
- input: typeof CreateOrganizationAuditLogsRequestSchema;
8536
- output: typeof CreateOrganizationAuditLogsResponseSchema;
8537
- },
8538
- /**
8539
- * @generated from rpc raystack.frontier.v1beta1.FrontierService.GetOrganizationAuditLog
8540
- * @deprecated
8541
- */
8542
- getOrganizationAuditLog: {
8543
- methodKind: "unary";
8544
- input: typeof GetOrganizationAuditLogRequestSchema;
8545
- output: typeof GetOrganizationAuditLogResponseSchema;
8546
- },
8547
8385
  /**
8548
8386
  * DescribePreferences list down all the supported preferences of entities
8549
8387
  *