@remixhq/core 0.1.6 → 0.1.8
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/api.d.ts +15 -0
- package/dist/api.js +1 -1
- package/dist/chunk-4276ARDF.js +303 -0
- package/dist/chunk-CJFGQE7D.js +46 -0
- package/dist/chunk-RREREIGW.js +710 -0
- package/dist/collab.d.ts +87 -1
- package/dist/collab.js +264 -150
- package/dist/index.js +1 -1
- package/dist/repo.js +1 -1
- package/package.json +1 -1
package/dist/collab.d.ts
CHANGED
|
@@ -242,6 +242,38 @@ type CollabTurn = {
|
|
|
242
242
|
assistantResponse: string | null;
|
|
243
243
|
};
|
|
244
244
|
type InvitationScopeType = "organization" | "project" | "app";
|
|
245
|
+
type MembershipScopeType = InvitationScopeType;
|
|
246
|
+
type OrganizationMemberRole = "owner" | "admin" | "member" | "viewer";
|
|
247
|
+
type ProjectMemberRole = "owner" | "maintainer" | "editor" | "viewer";
|
|
248
|
+
type AppMemberRole = "owner" | "maintainer" | "editor" | "viewer";
|
|
249
|
+
type OrganizationMember = {
|
|
250
|
+
id: string;
|
|
251
|
+
userId: string;
|
|
252
|
+
organizationId: string;
|
|
253
|
+
role: OrganizationMemberRole;
|
|
254
|
+
invitedBy: string | null;
|
|
255
|
+
createdAt: string;
|
|
256
|
+
updatedAt: string;
|
|
257
|
+
};
|
|
258
|
+
type ProjectMember = {
|
|
259
|
+
id: string;
|
|
260
|
+
userId: string;
|
|
261
|
+
projectId: string;
|
|
262
|
+
role: ProjectMemberRole;
|
|
263
|
+
invitedBy: string | null;
|
|
264
|
+
createdAt: string;
|
|
265
|
+
updatedAt: string;
|
|
266
|
+
};
|
|
267
|
+
type AppMember = {
|
|
268
|
+
id: string;
|
|
269
|
+
userId: string;
|
|
270
|
+
appId: string;
|
|
271
|
+
role: AppMemberRole;
|
|
272
|
+
invitedBy: string | null;
|
|
273
|
+
createdAt: string;
|
|
274
|
+
updatedAt: string;
|
|
275
|
+
};
|
|
276
|
+
type CollabMember = OrganizationMember | ProjectMember | AppMember;
|
|
245
277
|
type CollabApiClient = {
|
|
246
278
|
resolveProjectBinding(params: {
|
|
247
279
|
repoFingerprint?: string;
|
|
@@ -367,6 +399,18 @@ type CollabApiClient = {
|
|
|
367
399
|
role?: string;
|
|
368
400
|
ttlDays?: number;
|
|
369
401
|
}): Promise<unknown>;
|
|
402
|
+
listOrganizationMembers(orgId: string): Promise<unknown>;
|
|
403
|
+
updateOrganizationMember(orgId: string, userId: string, payload: {
|
|
404
|
+
role: OrganizationMemberRole;
|
|
405
|
+
}): Promise<unknown>;
|
|
406
|
+
listProjectMembers(projectId: string): Promise<unknown>;
|
|
407
|
+
updateProjectMember(projectId: string, userId: string, payload: {
|
|
408
|
+
role: ProjectMemberRole;
|
|
409
|
+
}): Promise<unknown>;
|
|
410
|
+
listAppMembers(appId: string): Promise<unknown>;
|
|
411
|
+
updateAppMember(appId: string, userId: string, payload: {
|
|
412
|
+
role: AppMemberRole;
|
|
413
|
+
}): Promise<unknown>;
|
|
370
414
|
listOrganizationInvites(orgId: string): Promise<unknown>;
|
|
371
415
|
listProjectInvites(projectId: string): Promise<unknown>;
|
|
372
416
|
listAppInvites(appId: string): Promise<unknown>;
|
|
@@ -459,6 +503,20 @@ declare function collabApprove(params: {
|
|
|
459
503
|
allowBranchMismatch?: boolean;
|
|
460
504
|
}): Promise<CollabApproveResult>;
|
|
461
505
|
|
|
506
|
+
declare function collabCheckout(params: {
|
|
507
|
+
api: CollabApiClient;
|
|
508
|
+
cwd: string;
|
|
509
|
+
appId?: string | null;
|
|
510
|
+
outputDir?: string | null;
|
|
511
|
+
}): Promise<{
|
|
512
|
+
appId: string;
|
|
513
|
+
dashboardUrl: string;
|
|
514
|
+
projectId: string;
|
|
515
|
+
upstreamAppId: string;
|
|
516
|
+
bindingPath: string;
|
|
517
|
+
repoRoot: string;
|
|
518
|
+
}>;
|
|
519
|
+
|
|
462
520
|
declare function collabListMergeRequests(params: {
|
|
463
521
|
api: CollabApiClient;
|
|
464
522
|
queue: MergeRequestQueue;
|
|
@@ -472,6 +530,31 @@ declare function collabListMergeRequests(params: {
|
|
|
472
530
|
mergeRequests: MergeRequest[];
|
|
473
531
|
}>;
|
|
474
532
|
|
|
533
|
+
declare function getMemberRolesForScope(scope: InvitationScopeType): readonly string[];
|
|
534
|
+
declare function validateMemberRole(scope: InvitationScopeType, role: string): string;
|
|
535
|
+
declare function collabListMembers(params: {
|
|
536
|
+
api: CollabApiClient;
|
|
537
|
+
cwd: string;
|
|
538
|
+
scope: InvitationScopeType;
|
|
539
|
+
targetId?: string | null;
|
|
540
|
+
}): Promise<{
|
|
541
|
+
scopeType: InvitationScopeType;
|
|
542
|
+
targetId: string;
|
|
543
|
+
members: CollabMember[];
|
|
544
|
+
}>;
|
|
545
|
+
declare function collabUpdateMemberRole(params: {
|
|
546
|
+
api: CollabApiClient;
|
|
547
|
+
cwd: string;
|
|
548
|
+
scope: InvitationScopeType;
|
|
549
|
+
targetId?: string | null;
|
|
550
|
+
userId: string;
|
|
551
|
+
role: string;
|
|
552
|
+
}): Promise<{
|
|
553
|
+
scopeType: InvitationScopeType;
|
|
554
|
+
targetId: string;
|
|
555
|
+
member: CollabMember;
|
|
556
|
+
}>;
|
|
557
|
+
|
|
475
558
|
declare function collabInit(params: {
|
|
476
559
|
api: CollabApiClient;
|
|
477
560
|
cwd: string;
|
|
@@ -483,6 +566,7 @@ declare function collabInit(params: {
|
|
|
483
566
|
reused: boolean;
|
|
484
567
|
projectId: string;
|
|
485
568
|
appId: string;
|
|
569
|
+
dashboardUrl: string;
|
|
486
570
|
upstreamAppId: string;
|
|
487
571
|
bindingPath: string;
|
|
488
572
|
repoRoot: string;
|
|
@@ -491,6 +575,7 @@ declare function collabInit(params: {
|
|
|
491
575
|
reused: boolean;
|
|
492
576
|
projectId: string;
|
|
493
577
|
appId: string;
|
|
578
|
+
dashboardUrl: string;
|
|
494
579
|
upstreamAppId: string;
|
|
495
580
|
bindingPath: string;
|
|
496
581
|
repoRoot: string;
|
|
@@ -596,6 +681,7 @@ declare function collabRemix(params: {
|
|
|
596
681
|
outputDir?: string | null;
|
|
597
682
|
}): Promise<{
|
|
598
683
|
appId: string;
|
|
684
|
+
dashboardUrl: string;
|
|
599
685
|
projectId: string;
|
|
600
686
|
upstreamAppId: string;
|
|
601
687
|
bindingPath: string;
|
|
@@ -711,4 +797,4 @@ declare function collabView(params: {
|
|
|
711
797
|
mrId: string;
|
|
712
798
|
}): Promise<MergeRequestReview>;
|
|
713
799
|
|
|
714
|
-
export { type AppReconcileResponse, type CollabApiClient, type CollabApproveMode, type CollabApproveResult, type CollabRecordingPreflight, type CollabRecordingPreflightStatus, type CollabStatus, type CollabStatusBlockedReason, type CollabStatusRecommendedAction, type CollabTurn, type InvitationScopeType, type JsonObject, type MergeRequest, type MergeRequestQueue, type MergeRequestReview, type MergeRequestStatus, type ReconcilePreflightResponse, type SyncLocalResponse, type SyncUpstreamResponse, collabAdd, collabApprove, collabInit, collabInvite, collabList, collabListMergeRequests, collabReconcile, collabRecordTurn, collabRecordingPreflight, collabReject, collabRemix, collabRequestMerge, collabStatus, collabSync, collabSyncUpstream, collabView };
|
|
800
|
+
export { type AppMember, type AppMemberRole, type AppReconcileResponse, type CollabApiClient, type CollabApproveMode, type CollabApproveResult, type CollabMember, type CollabRecordingPreflight, type CollabRecordingPreflightStatus, type CollabStatus, type CollabStatusBlockedReason, type CollabStatusRecommendedAction, type CollabTurn, type InvitationScopeType, type JsonObject, type MembershipScopeType, type MergeRequest, type MergeRequestQueue, type MergeRequestReview, type MergeRequestStatus, type OrganizationMember, type OrganizationMemberRole, type ProjectMember, type ProjectMemberRole, type ReconcilePreflightResponse, type SyncLocalResponse, type SyncUpstreamResponse, collabAdd, collabApprove, collabCheckout, collabInit, collabInvite, collabList, collabListMembers, collabListMergeRequests, collabReconcile, collabRecordTurn, collabRecordingPreflight, collabReject, collabRemix, collabRequestMerge, collabStatus, collabSync, collabSyncUpstream, collabUpdateMemberRole, collabView, getMemberRolesForScope, validateMemberRole };
|