@raystack/proton 0.1.0-ccaf27e487cbe97a6ac7249e7382f2d016c3f5fa → 0.1.0-d7ccfeef8ed0a304b5da3537c1b2bb5e7d99c77c

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
  /**
@@ -654,14 +654,19 @@ export declare const TotalDebitedTransactionsResponseSchema: GenMessage<TotalDeb
654
654
  */
655
655
  export declare type GetSubscriptionRequest = Message<"raystack.frontier.v1beta1.GetSubscriptionRequest"> & {
656
656
  /**
657
- * @generated from field: string org_id = 1;
657
+ * DEPRECATED: org_id will be inferred from subscription id
658
+ *
659
+ * @generated from field: string org_id = 1 [deprecated = true];
660
+ * @deprecated
658
661
  */
659
662
  orgId: string;
660
663
 
661
664
  /**
665
+ * DEPRECATED: billing_id will be inferred from subscription id
662
666
  * ID of the billing account to get the subscription for
663
667
  *
664
- * @generated from field: string billing_id = 2;
668
+ * @generated from field: string billing_id = 2 [deprecated = true];
669
+ * @deprecated
665
670
  */
666
671
  billingId: string;
667
672
 
@@ -710,9 +715,11 @@ export declare type ListSubscriptionsRequest = Message<"raystack.frontier.v1beta
710
715
  orgId: string;
711
716
 
712
717
  /**
718
+ * DEPRECATED: billing_id will be inferred from org_id
713
719
  * ID of the billing account to list subscriptions for
714
720
  *
715
- * @generated from field: string billing_id = 2;
721
+ * @generated from field: string billing_id = 2 [deprecated = true];
722
+ * @deprecated
716
723
  */
717
724
  billingId: string;
718
725
 
@@ -763,14 +770,19 @@ export declare const ListSubscriptionsResponseSchema: GenMessage<ListSubscriptio
763
770
  */
764
771
  export declare type UpdateSubscriptionRequest = Message<"raystack.frontier.v1beta1.UpdateSubscriptionRequest"> & {
765
772
  /**
766
- * @generated from field: string org_id = 1;
773
+ * DEPRECATED: org_id will be inferred from subscription id
774
+ *
775
+ * @generated from field: string org_id = 1 [deprecated = true];
776
+ * @deprecated
767
777
  */
768
778
  orgId: string;
769
779
 
770
780
  /**
781
+ * DEPRECATED: billing_id will be inferred from subscription id
771
782
  * ID of the billing account to update the subscription for
772
783
  *
773
- * @generated from field: string billing_id = 2;
784
+ * @generated from field: string billing_id = 2 [deprecated = true];
785
+ * @deprecated
774
786
  */
775
787
  billingId: string;
776
788
 
@@ -816,14 +828,19 @@ export declare const UpdateSubscriptionResponseSchema: GenMessage<UpdateSubscrip
816
828
  */
817
829
  export declare type ChangeSubscriptionRequest = Message<"raystack.frontier.v1beta1.ChangeSubscriptionRequest"> & {
818
830
  /**
819
- * @generated from field: string org_id = 1;
831
+ * DEPRECATED: org_id will be inferred from subscription id
832
+ *
833
+ * @generated from field: string org_id = 1 [deprecated = true];
834
+ * @deprecated
820
835
  */
821
836
  orgId: string;
822
837
 
823
838
  /**
839
+ * DEPRECATED: billing_id will be inferred from subscription id
824
840
  * ID of the billing account to update the subscription for
825
841
  *
826
- * @generated from field: string billing_id = 2;
842
+ * @generated from field: string billing_id = 2 [deprecated = true];
843
+ * @deprecated
827
844
  */
828
845
  billingId: string;
829
846
 
@@ -940,14 +957,19 @@ export declare const ChangeSubscriptionResponseSchema: GenMessage<ChangeSubscrip
940
957
  */
941
958
  export declare type CancelSubscriptionRequest = Message<"raystack.frontier.v1beta1.CancelSubscriptionRequest"> & {
942
959
  /**
943
- * @generated from field: string org_id = 1;
960
+ * DEPRECATED: org_id will be inferred from subscription id
961
+ *
962
+ * @generated from field: string org_id = 1 [deprecated = true];
963
+ * @deprecated
944
964
  */
945
965
  orgId: string;
946
966
 
947
967
  /**
968
+ * DEPRECATED: billing_id will be inferred from subscription id
948
969
  * ID of the billing account to update the subscription for
949
970
  *
950
- * @generated from field: string billing_id = 2;
971
+ * @generated from field: string billing_id = 2 [deprecated = true];
972
+ * @deprecated
951
973
  */
952
974
  billingId: string;
953
975
 
@@ -1113,9 +1135,11 @@ export declare type CreateCheckoutRequest = Message<"raystack.frontier.v1beta1.C
1113
1135
  orgId: string;
1114
1136
 
1115
1137
  /**
1138
+ * DEPRECATED: billing_id will be inferred from org_id
1116
1139
  * ID of the billing account to update the subscription for
1117
1140
  *
1118
- * @generated from field: string billing_id = 2;
1141
+ * @generated from field: string billing_id = 2 [deprecated = true];
1142
+ * @deprecated
1119
1143
  */
1120
1144
  billingId: string;
1121
1145
 
@@ -1185,9 +1209,11 @@ export declare type ListCheckoutsRequest = Message<"raystack.frontier.v1beta1.Li
1185
1209
  orgId: string;
1186
1210
 
1187
1211
  /**
1212
+ * DEPRECATED: billing_id will be inferred from org_id
1188
1213
  * ID of the billing account to get the subscriptions for
1189
1214
  *
1190
- * @generated from field: string billing_id = 2;
1215
+ * @generated from field: string billing_id = 2 [deprecated = true];
1216
+ * @deprecated
1191
1217
  */
1192
1218
  billingId: string;
1193
1219
  };
@@ -1221,14 +1247,18 @@ export declare const ListCheckoutsResponseSchema: GenMessage<ListCheckoutsRespon
1221
1247
  */
1222
1248
  export declare type GetCheckoutRequest = Message<"raystack.frontier.v1beta1.GetCheckoutRequest"> & {
1223
1249
  /**
1224
- * @generated from field: string org_id = 1;
1250
+ * DEPRECATED: org_id is not needed, checkout can be fetched by id alone
1251
+ *
1252
+ * @generated from field: string org_id = 1 [deprecated = true];
1253
+ * @deprecated
1225
1254
  */
1226
1255
  orgId: string;
1227
1256
 
1228
1257
  /**
1229
- * ID of the billing account to get the subscriptions for
1258
+ * DEPRECATED: billing_id is not needed, checkout can be fetched by id alone
1230
1259
  *
1231
- * @generated from field: string billing_id = 2;
1260
+ * @generated from field: string billing_id = 2 [deprecated = true];
1261
+ * @deprecated
1232
1262
  */
1233
1263
  billingId: string;
1234
1264
 
@@ -3067,48 +3097,6 @@ export declare type GetServiceUserResponse = Message<"raystack.frontier.v1beta1.
3067
3097
  */
3068
3098
  export declare const GetServiceUserResponseSchema: GenMessage<GetServiceUserResponse>;
3069
3099
 
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
3100
  /**
3113
3101
  * @generated from message raystack.frontier.v1beta1.DeleteServiceUserRequest
3114
3102
  */
@@ -6796,135 +6784,6 @@ export declare type ListMetaSchemasResponse = Message<"raystack.frontier.v1beta1
6796
6784
  */
6797
6785
  export declare const ListMetaSchemasResponseSchema: GenMessage<ListMetaSchemasResponse>;
6798
6786
 
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
6787
  /**
6929
6788
  * @generated from message raystack.frontier.v1beta1.DescribePreferencesRequest
6930
6789
  */
@@ -7447,6 +7306,10 @@ export declare const PingUserSessionRequestSchema: GenMessage<PingUserSessionReq
7447
7306
  * @generated from message raystack.frontier.v1beta1.PingUserSessionResponse
7448
7307
  */
7449
7308
  export declare type PingUserSessionResponse = Message<"raystack.frontier.v1beta1.PingUserSessionResponse"> & {
7309
+ /**
7310
+ * @generated from field: raystack.frontier.v1beta1.Session.Meta metadata = 1;
7311
+ */
7312
+ metadata?: Session_Meta;
7450
7313
  };
7451
7314
 
7452
7315
  /**
@@ -7498,9 +7361,9 @@ export declare type CreateAuditRecordRequest = Message<"raystack.frontier.v1beta
7498
7361
  /**
7499
7362
  * Request ID for tracing
7500
7363
  *
7501
- * @generated from field: string req_id = 7;
7364
+ * @generated from field: string request_id = 7;
7502
7365
  */
7503
- reqId: string;
7366
+ requestId: string;
7504
7367
 
7505
7368
  /**
7506
7369
  * Flexible metadata field for any additional data including reason, changes, etc.
@@ -8515,35 +8378,6 @@ export declare const FrontierService: GenService<{
8515
8378
  input: typeof DeleteMetaSchemaRequestSchema;
8516
8379
  output: typeof DeleteMetaSchemaResponseSchema;
8517
8380
  },
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
8381
  /**
8548
8382
  * DescribePreferences list down all the supported preferences of entities
8549
8383
  *