@slipway-systems/sdk 0.4.0 → 0.6.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/dist/gen/slipway/v1/billing_pb.d.ts +13 -0
- package/dist/gen/slipway/v1/billing_pb.js +1 -1
- package/dist/gen/slipway/v1/cli_login_pb.d.ts +104 -0
- package/dist/gen/slipway/v1/cli_login_pb.js +34 -0
- package/dist/gen/slipway/v1/deploy_pb.d.ts +116 -1
- package/dist/gen/slipway/v1/deploy_pb.js +1 -1
- package/dist/gen/slipway/v1/identity_pb.d.ts +161 -1
- package/dist/gen/slipway/v1/identity_pb.js +204 -184
- package/dist/gen/slipway/v1/runs_pb.d.ts +14 -0
- package/dist/gen/slipway/v1/runs_pb.js +1 -1
- package/dist/gen/slipway/v1/scm_pb.d.ts +191 -1
- package/dist/gen/slipway/v1/scm_pb.js +59 -34
- package/dist/gen.d.ts +1 -0
- package/dist/gen.js +1 -0
- package/dist/services.d.ts +2 -0
- package/dist/services.js +2 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
-
import type { FieldMask, Timestamp } from "@bufbuild/protobuf/wkt";
|
|
2
|
+
import type { Duration, FieldMask, Timestamp } from "@bufbuild/protobuf/wkt";
|
|
3
3
|
import type { Actor, PageRequest, PageResponse } from "./common_pb.js";
|
|
4
4
|
import type { Message } from "@bufbuild/protobuf";
|
|
5
5
|
/**
|
|
@@ -425,6 +425,20 @@ export type WhoAmIResponse = Message<"slipway.v1.WhoAmIResponse"> & {
|
|
|
425
425
|
* @generated from field: bool org_requires_mfa = 8;
|
|
426
426
|
*/
|
|
427
427
|
orgRequiresMfa: boolean;
|
|
428
|
+
/**
|
|
429
|
+
* The current org requires a second factor this session has not verified: every RPC except the enrolment ones is
|
|
430
|
+
* refused until the caller sets one up (or, when one is already enrolled, signs in again with it).
|
|
431
|
+
*
|
|
432
|
+
* @generated from field: bool mfa_setup_required = 9;
|
|
433
|
+
*/
|
|
434
|
+
mfaSetupRequired: boolean;
|
|
435
|
+
/**
|
|
436
|
+
* How long a deleted organisation can be restored before its data is erased: the instance's grace period
|
|
437
|
+
* (SLIPWAY_ORG_DELETION_GRACE, 7 days by default), for the deletion warnings.
|
|
438
|
+
*
|
|
439
|
+
* @generated from field: google.protobuf.Duration org_deletion_grace = 10;
|
|
440
|
+
*/
|
|
441
|
+
orgDeletionGrace?: Duration | undefined;
|
|
428
442
|
};
|
|
429
443
|
/**
|
|
430
444
|
* Describes the message slipway.v1.WhoAmIResponse.
|
|
@@ -524,6 +538,9 @@ export type GetOrganizationResponse = Message<"slipway.v1.GetOrganizationRespons
|
|
|
524
538
|
*/
|
|
525
539
|
export declare const GetOrganizationResponseSchema: GenMessage<GetOrganizationResponse>;
|
|
526
540
|
/**
|
|
541
|
+
* update_mask "slug" changes the organisation's slug (owners: org.delete); the old slug keeps working as a redirect and
|
|
542
|
+
* no other organisation can take it. An empty mask never changes the slug.
|
|
543
|
+
*
|
|
527
544
|
* @generated from message slipway.v1.UpdateOrganizationRequest
|
|
528
545
|
*/
|
|
529
546
|
export type UpdateOrganizationRequest = Message<"slipway.v1.UpdateOrganizationRequest"> & {
|
|
@@ -555,6 +572,59 @@ export type UpdateOrganizationResponse = Message<"slipway.v1.UpdateOrganizationR
|
|
|
555
572
|
* Use `create(UpdateOrganizationResponseSchema)` to create a new message.
|
|
556
573
|
*/
|
|
557
574
|
export declare const UpdateOrganizationResponseSchema: GenMessage<UpdateOrganizationResponse>;
|
|
575
|
+
/**
|
|
576
|
+
* DeleteOrganization deletes the active organisation (org.delete). It is disabled at once: sign-ins, API tokens, runners,
|
|
577
|
+
* schedules and webhooks stop and runs in progress are cancelled. Its data is purged after the grace period, during
|
|
578
|
+
* which an operator can restore it. The caller proves who they are like any destructive step: the organisation's slug
|
|
579
|
+
* typed out, the account password (when it has one) and an authenticator code (when it has an authenticator app).
|
|
580
|
+
*
|
|
581
|
+
* @generated from message slipway.v1.DeleteOrganizationRequest
|
|
582
|
+
*/
|
|
583
|
+
export type DeleteOrganizationRequest = Message<"slipway.v1.DeleteOrganizationRequest"> & {
|
|
584
|
+
/**
|
|
585
|
+
* must be the active organisation
|
|
586
|
+
*
|
|
587
|
+
* @generated from field: string organization_id = 1;
|
|
588
|
+
*/
|
|
589
|
+
organizationId: string;
|
|
590
|
+
/**
|
|
591
|
+
* the organisation's slug, typed by the caller
|
|
592
|
+
*
|
|
593
|
+
* @generated from field: string confirm_slug = 2;
|
|
594
|
+
*/
|
|
595
|
+
confirmSlug: string;
|
|
596
|
+
/**
|
|
597
|
+
* @generated from field: string current_password = 3;
|
|
598
|
+
*/
|
|
599
|
+
currentPassword: string;
|
|
600
|
+
/**
|
|
601
|
+
* authenticator or recovery code
|
|
602
|
+
*
|
|
603
|
+
* @generated from field: string code = 4;
|
|
604
|
+
*/
|
|
605
|
+
code: string;
|
|
606
|
+
};
|
|
607
|
+
/**
|
|
608
|
+
* Describes the message slipway.v1.DeleteOrganizationRequest.
|
|
609
|
+
* Use `create(DeleteOrganizationRequestSchema)` to create a new message.
|
|
610
|
+
*/
|
|
611
|
+
export declare const DeleteOrganizationRequestSchema: GenMessage<DeleteOrganizationRequest>;
|
|
612
|
+
/**
|
|
613
|
+
* @generated from message slipway.v1.DeleteOrganizationResponse
|
|
614
|
+
*/
|
|
615
|
+
export type DeleteOrganizationResponse = Message<"slipway.v1.DeleteOrganizationResponse"> & {
|
|
616
|
+
/**
|
|
617
|
+
* when the data is deleted for good
|
|
618
|
+
*
|
|
619
|
+
* @generated from field: google.protobuf.Timestamp purge_after = 1;
|
|
620
|
+
*/
|
|
621
|
+
purgeAfter?: Timestamp | undefined;
|
|
622
|
+
};
|
|
623
|
+
/**
|
|
624
|
+
* Describes the message slipway.v1.DeleteOrganizationResponse.
|
|
625
|
+
* Use `create(DeleteOrganizationResponseSchema)` to create a new message.
|
|
626
|
+
*/
|
|
627
|
+
export declare const DeleteOrganizationResponseSchema: GenMessage<DeleteOrganizationResponse>;
|
|
558
628
|
/**
|
|
559
629
|
* @generated from message slipway.v1.ListProjectsRequest
|
|
560
630
|
*/
|
|
@@ -1102,6 +1172,12 @@ export type SignupRequest = Message<"slipway.v1.SignupRequest"> & {
|
|
|
1102
1172
|
*/
|
|
1103
1173
|
export declare const SignupRequestSchema: GenMessage<SignupRequest>;
|
|
1104
1174
|
/**
|
|
1175
|
+
* On an instance that sends email, an open sign-up (no invitation_token) creates nothing yet: it emails a
|
|
1176
|
+
* confirmation link and answers with only verification_sent, the same answer whether or not the address already has
|
|
1177
|
+
* an account (that account's owner is emailed instead). The account, its organisation and a session are created when
|
|
1178
|
+
* the link is opened (VerifyEmail). With an invitation, or on an instance without a mail transport, the account is
|
|
1179
|
+
* created at once: user and organization are set and the response starts a session.
|
|
1180
|
+
*
|
|
1105
1181
|
* @generated from message slipway.v1.SignupResponse
|
|
1106
1182
|
*/
|
|
1107
1183
|
export type SignupResponse = Message<"slipway.v1.SignupResponse"> & {
|
|
@@ -1152,6 +1228,17 @@ export type ListAuthProvidersResponse = Message<"slipway.v1.ListAuthProvidersRes
|
|
|
1152
1228
|
* @generated from field: bool webauthn_enabled = 4;
|
|
1153
1229
|
*/
|
|
1154
1230
|
webauthnEnabled: boolean;
|
|
1231
|
+
/**
|
|
1232
|
+
* The operator's terms of service and privacy policy (SLIPWAY_TERMS_URL, SLIPWAY_PRIVACY_URL). Sign-up links them
|
|
1233
|
+
* where it asks for consent; empty when the installation publishes none, and then no consent is asked.
|
|
1234
|
+
*
|
|
1235
|
+
* @generated from field: string terms_url = 5;
|
|
1236
|
+
*/
|
|
1237
|
+
termsUrl: string;
|
|
1238
|
+
/**
|
|
1239
|
+
* @generated from field: string privacy_url = 6;
|
|
1240
|
+
*/
|
|
1241
|
+
privacyUrl: string;
|
|
1155
1242
|
};
|
|
1156
1243
|
/**
|
|
1157
1244
|
* Describes the message slipway.v1.ListAuthProvidersResponse.
|
|
@@ -1206,6 +1293,17 @@ export type VerifyEmailResponse = Message<"slipway.v1.VerifyEmailResponse"> & {
|
|
|
1206
1293
|
* @generated from field: slipway.v1.User user = 1;
|
|
1207
1294
|
*/
|
|
1208
1295
|
user?: User | undefined;
|
|
1296
|
+
/**
|
|
1297
|
+
* Set when the link confirmed an open sign-up: the account and this organisation were just created, and the
|
|
1298
|
+
* response started a session for them (signed_in).
|
|
1299
|
+
*
|
|
1300
|
+
* @generated from field: slipway.v1.Organization organization = 2;
|
|
1301
|
+
*/
|
|
1302
|
+
organization?: Organization | undefined;
|
|
1303
|
+
/**
|
|
1304
|
+
* @generated from field: bool signed_in = 3;
|
|
1305
|
+
*/
|
|
1306
|
+
signedIn: boolean;
|
|
1209
1307
|
};
|
|
1210
1308
|
/**
|
|
1211
1309
|
* Describes the message slipway.v1.VerifyEmailResponse.
|
|
@@ -1357,6 +1455,44 @@ export type SignOutEverywhereResponse = Message<"slipway.v1.SignOutEverywhereRes
|
|
|
1357
1455
|
* Use `create(SignOutEverywhereResponseSchema)` to create a new message.
|
|
1358
1456
|
*/
|
|
1359
1457
|
export declare const SignOutEverywhereResponseSchema: GenMessage<SignOutEverywhereResponse>;
|
|
1458
|
+
/**
|
|
1459
|
+
* DeleteAccount closes the caller's own account: it leaves every organisation, its sessions and API tokens end and its
|
|
1460
|
+
* address and name are erased. Refused while the caller is the only owner of an organisation.
|
|
1461
|
+
*
|
|
1462
|
+
* @generated from message slipway.v1.DeleteAccountRequest
|
|
1463
|
+
*/
|
|
1464
|
+
export type DeleteAccountRequest = Message<"slipway.v1.DeleteAccountRequest"> & {
|
|
1465
|
+
/**
|
|
1466
|
+
* the account's address, typed by the caller
|
|
1467
|
+
*
|
|
1468
|
+
* @generated from field: string confirm_email = 1;
|
|
1469
|
+
*/
|
|
1470
|
+
confirmEmail: string;
|
|
1471
|
+
/**
|
|
1472
|
+
* @generated from field: string current_password = 2;
|
|
1473
|
+
*/
|
|
1474
|
+
currentPassword: string;
|
|
1475
|
+
/**
|
|
1476
|
+
* authenticator or recovery code
|
|
1477
|
+
*
|
|
1478
|
+
* @generated from field: string code = 3;
|
|
1479
|
+
*/
|
|
1480
|
+
code: string;
|
|
1481
|
+
};
|
|
1482
|
+
/**
|
|
1483
|
+
* Describes the message slipway.v1.DeleteAccountRequest.
|
|
1484
|
+
* Use `create(DeleteAccountRequestSchema)` to create a new message.
|
|
1485
|
+
*/
|
|
1486
|
+
export declare const DeleteAccountRequestSchema: GenMessage<DeleteAccountRequest>;
|
|
1487
|
+
/**
|
|
1488
|
+
* @generated from message slipway.v1.DeleteAccountResponse
|
|
1489
|
+
*/
|
|
1490
|
+
export type DeleteAccountResponse = Message<"slipway.v1.DeleteAccountResponse"> & {};
|
|
1491
|
+
/**
|
|
1492
|
+
* Describes the message slipway.v1.DeleteAccountResponse.
|
|
1493
|
+
* Use `create(DeleteAccountResponseSchema)` to create a new message.
|
|
1494
|
+
*/
|
|
1495
|
+
export declare const DeleteAccountResponseSchema: GenMessage<DeleteAccountResponse>;
|
|
1360
1496
|
/**
|
|
1361
1497
|
* @generated from message slipway.v1.SwitchOrganizationRequest
|
|
1362
1498
|
*/
|
|
@@ -1871,6 +2007,8 @@ export type GetInvitationResponse = Message<"slipway.v1.GetInvitationResponse">
|
|
|
1871
2007
|
*/
|
|
1872
2008
|
email: string;
|
|
1873
2009
|
/**
|
|
2010
|
+
* role ID ("developer", "role_…")
|
|
2011
|
+
*
|
|
1874
2012
|
* @generated from field: string role = 4;
|
|
1875
2013
|
*/
|
|
1876
2014
|
role: string;
|
|
@@ -1878,6 +2016,12 @@ export type GetInvitationResponse = Message<"slipway.v1.GetInvitationResponse">
|
|
|
1878
2016
|
* @generated from field: bool user_exists = 5;
|
|
1879
2017
|
*/
|
|
1880
2018
|
userExists: boolean;
|
|
2019
|
+
/**
|
|
2020
|
+
* the role's display name ("Developer")
|
|
2021
|
+
*
|
|
2022
|
+
* @generated from field: string role_name = 6;
|
|
2023
|
+
*/
|
|
2024
|
+
roleName: string;
|
|
1881
2025
|
};
|
|
1882
2026
|
/**
|
|
1883
2027
|
* Describes the message slipway.v1.GetInvitationResponse.
|
|
@@ -3636,6 +3780,14 @@ export declare const IdentityService: GenService<{
|
|
|
3636
3780
|
input: typeof UpdateOrganizationRequestSchema;
|
|
3637
3781
|
output: typeof UpdateOrganizationResponseSchema;
|
|
3638
3782
|
};
|
|
3783
|
+
/**
|
|
3784
|
+
* @generated from rpc slipway.v1.IdentityService.DeleteOrganization
|
|
3785
|
+
*/
|
|
3786
|
+
deleteOrganization: {
|
|
3787
|
+
methodKind: "unary";
|
|
3788
|
+
input: typeof DeleteOrganizationRequestSchema;
|
|
3789
|
+
output: typeof DeleteOrganizationResponseSchema;
|
|
3790
|
+
};
|
|
3639
3791
|
/**
|
|
3640
3792
|
* @generated from rpc slipway.v1.IdentityService.ListMembers
|
|
3641
3793
|
*/
|
|
@@ -3764,6 +3916,14 @@ export declare const IdentityService: GenService<{
|
|
|
3764
3916
|
input: typeof SignOutEverywhereRequestSchema;
|
|
3765
3917
|
output: typeof SignOutEverywhereResponseSchema;
|
|
3766
3918
|
};
|
|
3919
|
+
/**
|
|
3920
|
+
* @generated from rpc slipway.v1.IdentityService.DeleteAccount
|
|
3921
|
+
*/
|
|
3922
|
+
deleteAccount: {
|
|
3923
|
+
methodKind: "unary";
|
|
3924
|
+
input: typeof DeleteAccountRequestSchema;
|
|
3925
|
+
output: typeof DeleteAccountResponseSchema;
|
|
3926
|
+
};
|
|
3767
3927
|
/**
|
|
3768
3928
|
* @generated from rpc slipway.v1.IdentityService.SwitchOrganization
|
|
3769
3929
|
*/
|