@raystack/proton 0.1.0-09b6d3e7c1e4b03bb30db032380c04e0524ac701 → 0.1.0-35dd68d487bfa7e7339c40e9b103ee7377aac6e6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raystack/proton",
3
- "version": "0.1.0-09b6d3e7c1e4b03bb30db032380c04e0524ac701",
3
+ "version": "0.1.0-35dd68d487bfa7e7339c40e9b103ee7377aac6e6",
4
4
  "description": "TypeScript/JavaScript client library for Raystack APIs generated from Protocol Buffer definitions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -4,7 +4,7 @@
4
4
  // @ts-nocheck
5
5
 
6
6
  import { MethodKind } from "@bufbuild/protobuf";
7
- import { AddPlatformUserRequest, AddPlatformUserResponse, AdminCreateOrganizationRequest, AdminCreateOrganizationResponse, CheckFederatedResourcePermissionRequest, CheckFederatedResourcePermissionResponse, CreatePermissionRequest, CreatePermissionResponse, CreatePreferencesRequest, CreatePreferencesResponse, CreateProspectRequest, CreateProspectResponse, CreateRoleRequest, CreateRoleResponse, CreateWebhookRequest, CreateWebhookResponse, DelegatedCheckoutRequest, DelegatedCheckoutResponse, DeletePermissionRequest, DeletePermissionResponse, DeleteProspectRequest, DeleteProspectResponse, DeleteRoleRequest, DeleteRoleResponse, DeleteWebhookRequest, DeleteWebhookResponse, GenerateInvoicesRequest, GenerateInvoicesResponse, GetBillingAccountDetailsRequest, GetBillingAccountDetailsResponse, GetProspectRequest, GetProspectResponse, ListAllBillingAccountsRequest, ListAllBillingAccountsResponse, ListAllInvoicesRequest, ListAllInvoicesResponse, ListAllOrganizationsRequest, ListAllOrganizationsResponse, ListAllServiceUsersRequest, ListAllServiceUsersResponse, ListAllUsersRequest, ListAllUsersResponse, ListGroupsRequest, ListGroupsResponse, ListOrganizationsKycRequest, ListOrganizationsKycResponse, ListPlatformUsersRequest, ListPlatformUsersResponse, ListPreferencesRequest, ListPreferencesResponse, ListProjectsRequest, ListProjectsResponse, ListProspectsRequest, ListProspectsResponse, ListRelationsRequest, ListRelationsResponse, ListResourcesRequest, ListResourcesResponse, ListWebhooksRequest, ListWebhooksResponse, RemovePlatformUserRequest, RemovePlatformUserResponse, RevertBillingUsageRequest, RevertBillingUsageResponse, SearchInvoicesRequest, SearchInvoicesResponse, SearchOrganizationInvoicesRequest, SearchOrganizationInvoicesResponse, SearchOrganizationProjectsRequest, SearchOrganizationProjectsResponse, SearchOrganizationServiceUserCredentialsRequest, SearchOrganizationServiceUserCredentialsResponse, SearchOrganizationServiceUsersRequest, SearchOrganizationServiceUsersResponse, SearchOrganizationsRequest, SearchOrganizationsResponse, SearchOrganizationTokensRequest, SearchOrganizationTokensResponse, SearchOrganizationUsersRequest, SearchOrganizationUsersResponse, SearchProjectUsersRequest, SearchProjectUsersResponse, SearchUserOrganizationsRequest, SearchUserOrganizationsResponse, SearchUserProjectsRequest, SearchUserProjectsResponse, SearchUsersRequest, SearchUsersResponse, SetOrganizationKycRequest, SetOrganizationKycResponse, UpdateBillingAccountDetailsRequest, UpdateBillingAccountDetailsResponse, UpdateBillingAccountLimitsRequest, UpdateBillingAccountLimitsResponse, UpdatePermissionRequest, UpdatePermissionResponse, UpdateProspectRequest, UpdateProspectResponse, UpdateRoleRequest, UpdateRoleResponse, UpdateWebhookRequest, UpdateWebhookResponse } from "./admin_pb.js";
7
+ import { AddPlatformUserRequest, AddPlatformUserResponse, AdminCreateOrganizationRequest, AdminCreateOrganizationResponse, CheckFederatedResourcePermissionRequest, CheckFederatedResourcePermissionResponse, CreatePermissionRequest, CreatePermissionResponse, CreatePreferencesRequest, CreatePreferencesResponse, CreateProspectRequest, CreateProspectResponse, CreateRoleRequest, CreateRoleResponse, CreateWebhookRequest, CreateWebhookResponse, DelegatedCheckoutRequest, DelegatedCheckoutResponse, DeletePermissionRequest, DeletePermissionResponse, DeleteProspectRequest, DeleteProspectResponse, DeleteRoleRequest, DeleteRoleResponse, DeleteWebhookRequest, DeleteWebhookResponse, GenerateInvoicesRequest, GenerateInvoicesResponse, GetBillingAccountDetailsRequest, GetBillingAccountDetailsResponse, GetCurrentAdminUserRequest, GetCurrentAdminUserResponse, GetProspectRequest, GetProspectResponse, ListAllBillingAccountsRequest, ListAllBillingAccountsResponse, ListAllInvoicesRequest, ListAllInvoicesResponse, ListAllOrganizationsRequest, ListAllOrganizationsResponse, ListAllServiceUsersRequest, ListAllServiceUsersResponse, ListAllUsersRequest, ListAllUsersResponse, ListGroupsRequest, ListGroupsResponse, ListOrganizationsKycRequest, ListOrganizationsKycResponse, ListPlatformUsersRequest, ListPlatformUsersResponse, ListPreferencesRequest, ListPreferencesResponse, ListProjectsRequest, ListProjectsResponse, ListProspectsRequest, ListProspectsResponse, ListRelationsRequest, ListRelationsResponse, ListResourcesRequest, ListResourcesResponse, ListWebhooksRequest, ListWebhooksResponse, RemovePlatformUserRequest, RemovePlatformUserResponse, RevertBillingUsageRequest, RevertBillingUsageResponse, SearchInvoicesRequest, SearchInvoicesResponse, SearchOrganizationInvoicesRequest, SearchOrganizationInvoicesResponse, SearchOrganizationProjectsRequest, SearchOrganizationProjectsResponse, SearchOrganizationServiceUserCredentialsRequest, SearchOrganizationServiceUserCredentialsResponse, SearchOrganizationServiceUsersRequest, SearchOrganizationServiceUsersResponse, SearchOrganizationsRequest, SearchOrganizationsResponse, SearchOrganizationTokensRequest, SearchOrganizationTokensResponse, SearchOrganizationUsersRequest, SearchOrganizationUsersResponse, SearchProjectUsersRequest, SearchProjectUsersResponse, SearchUserOrganizationsRequest, SearchUserOrganizationsResponse, SearchUserProjectsRequest, SearchUserProjectsResponse, SearchUsersRequest, SearchUsersResponse, SetOrganizationKycRequest, SetOrganizationKycResponse, UpdateBillingAccountDetailsRequest, UpdateBillingAccountDetailsResponse, UpdateBillingAccountLimitsRequest, UpdateBillingAccountLimitsResponse, UpdatePermissionRequest, UpdatePermissionResponse, UpdateProspectRequest, UpdateProspectResponse, UpdateRoleRequest, UpdateRoleResponse, UpdateWebhookRequest, UpdateWebhookResponse } from "./admin_pb.js";
8
8
 
9
9
  /**
10
10
  * Users
@@ -754,3 +754,19 @@ export const searchInvoices = {
754
754
  typeName: "raystack.frontier.v1beta1.AdminService"
755
755
  }
756
756
  } as const;
757
+
758
+ /**
759
+ * Admin Self
760
+ *
761
+ * @generated from rpc raystack.frontier.v1beta1.AdminService.GetCurrentAdminUser
762
+ */
763
+ export const getCurrentAdminUser = {
764
+ localName: "getCurrentAdminUser",
765
+ name: "GetCurrentAdminUser",
766
+ kind: MethodKind.Unary,
767
+ I: GetCurrentAdminUserRequest,
768
+ O: GetCurrentAdminUserResponse,
769
+ service: {
770
+ typeName: "raystack.frontier.v1beta1.AdminService"
771
+ }
772
+ } as const;
@@ -4,6 +4,8 @@
4
4
  import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
5
5
  import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
6
6
  import { AdminService } from "./admin";
7
+ import type { GetCurrentAdminUserResponse } from "./admin";
8
+ import type { GetCurrentAdminUserRequest } from "./admin";
7
9
  import type { SearchInvoicesResponse } from "./admin";
8
10
  import type { SearchInvoicesRequest } from "./admin";
9
11
  import type { DeleteProspectResponse } from "./admin";
@@ -394,6 +396,12 @@ export interface IAdminServiceClient {
394
396
  * @generated from protobuf rpc: SearchInvoices
395
397
  */
396
398
  searchInvoices(input: SearchInvoicesRequest, options?: RpcOptions): UnaryCall<SearchInvoicesRequest, SearchInvoicesResponse>;
399
+ /**
400
+ * Admin Self
401
+ *
402
+ * @generated from protobuf rpc: GetCurrentAdminUser
403
+ */
404
+ getCurrentAdminUser(input: GetCurrentAdminUserRequest, options?: RpcOptions): UnaryCall<GetCurrentAdminUserRequest, GetCurrentAdminUserResponse>;
397
405
  }
398
406
  /**
399
407
  * @generated from protobuf service raystack.frontier.v1beta1.AdminService
@@ -846,4 +854,13 @@ export class AdminServiceClient implements IAdminServiceClient, ServiceInfo {
846
854
  const method = this.methods[55], opt = this._transport.mergeOptions(options);
847
855
  return stackIntercept<SearchInvoicesRequest, SearchInvoicesResponse>("unary", this._transport, method, opt, input);
848
856
  }
857
+ /**
858
+ * Admin Self
859
+ *
860
+ * @generated from protobuf rpc: GetCurrentAdminUser
861
+ */
862
+ getCurrentAdminUser(input: GetCurrentAdminUserRequest, options?: RpcOptions): UnaryCall<GetCurrentAdminUserRequest, GetCurrentAdminUserResponse> {
863
+ const method = this.methods[56], opt = this._transport.mergeOptions(options);
864
+ return stackIntercept<GetCurrentAdminUserRequest, GetCurrentAdminUserResponse>("unary", this._transport, method, opt, input);
865
+ }
849
866
  }
@@ -1902,6 +1902,24 @@ export interface SearchOrganizationServiceUsersResponse_OrganizationServiceUser
1902
1902
  */
1903
1903
  createdAt?: Timestamp;
1904
1904
  }
1905
+ /**
1906
+ * @generated from protobuf message raystack.frontier.v1beta1.GetCurrentAdminUserRequest
1907
+ */
1908
+ export interface GetCurrentAdminUserRequest {
1909
+ }
1910
+ /**
1911
+ * @generated from protobuf message raystack.frontier.v1beta1.GetCurrentAdminUserResponse
1912
+ */
1913
+ export interface GetCurrentAdminUserResponse {
1914
+ /**
1915
+ * @generated from protobuf field: raystack.frontier.v1beta1.User user = 1
1916
+ */
1917
+ user?: User;
1918
+ /**
1919
+ * @generated from protobuf field: raystack.frontier.v1beta1.ServiceUser service_user = 2
1920
+ */
1921
+ serviceUser?: ServiceUser;
1922
+ }
1905
1923
  // @generated message type with reflection information, may provide speed optimized methods
1906
1924
  class ListAllUsersRequest$Type extends MessageType<ListAllUsersRequest> {
1907
1925
  constructor() {
@@ -8944,6 +8962,97 @@ class SearchOrganizationServiceUsersResponse_OrganizationServiceUser$Type extend
8944
8962
  * @generated MessageType for protobuf message raystack.frontier.v1beta1.SearchOrganizationServiceUsersResponse.OrganizationServiceUser
8945
8963
  */
8946
8964
  export const SearchOrganizationServiceUsersResponse_OrganizationServiceUser = new SearchOrganizationServiceUsersResponse_OrganizationServiceUser$Type();
8965
+ // @generated message type with reflection information, may provide speed optimized methods
8966
+ class GetCurrentAdminUserRequest$Type extends MessageType<GetCurrentAdminUserRequest> {
8967
+ constructor() {
8968
+ super("raystack.frontier.v1beta1.GetCurrentAdminUserRequest", []);
8969
+ }
8970
+ create(value?: PartialMessage<GetCurrentAdminUserRequest>): GetCurrentAdminUserRequest {
8971
+ const message = globalThis.Object.create((this.messagePrototype!));
8972
+ if (value !== undefined)
8973
+ reflectionMergePartial<GetCurrentAdminUserRequest>(this, message, value);
8974
+ return message;
8975
+ }
8976
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetCurrentAdminUserRequest): GetCurrentAdminUserRequest {
8977
+ let message = target ?? this.create(), end = reader.pos + length;
8978
+ while (reader.pos < end) {
8979
+ let [fieldNo, wireType] = reader.tag();
8980
+ switch (fieldNo) {
8981
+ default:
8982
+ let u = options.readUnknownField;
8983
+ if (u === "throw")
8984
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
8985
+ let d = reader.skip(wireType);
8986
+ if (u !== false)
8987
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
8988
+ }
8989
+ }
8990
+ return message;
8991
+ }
8992
+ internalBinaryWrite(message: GetCurrentAdminUserRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
8993
+ let u = options.writeUnknownFields;
8994
+ if (u !== false)
8995
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
8996
+ return writer;
8997
+ }
8998
+ }
8999
+ /**
9000
+ * @generated MessageType for protobuf message raystack.frontier.v1beta1.GetCurrentAdminUserRequest
9001
+ */
9002
+ export const GetCurrentAdminUserRequest = new GetCurrentAdminUserRequest$Type();
9003
+ // @generated message type with reflection information, may provide speed optimized methods
9004
+ class GetCurrentAdminUserResponse$Type extends MessageType<GetCurrentAdminUserResponse> {
9005
+ constructor() {
9006
+ super("raystack.frontier.v1beta1.GetCurrentAdminUserResponse", [
9007
+ { no: 1, name: "user", kind: "message", T: () => User },
9008
+ { no: 2, name: "service_user", kind: "message", T: () => ServiceUser }
9009
+ ]);
9010
+ }
9011
+ create(value?: PartialMessage<GetCurrentAdminUserResponse>): GetCurrentAdminUserResponse {
9012
+ const message = globalThis.Object.create((this.messagePrototype!));
9013
+ if (value !== undefined)
9014
+ reflectionMergePartial<GetCurrentAdminUserResponse>(this, message, value);
9015
+ return message;
9016
+ }
9017
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetCurrentAdminUserResponse): GetCurrentAdminUserResponse {
9018
+ let message = target ?? this.create(), end = reader.pos + length;
9019
+ while (reader.pos < end) {
9020
+ let [fieldNo, wireType] = reader.tag();
9021
+ switch (fieldNo) {
9022
+ case /* raystack.frontier.v1beta1.User user */ 1:
9023
+ message.user = User.internalBinaryRead(reader, reader.uint32(), options, message.user);
9024
+ break;
9025
+ case /* raystack.frontier.v1beta1.ServiceUser service_user */ 2:
9026
+ message.serviceUser = ServiceUser.internalBinaryRead(reader, reader.uint32(), options, message.serviceUser);
9027
+ break;
9028
+ default:
9029
+ let u = options.readUnknownField;
9030
+ if (u === "throw")
9031
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
9032
+ let d = reader.skip(wireType);
9033
+ if (u !== false)
9034
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
9035
+ }
9036
+ }
9037
+ return message;
9038
+ }
9039
+ internalBinaryWrite(message: GetCurrentAdminUserResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
9040
+ /* raystack.frontier.v1beta1.User user = 1; */
9041
+ if (message.user)
9042
+ User.internalBinaryWrite(message.user, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
9043
+ /* raystack.frontier.v1beta1.ServiceUser service_user = 2; */
9044
+ if (message.serviceUser)
9045
+ ServiceUser.internalBinaryWrite(message.serviceUser, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
9046
+ let u = options.writeUnknownFields;
9047
+ if (u !== false)
9048
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
9049
+ return writer;
9050
+ }
9051
+ }
9052
+ /**
9053
+ * @generated MessageType for protobuf message raystack.frontier.v1beta1.GetCurrentAdminUserResponse
9054
+ */
9055
+ export const GetCurrentAdminUserResponse = new GetCurrentAdminUserResponse$Type();
8947
9056
  /**
8948
9057
  * @generated ServiceType for protobuf service raystack.frontier.v1beta1.AdminService
8949
9058
  */
@@ -9003,5 +9112,6 @@ export const AdminService = new ServiceType("raystack.frontier.v1beta1.AdminServ
9003
9112
  { name: "GetProspect", options: { "google.api.http": { get: "/v1beta1/admin/prospects/{id}" }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Prospect"], summary: "Get prospect", description: "Get prospect by ID" } }, I: GetProspectRequest, O: GetProspectResponse },
9004
9113
  { name: "UpdateProspect", options: { "google.api.http": { put: "/v1beta1/admin/prospects/{id}", body: "*" }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Prospect"], summary: "Update prospect", description: "Update prospect for given ID" } }, I: UpdateProspectRequest, O: UpdateProspectResponse },
9005
9114
  { name: "DeleteProspect", options: { "google.api.http": { delete: "/v1beta1/admin/prospects/{id}" }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Prospect"], summary: "Delete prospect", description: "Delete prospect for given ID" } }, I: DeleteProspectRequest, O: DeleteProspectResponse },
9006
- { name: "SearchInvoices", options: { "google.api.http": { post: "/v1beta1/admin/invoices/search", body: "query" }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["invoice"], summary: "Search invoices across all organizations" } }, I: SearchInvoicesRequest, O: SearchInvoicesResponse }
9115
+ { name: "SearchInvoices", options: { "google.api.http": { post: "/v1beta1/admin/invoices/search", body: "query" }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["invoice"], summary: "Search invoices across all organizations" } }, I: SearchInvoicesRequest, O: SearchInvoicesResponse },
9116
+ { name: "GetCurrentAdminUser", options: { "google.api.http": { get: "/v1beta1/admin/users/self" }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["User"], summary: "Get current admin user", description: "Returns the current authenticated admin user profile. Returns 403 Forbidden if the user is not an admin." } }, I: GetCurrentAdminUserRequest, O: GetCurrentAdminUserResponse }
9007
9117
  ]);
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
 
6
- import { AddPlatformUserRequest, AddPlatformUserResponse, AdminCreateOrganizationRequest, AdminCreateOrganizationResponse, CheckFederatedResourcePermissionRequest, CheckFederatedResourcePermissionResponse, CreatePermissionRequest, CreatePermissionResponse, CreatePreferencesRequest, CreatePreferencesResponse, CreateProspectRequest, CreateProspectResponse, CreateRoleRequest, CreateRoleResponse, CreateWebhookRequest, CreateWebhookResponse, DelegatedCheckoutRequest, DelegatedCheckoutResponse, DeletePermissionRequest, DeletePermissionResponse, DeleteProspectRequest, DeleteProspectResponse, DeleteRoleRequest, DeleteRoleResponse, DeleteWebhookRequest, DeleteWebhookResponse, ExportOrganizationProjectsRequest, ExportOrganizationTokensRequest, ExportOrganizationUsersRequest, ExportUsersRequest, GenerateInvoicesRequest, GenerateInvoicesResponse, GetBillingAccountDetailsRequest, GetBillingAccountDetailsResponse, GetProspectRequest, GetProspectResponse, ListAllBillingAccountsRequest, ListAllBillingAccountsResponse, ListAllInvoicesRequest, ListAllInvoicesResponse, ListAllOrganizationsRequest, ListAllOrganizationsResponse, ListAllServiceUsersRequest, ListAllServiceUsersResponse, ListAllUsersRequest, ListAllUsersResponse, ListGroupsRequest, ListGroupsResponse, ListOrganizationsKycRequest, ListOrganizationsKycResponse, ListPlatformUsersRequest, ListPlatformUsersResponse, ListPreferencesRequest, ListPreferencesResponse, ListProjectsRequest, ListProjectsResponse, ListProspectsRequest, ListProspectsResponse, ListRelationsRequest, ListRelationsResponse, ListResourcesRequest, ListResourcesResponse, ListWebhooksRequest, ListWebhooksResponse, RemovePlatformUserRequest, RemovePlatformUserResponse, RevertBillingUsageRequest, RevertBillingUsageResponse, SearchInvoicesRequest, SearchInvoicesResponse, SearchOrganizationInvoicesRequest, SearchOrganizationInvoicesResponse, SearchOrganizationProjectsRequest, SearchOrganizationProjectsResponse, SearchOrganizationServiceUserCredentialsRequest, SearchOrganizationServiceUserCredentialsResponse, SearchOrganizationServiceUsersRequest, SearchOrganizationServiceUsersResponse, SearchOrganizationsRequest, SearchOrganizationsResponse, SearchOrganizationTokensRequest, SearchOrganizationTokensResponse, SearchOrganizationUsersRequest, SearchOrganizationUsersResponse, SearchProjectUsersRequest, SearchProjectUsersResponse, SearchUserOrganizationsRequest, SearchUserOrganizationsResponse, SearchUserProjectsRequest, SearchUserProjectsResponse, SearchUsersRequest, SearchUsersResponse, SetOrganizationKycRequest, SetOrganizationKycResponse, UpdateBillingAccountDetailsRequest, UpdateBillingAccountDetailsResponse, UpdateBillingAccountLimitsRequest, UpdateBillingAccountLimitsResponse, UpdatePermissionRequest, UpdatePermissionResponse, UpdateProspectRequest, UpdateProspectResponse, UpdateRoleRequest, UpdateRoleResponse, UpdateWebhookRequest, UpdateWebhookResponse } from "./admin_pb.js";
6
+ import { AddPlatformUserRequest, AddPlatformUserResponse, AdminCreateOrganizationRequest, AdminCreateOrganizationResponse, CheckFederatedResourcePermissionRequest, CheckFederatedResourcePermissionResponse, CreatePermissionRequest, CreatePermissionResponse, CreatePreferencesRequest, CreatePreferencesResponse, CreateProspectRequest, CreateProspectResponse, CreateRoleRequest, CreateRoleResponse, CreateWebhookRequest, CreateWebhookResponse, DelegatedCheckoutRequest, DelegatedCheckoutResponse, DeletePermissionRequest, DeletePermissionResponse, DeleteProspectRequest, DeleteProspectResponse, DeleteRoleRequest, DeleteRoleResponse, DeleteWebhookRequest, DeleteWebhookResponse, ExportOrganizationProjectsRequest, ExportOrganizationTokensRequest, ExportOrganizationUsersRequest, ExportUsersRequest, GenerateInvoicesRequest, GenerateInvoicesResponse, GetBillingAccountDetailsRequest, GetBillingAccountDetailsResponse, GetCurrentAdminUserRequest, GetCurrentAdminUserResponse, GetProspectRequest, GetProspectResponse, ListAllBillingAccountsRequest, ListAllBillingAccountsResponse, ListAllInvoicesRequest, ListAllInvoicesResponse, ListAllOrganizationsRequest, ListAllOrganizationsResponse, ListAllServiceUsersRequest, ListAllServiceUsersResponse, ListAllUsersRequest, ListAllUsersResponse, ListGroupsRequest, ListGroupsResponse, ListOrganizationsKycRequest, ListOrganizationsKycResponse, ListPlatformUsersRequest, ListPlatformUsersResponse, ListPreferencesRequest, ListPreferencesResponse, ListProjectsRequest, ListProjectsResponse, ListProspectsRequest, ListProspectsResponse, ListRelationsRequest, ListRelationsResponse, ListResourcesRequest, ListResourcesResponse, ListWebhooksRequest, ListWebhooksResponse, RemovePlatformUserRequest, RemovePlatformUserResponse, RevertBillingUsageRequest, RevertBillingUsageResponse, SearchInvoicesRequest, SearchInvoicesResponse, SearchOrganizationInvoicesRequest, SearchOrganizationInvoicesResponse, SearchOrganizationProjectsRequest, SearchOrganizationProjectsResponse, SearchOrganizationServiceUserCredentialsRequest, SearchOrganizationServiceUserCredentialsResponse, SearchOrganizationServiceUsersRequest, SearchOrganizationServiceUsersResponse, SearchOrganizationsRequest, SearchOrganizationsResponse, SearchOrganizationTokensRequest, SearchOrganizationTokensResponse, SearchOrganizationUsersRequest, SearchOrganizationUsersResponse, SearchProjectUsersRequest, SearchProjectUsersResponse, SearchUserOrganizationsRequest, SearchUserOrganizationsResponse, SearchUserProjectsRequest, SearchUserProjectsResponse, SearchUsersRequest, SearchUsersResponse, SetOrganizationKycRequest, SetOrganizationKycResponse, UpdateBillingAccountDetailsRequest, UpdateBillingAccountDetailsResponse, UpdateBillingAccountLimitsRequest, UpdateBillingAccountLimitsResponse, UpdatePermissionRequest, UpdatePermissionResponse, UpdateProspectRequest, UpdateProspectResponse, UpdateRoleRequest, UpdateRoleResponse, UpdateWebhookRequest, UpdateWebhookResponse } from "./admin_pb.js";
7
7
  import { MethodKind } from "@bufbuild/protobuf";
8
8
  import { ExportOrganizationsRequest } from "./models_pb.js";
9
9
  import { HttpBody } from "../../../google/api/httpbody_pb.js";
@@ -568,6 +568,17 @@ export const AdminService = {
568
568
  O: SearchInvoicesResponse,
569
569
  kind: MethodKind.Unary,
570
570
  },
571
+ /**
572
+ * Admin Self
573
+ *
574
+ * @generated from rpc raystack.frontier.v1beta1.AdminService.GetCurrentAdminUser
575
+ */
576
+ getCurrentAdminUser: {
577
+ name: "GetCurrentAdminUser",
578
+ I: GetCurrentAdminUserRequest,
579
+ O: GetCurrentAdminUserResponse,
580
+ kind: MethodKind.Unary,
581
+ },
571
582
  }
572
583
  } as const;
573
584
 
@@ -5613,3 +5613,77 @@ export class SearchOrganizationServiceUsersResponse_OrganizationServiceUser exte
5613
5613
  }
5614
5614
  }
5615
5615
 
5616
+ /**
5617
+ * @generated from message raystack.frontier.v1beta1.GetCurrentAdminUserRequest
5618
+ */
5619
+ export class GetCurrentAdminUserRequest extends Message<GetCurrentAdminUserRequest> {
5620
+ constructor(data?: PartialMessage<GetCurrentAdminUserRequest>) {
5621
+ super();
5622
+ proto3.util.initPartial(data, this);
5623
+ }
5624
+
5625
+ static readonly runtime: typeof proto3 = proto3;
5626
+ static readonly typeName = "raystack.frontier.v1beta1.GetCurrentAdminUserRequest";
5627
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
5628
+ ]);
5629
+
5630
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetCurrentAdminUserRequest {
5631
+ return new GetCurrentAdminUserRequest().fromBinary(bytes, options);
5632
+ }
5633
+
5634
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetCurrentAdminUserRequest {
5635
+ return new GetCurrentAdminUserRequest().fromJson(jsonValue, options);
5636
+ }
5637
+
5638
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetCurrentAdminUserRequest {
5639
+ return new GetCurrentAdminUserRequest().fromJsonString(jsonString, options);
5640
+ }
5641
+
5642
+ static equals(a: GetCurrentAdminUserRequest | PlainMessage<GetCurrentAdminUserRequest> | undefined, b: GetCurrentAdminUserRequest | PlainMessage<GetCurrentAdminUserRequest> | undefined): boolean {
5643
+ return proto3.util.equals(GetCurrentAdminUserRequest, a, b);
5644
+ }
5645
+ }
5646
+
5647
+ /**
5648
+ * @generated from message raystack.frontier.v1beta1.GetCurrentAdminUserResponse
5649
+ */
5650
+ export class GetCurrentAdminUserResponse extends Message<GetCurrentAdminUserResponse> {
5651
+ /**
5652
+ * @generated from field: raystack.frontier.v1beta1.User user = 1;
5653
+ */
5654
+ user?: User;
5655
+
5656
+ /**
5657
+ * @generated from field: raystack.frontier.v1beta1.ServiceUser service_user = 2;
5658
+ */
5659
+ serviceUser?: ServiceUser;
5660
+
5661
+ constructor(data?: PartialMessage<GetCurrentAdminUserResponse>) {
5662
+ super();
5663
+ proto3.util.initPartial(data, this);
5664
+ }
5665
+
5666
+ static readonly runtime: typeof proto3 = proto3;
5667
+ static readonly typeName = "raystack.frontier.v1beta1.GetCurrentAdminUserResponse";
5668
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
5669
+ { no: 1, name: "user", kind: "message", T: User },
5670
+ { no: 2, name: "service_user", kind: "message", T: ServiceUser },
5671
+ ]);
5672
+
5673
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetCurrentAdminUserResponse {
5674
+ return new GetCurrentAdminUserResponse().fromBinary(bytes, options);
5675
+ }
5676
+
5677
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetCurrentAdminUserResponse {
5678
+ return new GetCurrentAdminUserResponse().fromJson(jsonValue, options);
5679
+ }
5680
+
5681
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetCurrentAdminUserResponse {
5682
+ return new GetCurrentAdminUserResponse().fromJsonString(jsonString, options);
5683
+ }
5684
+
5685
+ static equals(a: GetCurrentAdminUserResponse | PlainMessage<GetCurrentAdminUserResponse> | undefined, b: GetCurrentAdminUserResponse | PlainMessage<GetCurrentAdminUserResponse> | undefined): boolean {
5686
+ return proto3.util.equals(GetCurrentAdminUserResponse, a, b);
5687
+ }
5688
+ }
5689
+