@supernova-studio/client 1.4.1 → 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 +67 -0
- package/dist/index.d.ts +67 -0
- package/dist/index.js +23 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +76 -56
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -94867,6 +94867,8 @@ declare const GitDestinationOptions: z.ZodObject<{
|
|
|
94867
94867
|
commitAuthorEmail: z.ZodOptional<z.ZodString>;
|
|
94868
94868
|
pullRequestTitle: z.ZodOptional<z.ZodString>;
|
|
94869
94869
|
pullRequestDescription: z.ZodOptional<z.ZodString>;
|
|
94870
|
+
relativePath: z.ZodOptional<z.ZodString>;
|
|
94871
|
+
purgeDirectory: z.ZodOptional<z.ZodBoolean>;
|
|
94870
94872
|
}, "strip", z.ZodTypeAny, {
|
|
94871
94873
|
branch?: string | undefined;
|
|
94872
94874
|
commitMessage?: string | undefined;
|
|
@@ -94874,6 +94876,8 @@ declare const GitDestinationOptions: z.ZodObject<{
|
|
|
94874
94876
|
commitAuthorEmail?: string | undefined;
|
|
94875
94877
|
pullRequestTitle?: string | undefined;
|
|
94876
94878
|
pullRequestDescription?: string | undefined;
|
|
94879
|
+
relativePath?: string | undefined;
|
|
94880
|
+
purgeDirectory?: boolean | undefined;
|
|
94877
94881
|
}, {
|
|
94878
94882
|
branch?: string | undefined;
|
|
94879
94883
|
commitMessage?: string | undefined;
|
|
@@ -94881,6 +94885,8 @@ declare const GitDestinationOptions: z.ZodObject<{
|
|
|
94881
94885
|
commitAuthorEmail?: string | undefined;
|
|
94882
94886
|
pullRequestTitle?: string | undefined;
|
|
94883
94887
|
pullRequestDescription?: string | undefined;
|
|
94888
|
+
relativePath?: string | undefined;
|
|
94889
|
+
purgeDirectory?: boolean | undefined;
|
|
94884
94890
|
}>;
|
|
94885
94891
|
type GitDestinationOptions = z.infer<typeof GitDestinationOptions>;
|
|
94886
94892
|
declare const DTOPipelineCreateBody: z.ZodObject<{
|
|
@@ -95849,6 +95855,8 @@ declare const DTOPipelineUpdateBody: z.ZodObject<{
|
|
|
95849
95855
|
commitAuthorEmail: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
95850
95856
|
pullRequestTitle: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
95851
95857
|
pullRequestDescription: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
95858
|
+
relativePath: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
95859
|
+
purgeDirectory: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
95852
95860
|
}, "strip", z.ZodTypeAny, {
|
|
95853
95861
|
branch?: string | undefined;
|
|
95854
95862
|
commitMessage?: string | undefined;
|
|
@@ -95856,6 +95864,8 @@ declare const DTOPipelineUpdateBody: z.ZodObject<{
|
|
|
95856
95864
|
commitAuthorEmail?: string | undefined;
|
|
95857
95865
|
pullRequestTitle?: string | undefined;
|
|
95858
95866
|
pullRequestDescription?: string | undefined;
|
|
95867
|
+
relativePath?: string | undefined;
|
|
95868
|
+
purgeDirectory?: boolean | undefined;
|
|
95859
95869
|
}, {
|
|
95860
95870
|
branch?: string | undefined;
|
|
95861
95871
|
commitMessage?: string | undefined;
|
|
@@ -95863,6 +95873,8 @@ declare const DTOPipelineUpdateBody: z.ZodObject<{
|
|
|
95863
95873
|
commitAuthorEmail?: string | undefined;
|
|
95864
95874
|
pullRequestTitle?: string | undefined;
|
|
95865
95875
|
pullRequestDescription?: string | undefined;
|
|
95876
|
+
relativePath?: string | undefined;
|
|
95877
|
+
purgeDirectory?: boolean | undefined;
|
|
95866
95878
|
}>>;
|
|
95867
95879
|
}, "strip", z.ZodTypeAny, {
|
|
95868
95880
|
brandPersistentId?: string | undefined;
|
|
@@ -95961,6 +95973,8 @@ declare const DTOPipelineUpdateBody: z.ZodObject<{
|
|
|
95961
95973
|
commitAuthorEmail?: string | undefined;
|
|
95962
95974
|
pullRequestTitle?: string | undefined;
|
|
95963
95975
|
pullRequestDescription?: string | undefined;
|
|
95976
|
+
relativePath?: string | undefined;
|
|
95977
|
+
purgeDirectory?: boolean | undefined;
|
|
95964
95978
|
} | undefined;
|
|
95965
95979
|
}, {
|
|
95966
95980
|
brandPersistentId?: string | undefined;
|
|
@@ -96059,6 +96073,8 @@ declare const DTOPipelineUpdateBody: z.ZodObject<{
|
|
|
96059
96073
|
commitAuthorEmail?: string | undefined;
|
|
96060
96074
|
pullRequestTitle?: string | undefined;
|
|
96061
96075
|
pullRequestDescription?: string | undefined;
|
|
96076
|
+
relativePath?: string | undefined;
|
|
96077
|
+
purgeDirectory?: boolean | undefined;
|
|
96062
96078
|
} | undefined;
|
|
96063
96079
|
}>;
|
|
96064
96080
|
type DTOPipelineUpdateBody = z.infer<typeof DTOPipelineUpdateBody>;
|
|
@@ -102346,10 +102362,61 @@ declare class WorkspaceMembersEndpoint {
|
|
|
102346
102362
|
}>;
|
|
102347
102363
|
}
|
|
102348
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
|
+
|
|
102349
102415
|
declare class WorkspacesEndpoint {
|
|
102350
102416
|
private readonly requestExecutor;
|
|
102351
102417
|
members: WorkspaceMembersEndpoint;
|
|
102352
102418
|
invitations: WorkspaceInvitationsEndpoint;
|
|
102419
|
+
integrations: WorkspaceIntegrationsEndpoint;
|
|
102353
102420
|
constructor(requestExecutor: RequestExecutor);
|
|
102354
102421
|
create(body: DTOWorkspaceCreateInput): Promise<{
|
|
102355
102422
|
workspace: {
|
package/dist/index.d.ts
CHANGED
|
@@ -94867,6 +94867,8 @@ declare const GitDestinationOptions: z.ZodObject<{
|
|
|
94867
94867
|
commitAuthorEmail: z.ZodOptional<z.ZodString>;
|
|
94868
94868
|
pullRequestTitle: z.ZodOptional<z.ZodString>;
|
|
94869
94869
|
pullRequestDescription: z.ZodOptional<z.ZodString>;
|
|
94870
|
+
relativePath: z.ZodOptional<z.ZodString>;
|
|
94871
|
+
purgeDirectory: z.ZodOptional<z.ZodBoolean>;
|
|
94870
94872
|
}, "strip", z.ZodTypeAny, {
|
|
94871
94873
|
branch?: string | undefined;
|
|
94872
94874
|
commitMessage?: string | undefined;
|
|
@@ -94874,6 +94876,8 @@ declare const GitDestinationOptions: z.ZodObject<{
|
|
|
94874
94876
|
commitAuthorEmail?: string | undefined;
|
|
94875
94877
|
pullRequestTitle?: string | undefined;
|
|
94876
94878
|
pullRequestDescription?: string | undefined;
|
|
94879
|
+
relativePath?: string | undefined;
|
|
94880
|
+
purgeDirectory?: boolean | undefined;
|
|
94877
94881
|
}, {
|
|
94878
94882
|
branch?: string | undefined;
|
|
94879
94883
|
commitMessage?: string | undefined;
|
|
@@ -94881,6 +94885,8 @@ declare const GitDestinationOptions: z.ZodObject<{
|
|
|
94881
94885
|
commitAuthorEmail?: string | undefined;
|
|
94882
94886
|
pullRequestTitle?: string | undefined;
|
|
94883
94887
|
pullRequestDescription?: string | undefined;
|
|
94888
|
+
relativePath?: string | undefined;
|
|
94889
|
+
purgeDirectory?: boolean | undefined;
|
|
94884
94890
|
}>;
|
|
94885
94891
|
type GitDestinationOptions = z.infer<typeof GitDestinationOptions>;
|
|
94886
94892
|
declare const DTOPipelineCreateBody: z.ZodObject<{
|
|
@@ -95849,6 +95855,8 @@ declare const DTOPipelineUpdateBody: z.ZodObject<{
|
|
|
95849
95855
|
commitAuthorEmail: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
95850
95856
|
pullRequestTitle: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
95851
95857
|
pullRequestDescription: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
95858
|
+
relativePath: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
95859
|
+
purgeDirectory: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
95852
95860
|
}, "strip", z.ZodTypeAny, {
|
|
95853
95861
|
branch?: string | undefined;
|
|
95854
95862
|
commitMessage?: string | undefined;
|
|
@@ -95856,6 +95864,8 @@ declare const DTOPipelineUpdateBody: z.ZodObject<{
|
|
|
95856
95864
|
commitAuthorEmail?: string | undefined;
|
|
95857
95865
|
pullRequestTitle?: string | undefined;
|
|
95858
95866
|
pullRequestDescription?: string | undefined;
|
|
95867
|
+
relativePath?: string | undefined;
|
|
95868
|
+
purgeDirectory?: boolean | undefined;
|
|
95859
95869
|
}, {
|
|
95860
95870
|
branch?: string | undefined;
|
|
95861
95871
|
commitMessage?: string | undefined;
|
|
@@ -95863,6 +95873,8 @@ declare const DTOPipelineUpdateBody: z.ZodObject<{
|
|
|
95863
95873
|
commitAuthorEmail?: string | undefined;
|
|
95864
95874
|
pullRequestTitle?: string | undefined;
|
|
95865
95875
|
pullRequestDescription?: string | undefined;
|
|
95876
|
+
relativePath?: string | undefined;
|
|
95877
|
+
purgeDirectory?: boolean | undefined;
|
|
95866
95878
|
}>>;
|
|
95867
95879
|
}, "strip", z.ZodTypeAny, {
|
|
95868
95880
|
brandPersistentId?: string | undefined;
|
|
@@ -95961,6 +95973,8 @@ declare const DTOPipelineUpdateBody: z.ZodObject<{
|
|
|
95961
95973
|
commitAuthorEmail?: string | undefined;
|
|
95962
95974
|
pullRequestTitle?: string | undefined;
|
|
95963
95975
|
pullRequestDescription?: string | undefined;
|
|
95976
|
+
relativePath?: string | undefined;
|
|
95977
|
+
purgeDirectory?: boolean | undefined;
|
|
95964
95978
|
} | undefined;
|
|
95965
95979
|
}, {
|
|
95966
95980
|
brandPersistentId?: string | undefined;
|
|
@@ -96059,6 +96073,8 @@ declare const DTOPipelineUpdateBody: z.ZodObject<{
|
|
|
96059
96073
|
commitAuthorEmail?: string | undefined;
|
|
96060
96074
|
pullRequestTitle?: string | undefined;
|
|
96061
96075
|
pullRequestDescription?: string | undefined;
|
|
96076
|
+
relativePath?: string | undefined;
|
|
96077
|
+
purgeDirectory?: boolean | undefined;
|
|
96062
96078
|
} | undefined;
|
|
96063
96079
|
}>;
|
|
96064
96080
|
type DTOPipelineUpdateBody = z.infer<typeof DTOPipelineUpdateBody>;
|
|
@@ -102346,10 +102362,61 @@ declare class WorkspaceMembersEndpoint {
|
|
|
102346
102362
|
}>;
|
|
102347
102363
|
}
|
|
102348
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
|
+
|
|
102349
102415
|
declare class WorkspacesEndpoint {
|
|
102350
102416
|
private readonly requestExecutor;
|
|
102351
102417
|
members: WorkspaceMembersEndpoint;
|
|
102352
102418
|
invitations: WorkspaceInvitationsEndpoint;
|
|
102419
|
+
integrations: WorkspaceIntegrationsEndpoint;
|
|
102353
102420
|
constructor(requestExecutor: RequestExecutor);
|
|
102354
102421
|
create(body: DTOWorkspaceCreateInput): Promise<{
|
|
102355
102422
|
workspace: {
|
package/dist/index.js
CHANGED
|
@@ -5964,7 +5964,9 @@ var GitDestinationOptions = _zod.z.object({
|
|
|
5964
5964
|
commitAuthorName: _zod.z.string().min(1).optional(),
|
|
5965
5965
|
commitAuthorEmail: _zod.z.string().email().optional(),
|
|
5966
5966
|
pullRequestTitle: _zod.z.string().min(1).optional(),
|
|
5967
|
-
pullRequestDescription: _zod.z.string().min(1).optional()
|
|
5967
|
+
pullRequestDescription: _zod.z.string().min(1).optional(),
|
|
5968
|
+
relativePath: _zod.z.string().optional(),
|
|
5969
|
+
purgeDirectory: _zod.z.boolean().optional()
|
|
5968
5970
|
});
|
|
5969
5971
|
var DTOPipelineCreateBody = _zod.z.object({
|
|
5970
5972
|
name: _zod.z.string(),
|
|
@@ -8392,7 +8394,7 @@ var DesignSystemsEndpoint = class {
|
|
|
8392
8394
|
}
|
|
8393
8395
|
};
|
|
8394
8396
|
|
|
8395
|
-
// src/api/endpoints/workspaces/
|
|
8397
|
+
// src/api/endpoints/workspaces/invites.ts
|
|
8396
8398
|
var WorkspaceInvitationsEndpoint = class {
|
|
8397
8399
|
constructor(requestExecutor) {
|
|
8398
8400
|
this.requestExecutor = requestExecutor;
|
|
@@ -8419,7 +8421,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
8419
8421
|
}
|
|
8420
8422
|
};
|
|
8421
8423
|
|
|
8422
|
-
// src/api/endpoints/workspaces/
|
|
8424
|
+
// src/api/endpoints/workspaces/members.ts
|
|
8423
8425
|
|
|
8424
8426
|
var WorkspaceMembersEndpoint = class {
|
|
8425
8427
|
constructor(requestExecutor) {
|
|
@@ -8448,13 +8450,31 @@ var WorkspaceMembersEndpoint = class {
|
|
|
8448
8450
|
|
|
8449
8451
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
8450
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
|
|
8451
8469
|
var WorkspacesEndpoint = class {
|
|
8452
8470
|
constructor(requestExecutor) {
|
|
8453
8471
|
this.requestExecutor = requestExecutor;
|
|
8454
8472
|
__publicField(this, "members");
|
|
8455
8473
|
__publicField(this, "invitations");
|
|
8474
|
+
__publicField(this, "integrations");
|
|
8456
8475
|
this.members = new WorkspaceMembersEndpoint(requestExecutor);
|
|
8457
8476
|
this.invitations = new WorkspaceInvitationsEndpoint(requestExecutor);
|
|
8477
|
+
this.integrations = new WorkspaceIntegrationsEndpoint(requestExecutor);
|
|
8458
8478
|
}
|
|
8459
8479
|
create(body) {
|
|
8460
8480
|
return this.requestExecutor.json("/workspaces", DTOWorkspaceResponse, {
|