@supernova-studio/client 1.4.2 → 1.4.3
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/index.d.mts +51 -0
- package/dist/index.d.ts +51 -0
- package/dist/index.js +20 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +73 -55
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -102362,10 +102362,61 @@ declare class WorkspaceMembersEndpoint {
|
|
|
102362
102362
|
}>;
|
|
102363
102363
|
}
|
|
102364
102364
|
|
|
102365
|
+
declare class WorkspaceIntegrationsEndpoint {
|
|
102366
|
+
private readonly requestExecutor;
|
|
102367
|
+
constructor(requestExecutor: RequestExecutor);
|
|
102368
|
+
list(wsId: string): Promise<{
|
|
102369
|
+
integrations: {
|
|
102370
|
+
type: "Figma" | "TokenStudio" | "FigmaVariablesPlugin" | "Github" | "Gitlab" | "Bitbucket" | "Azure";
|
|
102371
|
+
id: string;
|
|
102372
|
+
createdAt: Date;
|
|
102373
|
+
workspaceId: string;
|
|
102374
|
+
integrationCredentials?: {
|
|
102375
|
+
type: "OAuth2" | "PAT";
|
|
102376
|
+
id: string;
|
|
102377
|
+
createdAt: Date;
|
|
102378
|
+
state: "Active" | "Inactive";
|
|
102379
|
+
userId: string;
|
|
102380
|
+
integrationId: string;
|
|
102381
|
+
profile?: {
|
|
102382
|
+
type?: string | undefined;
|
|
102383
|
+
email?: string | undefined;
|
|
102384
|
+
id?: string | undefined;
|
|
102385
|
+
organization?: string | undefined;
|
|
102386
|
+
handle?: string | undefined;
|
|
102387
|
+
avatarUrl?: string | undefined;
|
|
102388
|
+
collection?: string | undefined;
|
|
102389
|
+
} | undefined;
|
|
102390
|
+
user?: {
|
|
102391
|
+
email: string;
|
|
102392
|
+
id: string;
|
|
102393
|
+
name: string;
|
|
102394
|
+
avatar?: string | undefined;
|
|
102395
|
+
} | undefined;
|
|
102396
|
+
username?: string | undefined;
|
|
102397
|
+
tokenName?: string | undefined;
|
|
102398
|
+
expiresAt?: Date | undefined;
|
|
102399
|
+
refreshedAt?: Date | undefined;
|
|
102400
|
+
appInstallationId?: string | undefined;
|
|
102401
|
+
customUrl?: string | undefined;
|
|
102402
|
+
}[] | undefined;
|
|
102403
|
+
integrationDesignSystems?: {
|
|
102404
|
+
designSystemId: string;
|
|
102405
|
+
brandId: string;
|
|
102406
|
+
date?: Date | undefined;
|
|
102407
|
+
title?: string | undefined;
|
|
102408
|
+
userId?: string | undefined;
|
|
102409
|
+
}[] | undefined;
|
|
102410
|
+
}[];
|
|
102411
|
+
}>;
|
|
102412
|
+
delete(wsId: string, iId: string): Promise<unknown>;
|
|
102413
|
+
}
|
|
102414
|
+
|
|
102365
102415
|
declare class WorkspacesEndpoint {
|
|
102366
102416
|
private readonly requestExecutor;
|
|
102367
102417
|
members: WorkspaceMembersEndpoint;
|
|
102368
102418
|
invitations: WorkspaceInvitationsEndpoint;
|
|
102419
|
+
integrations: WorkspaceIntegrationsEndpoint;
|
|
102369
102420
|
constructor(requestExecutor: RequestExecutor);
|
|
102370
102421
|
create(body: DTOWorkspaceCreateInput): Promise<{
|
|
102371
102422
|
workspace: {
|
package/dist/index.d.ts
CHANGED
|
@@ -102362,10 +102362,61 @@ declare class WorkspaceMembersEndpoint {
|
|
|
102362
102362
|
}>;
|
|
102363
102363
|
}
|
|
102364
102364
|
|
|
102365
|
+
declare class WorkspaceIntegrationsEndpoint {
|
|
102366
|
+
private readonly requestExecutor;
|
|
102367
|
+
constructor(requestExecutor: RequestExecutor);
|
|
102368
|
+
list(wsId: string): Promise<{
|
|
102369
|
+
integrations: {
|
|
102370
|
+
type: "Figma" | "TokenStudio" | "FigmaVariablesPlugin" | "Github" | "Gitlab" | "Bitbucket" | "Azure";
|
|
102371
|
+
id: string;
|
|
102372
|
+
createdAt: Date;
|
|
102373
|
+
workspaceId: string;
|
|
102374
|
+
integrationCredentials?: {
|
|
102375
|
+
type: "OAuth2" | "PAT";
|
|
102376
|
+
id: string;
|
|
102377
|
+
createdAt: Date;
|
|
102378
|
+
state: "Active" | "Inactive";
|
|
102379
|
+
userId: string;
|
|
102380
|
+
integrationId: string;
|
|
102381
|
+
profile?: {
|
|
102382
|
+
type?: string | undefined;
|
|
102383
|
+
email?: string | undefined;
|
|
102384
|
+
id?: string | undefined;
|
|
102385
|
+
organization?: string | undefined;
|
|
102386
|
+
handle?: string | undefined;
|
|
102387
|
+
avatarUrl?: string | undefined;
|
|
102388
|
+
collection?: string | undefined;
|
|
102389
|
+
} | undefined;
|
|
102390
|
+
user?: {
|
|
102391
|
+
email: string;
|
|
102392
|
+
id: string;
|
|
102393
|
+
name: string;
|
|
102394
|
+
avatar?: string | undefined;
|
|
102395
|
+
} | undefined;
|
|
102396
|
+
username?: string | undefined;
|
|
102397
|
+
tokenName?: string | undefined;
|
|
102398
|
+
expiresAt?: Date | undefined;
|
|
102399
|
+
refreshedAt?: Date | undefined;
|
|
102400
|
+
appInstallationId?: string | undefined;
|
|
102401
|
+
customUrl?: string | undefined;
|
|
102402
|
+
}[] | undefined;
|
|
102403
|
+
integrationDesignSystems?: {
|
|
102404
|
+
designSystemId: string;
|
|
102405
|
+
brandId: string;
|
|
102406
|
+
date?: Date | undefined;
|
|
102407
|
+
title?: string | undefined;
|
|
102408
|
+
userId?: string | undefined;
|
|
102409
|
+
}[] | undefined;
|
|
102410
|
+
}[];
|
|
102411
|
+
}>;
|
|
102412
|
+
delete(wsId: string, iId: string): Promise<unknown>;
|
|
102413
|
+
}
|
|
102414
|
+
|
|
102365
102415
|
declare class WorkspacesEndpoint {
|
|
102366
102416
|
private readonly requestExecutor;
|
|
102367
102417
|
members: WorkspaceMembersEndpoint;
|
|
102368
102418
|
invitations: WorkspaceInvitationsEndpoint;
|
|
102419
|
+
integrations: WorkspaceIntegrationsEndpoint;
|
|
102369
102420
|
constructor(requestExecutor: RequestExecutor);
|
|
102370
102421
|
create(body: DTOWorkspaceCreateInput): Promise<{
|
|
102371
102422
|
workspace: {
|
package/dist/index.js
CHANGED
|
@@ -8394,7 +8394,7 @@ var DesignSystemsEndpoint = class {
|
|
|
8394
8394
|
}
|
|
8395
8395
|
};
|
|
8396
8396
|
|
|
8397
|
-
// src/api/endpoints/workspaces/
|
|
8397
|
+
// src/api/endpoints/workspaces/invites.ts
|
|
8398
8398
|
var WorkspaceInvitationsEndpoint = class {
|
|
8399
8399
|
constructor(requestExecutor) {
|
|
8400
8400
|
this.requestExecutor = requestExecutor;
|
|
@@ -8421,7 +8421,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
8421
8421
|
}
|
|
8422
8422
|
};
|
|
8423
8423
|
|
|
8424
|
-
// src/api/endpoints/workspaces/
|
|
8424
|
+
// src/api/endpoints/workspaces/members.ts
|
|
8425
8425
|
|
|
8426
8426
|
var WorkspaceMembersEndpoint = class {
|
|
8427
8427
|
constructor(requestExecutor) {
|
|
@@ -8450,13 +8450,31 @@ var WorkspaceMembersEndpoint = class {
|
|
|
8450
8450
|
|
|
8451
8451
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
8452
8452
|
|
|
8453
|
+
|
|
8454
|
+
// src/api/endpoints/workspaces/integrations.ts
|
|
8455
|
+
|
|
8456
|
+
var WorkspaceIntegrationsEndpoint = class {
|
|
8457
|
+
constructor(requestExecutor) {
|
|
8458
|
+
this.requestExecutor = requestExecutor;
|
|
8459
|
+
}
|
|
8460
|
+
list(wsId) {
|
|
8461
|
+
return this.requestExecutor.json(`/workspaces/${wsId}/integrations`, DTOIntegrationsGetListResponse);
|
|
8462
|
+
}
|
|
8463
|
+
delete(wsId, iId) {
|
|
8464
|
+
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, _zod.z.unknown(), { method: "DELETE" });
|
|
8465
|
+
}
|
|
8466
|
+
};
|
|
8467
|
+
|
|
8468
|
+
// src/api/endpoints/workspaces/workspaces.ts
|
|
8453
8469
|
var WorkspacesEndpoint = class {
|
|
8454
8470
|
constructor(requestExecutor) {
|
|
8455
8471
|
this.requestExecutor = requestExecutor;
|
|
8456
8472
|
__publicField(this, "members");
|
|
8457
8473
|
__publicField(this, "invitations");
|
|
8474
|
+
__publicField(this, "integrations");
|
|
8458
8475
|
this.members = new WorkspaceMembersEndpoint(requestExecutor);
|
|
8459
8476
|
this.invitations = new WorkspaceInvitationsEndpoint(requestExecutor);
|
|
8477
|
+
this.integrations = new WorkspaceIntegrationsEndpoint(requestExecutor);
|
|
8460
8478
|
}
|
|
8461
8479
|
create(body) {
|
|
8462
8480
|
return this.requestExecutor.json("/workspaces", DTOWorkspaceResponse, {
|