@raystack/proton 0.1.0-2dbafa5913a214851fdc4f1beefbe27c4a6de55a → 0.1.0-434b8aec0c95625a6633f4e890be311d3e0fefef

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, 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, Subscription, Subscription_Phase, Usage, User } from "./models_pb";
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";
8
8
  import type { Timestamp } from "@bufbuild/protobuf/wkt";
9
9
 
10
10
  /**
@@ -7375,6 +7375,170 @@ export declare type CreateProspectPublicResponse = Message<"raystack.frontier.v1
7375
7375
  */
7376
7376
  export declare const CreateProspectPublicResponseSchema: GenMessage<CreateProspectPublicResponse>;
7377
7377
 
7378
+ /**
7379
+ * @generated from message raystack.frontier.v1beta1.ListSessionsRequest
7380
+ */
7381
+ export declare type ListSessionsRequest = Message<"raystack.frontier.v1beta1.ListSessionsRequest"> & {
7382
+ };
7383
+
7384
+ /**
7385
+ * Describes the message raystack.frontier.v1beta1.ListSessionsRequest.
7386
+ * Use `create(ListSessionsRequestSchema)` to create a new message.
7387
+ */
7388
+ export declare const ListSessionsRequestSchema: GenMessage<ListSessionsRequest>;
7389
+
7390
+ /**
7391
+ * @generated from message raystack.frontier.v1beta1.ListSessionsResponse
7392
+ */
7393
+ export declare type ListSessionsResponse = Message<"raystack.frontier.v1beta1.ListSessionsResponse"> & {
7394
+ /**
7395
+ * @generated from field: repeated raystack.frontier.v1beta1.Session sessions = 1;
7396
+ */
7397
+ sessions: Session[];
7398
+ };
7399
+
7400
+ /**
7401
+ * Describes the message raystack.frontier.v1beta1.ListSessionsResponse.
7402
+ * Use `create(ListSessionsResponseSchema)` to create a new message.
7403
+ */
7404
+ export declare const ListSessionsResponseSchema: GenMessage<ListSessionsResponse>;
7405
+
7406
+ /**
7407
+ * @generated from message raystack.frontier.v1beta1.RevokeSessionRequest
7408
+ */
7409
+ export declare type RevokeSessionRequest = Message<"raystack.frontier.v1beta1.RevokeSessionRequest"> & {
7410
+ /**
7411
+ * @generated from field: string session_id = 1;
7412
+ */
7413
+ sessionId: string;
7414
+ };
7415
+
7416
+ /**
7417
+ * Describes the message raystack.frontier.v1beta1.RevokeSessionRequest.
7418
+ * Use `create(RevokeSessionRequestSchema)` to create a new message.
7419
+ */
7420
+ export declare const RevokeSessionRequestSchema: GenMessage<RevokeSessionRequest>;
7421
+
7422
+ /**
7423
+ * @generated from message raystack.frontier.v1beta1.RevokeSessionResponse
7424
+ */
7425
+ export declare type RevokeSessionResponse = Message<"raystack.frontier.v1beta1.RevokeSessionResponse"> & {
7426
+ };
7427
+
7428
+ /**
7429
+ * Describes the message raystack.frontier.v1beta1.RevokeSessionResponse.
7430
+ * Use `create(RevokeSessionResponseSchema)` to create a new message.
7431
+ */
7432
+ export declare const RevokeSessionResponseSchema: GenMessage<RevokeSessionResponse>;
7433
+
7434
+ /**
7435
+ * @generated from message raystack.frontier.v1beta1.PingUserSessionRequest
7436
+ */
7437
+ export declare type PingUserSessionRequest = Message<"raystack.frontier.v1beta1.PingUserSessionRequest"> & {
7438
+ };
7439
+
7440
+ /**
7441
+ * Describes the message raystack.frontier.v1beta1.PingUserSessionRequest.
7442
+ * Use `create(PingUserSessionRequestSchema)` to create a new message.
7443
+ */
7444
+ export declare const PingUserSessionRequestSchema: GenMessage<PingUserSessionRequest>;
7445
+
7446
+ /**
7447
+ * @generated from message raystack.frontier.v1beta1.PingUserSessionResponse
7448
+ */
7449
+ export declare type PingUserSessionResponse = Message<"raystack.frontier.v1beta1.PingUserSessionResponse"> & {
7450
+ };
7451
+
7452
+ /**
7453
+ * Describes the message raystack.frontier.v1beta1.PingUserSessionResponse.
7454
+ * Use `create(PingUserSessionResponseSchema)` to create a new message.
7455
+ */
7456
+ export declare const PingUserSessionResponseSchema: GenMessage<PingUserSessionResponse>;
7457
+
7458
+ /**
7459
+ * @generated from message raystack.frontier.v1beta1.CreateAuditRecordRequest
7460
+ */
7461
+ export declare type CreateAuditRecordRequest = Message<"raystack.frontier.v1beta1.CreateAuditRecordRequest"> & {
7462
+ /**
7463
+ * @generated from field: raystack.frontier.v1beta1.AuditRecordActor actor = 1;
7464
+ */
7465
+ actor?: AuditRecordActor;
7466
+
7467
+ /**
7468
+ * @generated from field: string event = 2;
7469
+ */
7470
+ event: string;
7471
+
7472
+ /**
7473
+ * Base resource on which this change happened
7474
+ *
7475
+ * @generated from field: raystack.frontier.v1beta1.AuditRecordResource resource = 3;
7476
+ */
7477
+ resource?: AuditRecordResource;
7478
+
7479
+ /**
7480
+ * Related resource info (optional)
7481
+ *
7482
+ * @generated from field: raystack.frontier.v1beta1.AuditRecordTarget target = 4;
7483
+ */
7484
+ target?: AuditRecordTarget;
7485
+
7486
+ /**
7487
+ * When the event occurred
7488
+ *
7489
+ * @generated from field: google.protobuf.Timestamp occurred_at = 5;
7490
+ */
7491
+ occurredAt?: Timestamp;
7492
+
7493
+ /**
7494
+ * @generated from field: string org_id = 6;
7495
+ */
7496
+ orgId: string;
7497
+
7498
+ /**
7499
+ * Request ID for tracing
7500
+ *
7501
+ * @generated from field: string request_id = 7;
7502
+ */
7503
+ requestId: string;
7504
+
7505
+ /**
7506
+ * Flexible metadata field for any additional data including reason, changes, etc.
7507
+ *
7508
+ * @generated from field: google.protobuf.Struct metadata = 8;
7509
+ */
7510
+ metadata?: JsonObject;
7511
+
7512
+ /**
7513
+ * Idempotency key to prevent duplicate audit records. Can be used for storing external id.
7514
+ *
7515
+ * @generated from field: string idempotency_key = 9;
7516
+ */
7517
+ idempotencyKey: string;
7518
+ };
7519
+
7520
+ /**
7521
+ * Describes the message raystack.frontier.v1beta1.CreateAuditRecordRequest.
7522
+ * Use `create(CreateAuditRecordRequestSchema)` to create a new message.
7523
+ */
7524
+ export declare const CreateAuditRecordRequestSchema: GenMessage<CreateAuditRecordRequest>;
7525
+
7526
+ /**
7527
+ * @generated from message raystack.frontier.v1beta1.CreateAuditRecordResponse
7528
+ */
7529
+ export declare type CreateAuditRecordResponse = Message<"raystack.frontier.v1beta1.CreateAuditRecordResponse"> & {
7530
+ /**
7531
+ * @generated from field: raystack.frontier.v1beta1.AuditRecord audit_record = 1;
7532
+ */
7533
+ auditRecord?: AuditRecord;
7534
+ };
7535
+
7536
+ /**
7537
+ * Describes the message raystack.frontier.v1beta1.CreateAuditRecordResponse.
7538
+ * Use `create(CreateAuditRecordResponseSchema)` to create a new message.
7539
+ */
7540
+ export declare const CreateAuditRecordResponseSchema: GenMessage<CreateAuditRecordResponse>;
7541
+
7378
7542
  /**
7379
7543
  * @generated from service raystack.frontier.v1beta1.FrontierService
7380
7544
  */
@@ -8239,6 +8403,36 @@ export declare const FrontierService: GenService<{
8239
8403
  input: typeof GetJWKsRequestSchema;
8240
8404
  output: typeof GetJWKsResponseSchema;
8241
8405
  },
8406
+ /**
8407
+ * Returns a list of all active sessions for the current authenticated user.
8408
+ *
8409
+ * @generated from rpc raystack.frontier.v1beta1.FrontierService.ListSessions
8410
+ */
8411
+ listSessions: {
8412
+ methodKind: "unary";
8413
+ input: typeof ListSessionsRequestSchema;
8414
+ output: typeof ListSessionsResponseSchema;
8415
+ },
8416
+ /**
8417
+ * Revoke a specific session for the current authenticated user.
8418
+ *
8419
+ * @generated from rpc raystack.frontier.v1beta1.FrontierService.RevokeSession
8420
+ */
8421
+ revokeSession: {
8422
+ methodKind: "unary";
8423
+ input: typeof RevokeSessionRequestSchema;
8424
+ output: typeof RevokeSessionResponseSchema;
8425
+ },
8426
+ /**
8427
+ * Ping user current active session.
8428
+ *
8429
+ * @generated from rpc raystack.frontier.v1beta1.FrontierService.PingUserSession
8430
+ */
8431
+ pingUserSession: {
8432
+ methodKind: "unary";
8433
+ input: typeof PingUserSessionRequestSchema;
8434
+ output: typeof PingUserSessionResponseSchema;
8435
+ },
8242
8436
  /**
8243
8437
  * @generated from rpc raystack.frontier.v1beta1.FrontierService.ListAuthStrategies
8244
8438
  */
@@ -8325,6 +8519,7 @@ export declare const FrontierService: GenService<{
8325
8519
  * Audit logs
8326
8520
  *
8327
8521
  * @generated from rpc raystack.frontier.v1beta1.FrontierService.ListOrganizationAuditLogs
8522
+ * @deprecated
8328
8523
  */
8329
8524
  listOrganizationAuditLogs: {
8330
8525
  methodKind: "unary";
@@ -8333,6 +8528,7 @@ export declare const FrontierService: GenService<{
8333
8528
  },
8334
8529
  /**
8335
8530
  * @generated from rpc raystack.frontier.v1beta1.FrontierService.CreateOrganizationAuditLogs
8531
+ * @deprecated
8336
8532
  */
8337
8533
  createOrganizationAuditLogs: {
8338
8534
  methodKind: "unary";
@@ -8341,6 +8537,7 @@ export declare const FrontierService: GenService<{
8341
8537
  },
8342
8538
  /**
8343
8539
  * @generated from rpc raystack.frontier.v1beta1.FrontierService.GetOrganizationAuditLog
8540
+ * @deprecated
8344
8541
  */
8345
8542
  getOrganizationAuditLog: {
8346
8543
  methodKind: "unary";
@@ -8769,5 +8966,15 @@ export declare const FrontierService: GenService<{
8769
8966
  input: typeof CreateProspectPublicRequestSchema;
8770
8967
  output: typeof CreateProspectPublicResponseSchema;
8771
8968
  },
8969
+ /**
8970
+ * Audit Records
8971
+ *
8972
+ * @generated from rpc raystack.frontier.v1beta1.FrontierService.CreateAuditRecord
8973
+ */
8974
+ createAuditRecord: {
8975
+ methodKind: "unary";
8976
+ input: typeof CreateAuditRecordRequestSchema;
8977
+ output: typeof CreateAuditRecordResponseSchema;
8978
+ },
8772
8979
  }>;
8773
8980