@supernova-studio/client 0.54.4 → 0.54.5
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 +46 -40
- package/dist/index.d.ts +46 -40
- package/dist/index.js +84 -86
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +428 -430
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4858,6 +4858,7 @@ declare const DTODesignSystem: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
4858
4858
|
} | null | undefined>;
|
|
4859
4859
|
isApprovalFeatureEnabled: z.ZodBoolean;
|
|
4860
4860
|
approvalRequiredForPublishing: z.ZodBoolean;
|
|
4861
|
+
accessMode: z.ZodEnum<["Open", "InviteOnly"]>;
|
|
4861
4862
|
createdAt: z.ZodDate;
|
|
4862
4863
|
updatedAt: z.ZodDate;
|
|
4863
4864
|
}, "description" | "name" | "docExporterId">, {
|
|
@@ -4891,6 +4892,7 @@ declare const DTODesignSystem: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
4891
4892
|
basePrefixes: string[];
|
|
4892
4893
|
isApprovalFeatureEnabled: boolean;
|
|
4893
4894
|
approvalRequiredForPublishing: boolean;
|
|
4895
|
+
accessMode: "Open" | "InviteOnly";
|
|
4894
4896
|
docUserSlug?: string | undefined;
|
|
4895
4897
|
docViewUrl?: string | undefined;
|
|
4896
4898
|
designSystemSwitcher?: {
|
|
@@ -4915,6 +4917,7 @@ declare const DTODesignSystem: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
4915
4917
|
basePrefixes: string[];
|
|
4916
4918
|
isApprovalFeatureEnabled: boolean;
|
|
4917
4919
|
approvalRequiredForPublishing: boolean;
|
|
4920
|
+
accessMode: "Open" | "InviteOnly";
|
|
4918
4921
|
docUserSlug?: string | null | undefined;
|
|
4919
4922
|
docViewUrl?: string | null | undefined;
|
|
4920
4923
|
designSystemSwitcher?: {
|
|
@@ -33011,16 +33014,16 @@ declare const DTOUserProfileUpdateResponse: z.ZodObject<{
|
|
|
33011
33014
|
}, "strip", z.ZodTypeAny, {
|
|
33012
33015
|
id: string;
|
|
33013
33016
|
email?: string | undefined;
|
|
33014
|
-
authType?: "OAuth2" | "PAT" | undefined;
|
|
33015
33017
|
handle?: string | undefined;
|
|
33016
33018
|
avatarUrl?: string | undefined;
|
|
33019
|
+
authType?: "OAuth2" | "PAT" | undefined;
|
|
33017
33020
|
customUrl?: string | undefined;
|
|
33018
33021
|
}, {
|
|
33019
33022
|
id: string;
|
|
33020
33023
|
email?: string | undefined;
|
|
33021
|
-
authType?: "OAuth2" | "PAT" | undefined;
|
|
33022
33024
|
handle?: string | undefined;
|
|
33023
33025
|
avatarUrl?: string | undefined;
|
|
33026
|
+
authType?: "OAuth2" | "PAT" | undefined;
|
|
33024
33027
|
customUrl?: string | undefined;
|
|
33025
33028
|
}>>;
|
|
33026
33029
|
github: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -33033,16 +33036,16 @@ declare const DTOUserProfileUpdateResponse: z.ZodObject<{
|
|
|
33033
33036
|
}, "strip", z.ZodTypeAny, {
|
|
33034
33037
|
id: string;
|
|
33035
33038
|
email?: string | undefined;
|
|
33036
|
-
authType?: "OAuth2" | "PAT" | undefined;
|
|
33037
33039
|
handle?: string | undefined;
|
|
33038
33040
|
avatarUrl?: string | undefined;
|
|
33041
|
+
authType?: "OAuth2" | "PAT" | undefined;
|
|
33039
33042
|
customUrl?: string | undefined;
|
|
33040
33043
|
}, {
|
|
33041
33044
|
id: string;
|
|
33042
33045
|
email?: string | undefined;
|
|
33043
|
-
authType?: "OAuth2" | "PAT" | undefined;
|
|
33044
33046
|
handle?: string | undefined;
|
|
33045
33047
|
avatarUrl?: string | undefined;
|
|
33048
|
+
authType?: "OAuth2" | "PAT" | undefined;
|
|
33046
33049
|
customUrl?: string | undefined;
|
|
33047
33050
|
}>, "many">>;
|
|
33048
33051
|
azure: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -33055,16 +33058,16 @@ declare const DTOUserProfileUpdateResponse: z.ZodObject<{
|
|
|
33055
33058
|
}, "strip", z.ZodTypeAny, {
|
|
33056
33059
|
id: string;
|
|
33057
33060
|
email?: string | undefined;
|
|
33058
|
-
authType?: "OAuth2" | "PAT" | undefined;
|
|
33059
33061
|
handle?: string | undefined;
|
|
33060
33062
|
avatarUrl?: string | undefined;
|
|
33063
|
+
authType?: "OAuth2" | "PAT" | undefined;
|
|
33061
33064
|
customUrl?: string | undefined;
|
|
33062
33065
|
}, {
|
|
33063
33066
|
id: string;
|
|
33064
33067
|
email?: string | undefined;
|
|
33065
|
-
authType?: "OAuth2" | "PAT" | undefined;
|
|
33066
33068
|
handle?: string | undefined;
|
|
33067
33069
|
avatarUrl?: string | undefined;
|
|
33070
|
+
authType?: "OAuth2" | "PAT" | undefined;
|
|
33068
33071
|
customUrl?: string | undefined;
|
|
33069
33072
|
}>, "many">>;
|
|
33070
33073
|
gitlab: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -33077,16 +33080,16 @@ declare const DTOUserProfileUpdateResponse: z.ZodObject<{
|
|
|
33077
33080
|
}, "strip", z.ZodTypeAny, {
|
|
33078
33081
|
id: string;
|
|
33079
33082
|
email?: string | undefined;
|
|
33080
|
-
authType?: "OAuth2" | "PAT" | undefined;
|
|
33081
33083
|
handle?: string | undefined;
|
|
33082
33084
|
avatarUrl?: string | undefined;
|
|
33085
|
+
authType?: "OAuth2" | "PAT" | undefined;
|
|
33083
33086
|
customUrl?: string | undefined;
|
|
33084
33087
|
}, {
|
|
33085
33088
|
id: string;
|
|
33086
33089
|
email?: string | undefined;
|
|
33087
|
-
authType?: "OAuth2" | "PAT" | undefined;
|
|
33088
33090
|
handle?: string | undefined;
|
|
33089
33091
|
avatarUrl?: string | undefined;
|
|
33092
|
+
authType?: "OAuth2" | "PAT" | undefined;
|
|
33090
33093
|
customUrl?: string | undefined;
|
|
33091
33094
|
}>, "many">>;
|
|
33092
33095
|
bitbucket: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -33099,98 +33102,98 @@ declare const DTOUserProfileUpdateResponse: z.ZodObject<{
|
|
|
33099
33102
|
}, "strip", z.ZodTypeAny, {
|
|
33100
33103
|
id: string;
|
|
33101
33104
|
email?: string | undefined;
|
|
33102
|
-
authType?: "OAuth2" | "PAT" | undefined;
|
|
33103
33105
|
handle?: string | undefined;
|
|
33104
33106
|
avatarUrl?: string | undefined;
|
|
33107
|
+
authType?: "OAuth2" | "PAT" | undefined;
|
|
33105
33108
|
customUrl?: string | undefined;
|
|
33106
33109
|
}, {
|
|
33107
33110
|
id: string;
|
|
33108
33111
|
email?: string | undefined;
|
|
33109
|
-
authType?: "OAuth2" | "PAT" | undefined;
|
|
33110
33112
|
handle?: string | undefined;
|
|
33111
33113
|
avatarUrl?: string | undefined;
|
|
33114
|
+
authType?: "OAuth2" | "PAT" | undefined;
|
|
33112
33115
|
customUrl?: string | undefined;
|
|
33113
33116
|
}>, "many">>;
|
|
33114
33117
|
}, "strip", z.ZodTypeAny, {
|
|
33115
33118
|
azure?: {
|
|
33116
33119
|
id: string;
|
|
33117
33120
|
email?: string | undefined;
|
|
33118
|
-
authType?: "OAuth2" | "PAT" | undefined;
|
|
33119
33121
|
handle?: string | undefined;
|
|
33120
33122
|
avatarUrl?: string | undefined;
|
|
33123
|
+
authType?: "OAuth2" | "PAT" | undefined;
|
|
33121
33124
|
customUrl?: string | undefined;
|
|
33122
33125
|
}[] | undefined;
|
|
33123
33126
|
github?: {
|
|
33124
33127
|
id: string;
|
|
33125
33128
|
email?: string | undefined;
|
|
33126
|
-
authType?: "OAuth2" | "PAT" | undefined;
|
|
33127
33129
|
handle?: string | undefined;
|
|
33128
33130
|
avatarUrl?: string | undefined;
|
|
33131
|
+
authType?: "OAuth2" | "PAT" | undefined;
|
|
33129
33132
|
customUrl?: string | undefined;
|
|
33130
33133
|
}[] | undefined;
|
|
33131
33134
|
gitlab?: {
|
|
33132
33135
|
id: string;
|
|
33133
33136
|
email?: string | undefined;
|
|
33134
|
-
authType?: "OAuth2" | "PAT" | undefined;
|
|
33135
33137
|
handle?: string | undefined;
|
|
33136
33138
|
avatarUrl?: string | undefined;
|
|
33139
|
+
authType?: "OAuth2" | "PAT" | undefined;
|
|
33137
33140
|
customUrl?: string | undefined;
|
|
33138
33141
|
}[] | undefined;
|
|
33139
33142
|
bitbucket?: {
|
|
33140
33143
|
id: string;
|
|
33141
33144
|
email?: string | undefined;
|
|
33142
|
-
authType?: "OAuth2" | "PAT" | undefined;
|
|
33143
33145
|
handle?: string | undefined;
|
|
33144
33146
|
avatarUrl?: string | undefined;
|
|
33147
|
+
authType?: "OAuth2" | "PAT" | undefined;
|
|
33145
33148
|
customUrl?: string | undefined;
|
|
33146
33149
|
}[] | undefined;
|
|
33147
33150
|
figma?: {
|
|
33148
33151
|
id: string;
|
|
33149
33152
|
email?: string | undefined;
|
|
33150
|
-
authType?: "OAuth2" | "PAT" | undefined;
|
|
33151
33153
|
handle?: string | undefined;
|
|
33152
33154
|
avatarUrl?: string | undefined;
|
|
33155
|
+
authType?: "OAuth2" | "PAT" | undefined;
|
|
33153
33156
|
customUrl?: string | undefined;
|
|
33154
33157
|
} | undefined;
|
|
33155
33158
|
}, {
|
|
33156
33159
|
azure?: {
|
|
33157
33160
|
id: string;
|
|
33158
33161
|
email?: string | undefined;
|
|
33159
|
-
authType?: "OAuth2" | "PAT" | undefined;
|
|
33160
33162
|
handle?: string | undefined;
|
|
33161
33163
|
avatarUrl?: string | undefined;
|
|
33164
|
+
authType?: "OAuth2" | "PAT" | undefined;
|
|
33162
33165
|
customUrl?: string | undefined;
|
|
33163
33166
|
}[] | undefined;
|
|
33164
33167
|
github?: {
|
|
33165
33168
|
id: string;
|
|
33166
33169
|
email?: string | undefined;
|
|
33167
|
-
authType?: "OAuth2" | "PAT" | undefined;
|
|
33168
33170
|
handle?: string | undefined;
|
|
33169
33171
|
avatarUrl?: string | undefined;
|
|
33172
|
+
authType?: "OAuth2" | "PAT" | undefined;
|
|
33170
33173
|
customUrl?: string | undefined;
|
|
33171
33174
|
}[] | undefined;
|
|
33172
33175
|
gitlab?: {
|
|
33173
33176
|
id: string;
|
|
33174
33177
|
email?: string | undefined;
|
|
33175
|
-
authType?: "OAuth2" | "PAT" | undefined;
|
|
33176
33178
|
handle?: string | undefined;
|
|
33177
33179
|
avatarUrl?: string | undefined;
|
|
33180
|
+
authType?: "OAuth2" | "PAT" | undefined;
|
|
33178
33181
|
customUrl?: string | undefined;
|
|
33179
33182
|
}[] | undefined;
|
|
33180
33183
|
bitbucket?: {
|
|
33181
33184
|
id: string;
|
|
33182
33185
|
email?: string | undefined;
|
|
33183
|
-
authType?: "OAuth2" | "PAT" | undefined;
|
|
33184
33186
|
handle?: string | undefined;
|
|
33185
33187
|
avatarUrl?: string | undefined;
|
|
33188
|
+
authType?: "OAuth2" | "PAT" | undefined;
|
|
33186
33189
|
customUrl?: string | undefined;
|
|
33187
33190
|
}[] | undefined;
|
|
33188
33191
|
figma?: {
|
|
33189
33192
|
id: string;
|
|
33190
33193
|
email?: string | undefined;
|
|
33191
|
-
authType?: "OAuth2" | "PAT" | undefined;
|
|
33192
33194
|
handle?: string | undefined;
|
|
33193
33195
|
avatarUrl?: string | undefined;
|
|
33196
|
+
authType?: "OAuth2" | "PAT" | undefined;
|
|
33194
33197
|
customUrl?: string | undefined;
|
|
33195
33198
|
} | undefined;
|
|
33196
33199
|
}>>;
|
|
@@ -33226,41 +33229,41 @@ declare const DTOUserProfileUpdateResponse: z.ZodObject<{
|
|
|
33226
33229
|
azure?: {
|
|
33227
33230
|
id: string;
|
|
33228
33231
|
email?: string | undefined;
|
|
33229
|
-
authType?: "OAuth2" | "PAT" | undefined;
|
|
33230
33232
|
handle?: string | undefined;
|
|
33231
33233
|
avatarUrl?: string | undefined;
|
|
33234
|
+
authType?: "OAuth2" | "PAT" | undefined;
|
|
33232
33235
|
customUrl?: string | undefined;
|
|
33233
33236
|
}[] | undefined;
|
|
33234
33237
|
github?: {
|
|
33235
33238
|
id: string;
|
|
33236
33239
|
email?: string | undefined;
|
|
33237
|
-
authType?: "OAuth2" | "PAT" | undefined;
|
|
33238
33240
|
handle?: string | undefined;
|
|
33239
33241
|
avatarUrl?: string | undefined;
|
|
33242
|
+
authType?: "OAuth2" | "PAT" | undefined;
|
|
33240
33243
|
customUrl?: string | undefined;
|
|
33241
33244
|
}[] | undefined;
|
|
33242
33245
|
gitlab?: {
|
|
33243
33246
|
id: string;
|
|
33244
33247
|
email?: string | undefined;
|
|
33245
|
-
authType?: "OAuth2" | "PAT" | undefined;
|
|
33246
33248
|
handle?: string | undefined;
|
|
33247
33249
|
avatarUrl?: string | undefined;
|
|
33250
|
+
authType?: "OAuth2" | "PAT" | undefined;
|
|
33248
33251
|
customUrl?: string | undefined;
|
|
33249
33252
|
}[] | undefined;
|
|
33250
33253
|
bitbucket?: {
|
|
33251
33254
|
id: string;
|
|
33252
33255
|
email?: string | undefined;
|
|
33253
|
-
authType?: "OAuth2" | "PAT" | undefined;
|
|
33254
33256
|
handle?: string | undefined;
|
|
33255
33257
|
avatarUrl?: string | undefined;
|
|
33258
|
+
authType?: "OAuth2" | "PAT" | undefined;
|
|
33256
33259
|
customUrl?: string | undefined;
|
|
33257
33260
|
}[] | undefined;
|
|
33258
33261
|
figma?: {
|
|
33259
33262
|
id: string;
|
|
33260
33263
|
email?: string | undefined;
|
|
33261
|
-
authType?: "OAuth2" | "PAT" | undefined;
|
|
33262
33264
|
handle?: string | undefined;
|
|
33263
33265
|
avatarUrl?: string | undefined;
|
|
33266
|
+
authType?: "OAuth2" | "PAT" | undefined;
|
|
33264
33267
|
customUrl?: string | undefined;
|
|
33265
33268
|
} | undefined;
|
|
33266
33269
|
} | undefined;
|
|
@@ -33295,41 +33298,41 @@ declare const DTOUserProfileUpdateResponse: z.ZodObject<{
|
|
|
33295
33298
|
azure?: {
|
|
33296
33299
|
id: string;
|
|
33297
33300
|
email?: string | undefined;
|
|
33298
|
-
authType?: "OAuth2" | "PAT" | undefined;
|
|
33299
33301
|
handle?: string | undefined;
|
|
33300
33302
|
avatarUrl?: string | undefined;
|
|
33303
|
+
authType?: "OAuth2" | "PAT" | undefined;
|
|
33301
33304
|
customUrl?: string | undefined;
|
|
33302
33305
|
}[] | undefined;
|
|
33303
33306
|
github?: {
|
|
33304
33307
|
id: string;
|
|
33305
33308
|
email?: string | undefined;
|
|
33306
|
-
authType?: "OAuth2" | "PAT" | undefined;
|
|
33307
33309
|
handle?: string | undefined;
|
|
33308
33310
|
avatarUrl?: string | undefined;
|
|
33311
|
+
authType?: "OAuth2" | "PAT" | undefined;
|
|
33309
33312
|
customUrl?: string | undefined;
|
|
33310
33313
|
}[] | undefined;
|
|
33311
33314
|
gitlab?: {
|
|
33312
33315
|
id: string;
|
|
33313
33316
|
email?: string | undefined;
|
|
33314
|
-
authType?: "OAuth2" | "PAT" | undefined;
|
|
33315
33317
|
handle?: string | undefined;
|
|
33316
33318
|
avatarUrl?: string | undefined;
|
|
33319
|
+
authType?: "OAuth2" | "PAT" | undefined;
|
|
33317
33320
|
customUrl?: string | undefined;
|
|
33318
33321
|
}[] | undefined;
|
|
33319
33322
|
bitbucket?: {
|
|
33320
33323
|
id: string;
|
|
33321
33324
|
email?: string | undefined;
|
|
33322
|
-
authType?: "OAuth2" | "PAT" | undefined;
|
|
33323
33325
|
handle?: string | undefined;
|
|
33324
33326
|
avatarUrl?: string | undefined;
|
|
33327
|
+
authType?: "OAuth2" | "PAT" | undefined;
|
|
33325
33328
|
customUrl?: string | undefined;
|
|
33326
33329
|
}[] | undefined;
|
|
33327
33330
|
figma?: {
|
|
33328
33331
|
id: string;
|
|
33329
33332
|
email?: string | undefined;
|
|
33330
|
-
authType?: "OAuth2" | "PAT" | undefined;
|
|
33331
33333
|
handle?: string | undefined;
|
|
33332
33334
|
avatarUrl?: string | undefined;
|
|
33335
|
+
authType?: "OAuth2" | "PAT" | undefined;
|
|
33333
33336
|
customUrl?: string | undefined;
|
|
33334
33337
|
} | undefined;
|
|
33335
33338
|
} | undefined;
|
|
@@ -33366,41 +33369,41 @@ declare const DTOUserProfileUpdateResponse: z.ZodObject<{
|
|
|
33366
33369
|
azure?: {
|
|
33367
33370
|
id: string;
|
|
33368
33371
|
email?: string | undefined;
|
|
33369
|
-
authType?: "OAuth2" | "PAT" | undefined;
|
|
33370
33372
|
handle?: string | undefined;
|
|
33371
33373
|
avatarUrl?: string | undefined;
|
|
33374
|
+
authType?: "OAuth2" | "PAT" | undefined;
|
|
33372
33375
|
customUrl?: string | undefined;
|
|
33373
33376
|
}[] | undefined;
|
|
33374
33377
|
github?: {
|
|
33375
33378
|
id: string;
|
|
33376
33379
|
email?: string | undefined;
|
|
33377
|
-
authType?: "OAuth2" | "PAT" | undefined;
|
|
33378
33380
|
handle?: string | undefined;
|
|
33379
33381
|
avatarUrl?: string | undefined;
|
|
33382
|
+
authType?: "OAuth2" | "PAT" | undefined;
|
|
33380
33383
|
customUrl?: string | undefined;
|
|
33381
33384
|
}[] | undefined;
|
|
33382
33385
|
gitlab?: {
|
|
33383
33386
|
id: string;
|
|
33384
33387
|
email?: string | undefined;
|
|
33385
|
-
authType?: "OAuth2" | "PAT" | undefined;
|
|
33386
33388
|
handle?: string | undefined;
|
|
33387
33389
|
avatarUrl?: string | undefined;
|
|
33390
|
+
authType?: "OAuth2" | "PAT" | undefined;
|
|
33388
33391
|
customUrl?: string | undefined;
|
|
33389
33392
|
}[] | undefined;
|
|
33390
33393
|
bitbucket?: {
|
|
33391
33394
|
id: string;
|
|
33392
33395
|
email?: string | undefined;
|
|
33393
|
-
authType?: "OAuth2" | "PAT" | undefined;
|
|
33394
33396
|
handle?: string | undefined;
|
|
33395
33397
|
avatarUrl?: string | undefined;
|
|
33398
|
+
authType?: "OAuth2" | "PAT" | undefined;
|
|
33396
33399
|
customUrl?: string | undefined;
|
|
33397
33400
|
}[] | undefined;
|
|
33398
33401
|
figma?: {
|
|
33399
33402
|
id: string;
|
|
33400
33403
|
email?: string | undefined;
|
|
33401
|
-
authType?: "OAuth2" | "PAT" | undefined;
|
|
33402
33404
|
handle?: string | undefined;
|
|
33403
33405
|
avatarUrl?: string | undefined;
|
|
33406
|
+
authType?: "OAuth2" | "PAT" | undefined;
|
|
33404
33407
|
customUrl?: string | undefined;
|
|
33405
33408
|
} | undefined;
|
|
33406
33409
|
} | undefined;
|
|
@@ -33437,41 +33440,41 @@ declare const DTOUserProfileUpdateResponse: z.ZodObject<{
|
|
|
33437
33440
|
azure?: {
|
|
33438
33441
|
id: string;
|
|
33439
33442
|
email?: string | undefined;
|
|
33440
|
-
authType?: "OAuth2" | "PAT" | undefined;
|
|
33441
33443
|
handle?: string | undefined;
|
|
33442
33444
|
avatarUrl?: string | undefined;
|
|
33445
|
+
authType?: "OAuth2" | "PAT" | undefined;
|
|
33443
33446
|
customUrl?: string | undefined;
|
|
33444
33447
|
}[] | undefined;
|
|
33445
33448
|
github?: {
|
|
33446
33449
|
id: string;
|
|
33447
33450
|
email?: string | undefined;
|
|
33448
|
-
authType?: "OAuth2" | "PAT" | undefined;
|
|
33449
33451
|
handle?: string | undefined;
|
|
33450
33452
|
avatarUrl?: string | undefined;
|
|
33453
|
+
authType?: "OAuth2" | "PAT" | undefined;
|
|
33451
33454
|
customUrl?: string | undefined;
|
|
33452
33455
|
}[] | undefined;
|
|
33453
33456
|
gitlab?: {
|
|
33454
33457
|
id: string;
|
|
33455
33458
|
email?: string | undefined;
|
|
33456
|
-
authType?: "OAuth2" | "PAT" | undefined;
|
|
33457
33459
|
handle?: string | undefined;
|
|
33458
33460
|
avatarUrl?: string | undefined;
|
|
33461
|
+
authType?: "OAuth2" | "PAT" | undefined;
|
|
33459
33462
|
customUrl?: string | undefined;
|
|
33460
33463
|
}[] | undefined;
|
|
33461
33464
|
bitbucket?: {
|
|
33462
33465
|
id: string;
|
|
33463
33466
|
email?: string | undefined;
|
|
33464
|
-
authType?: "OAuth2" | "PAT" | undefined;
|
|
33465
33467
|
handle?: string | undefined;
|
|
33466
33468
|
avatarUrl?: string | undefined;
|
|
33469
|
+
authType?: "OAuth2" | "PAT" | undefined;
|
|
33467
33470
|
customUrl?: string | undefined;
|
|
33468
33471
|
}[] | undefined;
|
|
33469
33472
|
figma?: {
|
|
33470
33473
|
id: string;
|
|
33471
33474
|
email?: string | undefined;
|
|
33472
|
-
authType?: "OAuth2" | "PAT" | undefined;
|
|
33473
33475
|
handle?: string | undefined;
|
|
33474
33476
|
avatarUrl?: string | undefined;
|
|
33477
|
+
authType?: "OAuth2" | "PAT" | undefined;
|
|
33475
33478
|
customUrl?: string | undefined;
|
|
33476
33479
|
} | undefined;
|
|
33477
33480
|
} | undefined;
|
|
@@ -39623,6 +39626,7 @@ declare const DTODesignSystemUpdateInput: z.ZodObject<z.objectUtil.extendShape<O
|
|
|
39623
39626
|
} | null | undefined>>;
|
|
39624
39627
|
isApprovalFeatureEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
39625
39628
|
approvalRequiredForPublishing: z.ZodOptional<z.ZodBoolean>;
|
|
39629
|
+
accessMode: z.ZodOptional<z.ZodEnum<["Open", "InviteOnly"]>>;
|
|
39626
39630
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
39627
39631
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
39628
39632
|
}, "id" | "createdAt" | "updatedAt" | "workspaceId" | "docSlug" | "docViewUrl">, {
|
|
@@ -39655,6 +39659,7 @@ declare const DTODesignSystemUpdateInput: z.ZodObject<z.objectUtil.extendShape<O
|
|
|
39655
39659
|
} | undefined;
|
|
39656
39660
|
isApprovalFeatureEnabled?: boolean | undefined;
|
|
39657
39661
|
approvalRequiredForPublishing?: boolean | undefined;
|
|
39662
|
+
accessMode?: "Open" | "InviteOnly" | undefined;
|
|
39658
39663
|
}, {
|
|
39659
39664
|
name?: string | undefined;
|
|
39660
39665
|
description?: string | undefined;
|
|
@@ -39674,6 +39679,7 @@ declare const DTODesignSystemUpdateInput: z.ZodObject<z.objectUtil.extendShape<O
|
|
|
39674
39679
|
} | null | undefined;
|
|
39675
39680
|
isApprovalFeatureEnabled?: boolean | undefined;
|
|
39676
39681
|
approvalRequiredForPublishing?: boolean | undefined;
|
|
39682
|
+
accessMode?: "Open" | "InviteOnly" | undefined;
|
|
39677
39683
|
}>;
|
|
39678
39684
|
type DTODesignSystemUpdateInput = z.infer<typeof DTODesignSystemUpdateInput>;
|
|
39679
39685
|
|
package/dist/index.js
CHANGED
|
@@ -127,7 +127,6 @@ var _slugify = require('@sindresorhus/slugify'); var _slugify2 = _interopRequire
|
|
|
127
127
|
|
|
128
128
|
|
|
129
129
|
|
|
130
|
-
var _ipcidr = require('ip-cidr'); var _ipcidr2 = _interopRequireDefault(_ipcidr);
|
|
131
130
|
|
|
132
131
|
|
|
133
132
|
|
|
@@ -152,6 +151,7 @@ var _ipcidr = require('ip-cidr'); var _ipcidr2 = _interopRequireDefault(_ipcidr)
|
|
|
152
151
|
|
|
153
152
|
|
|
154
153
|
|
|
154
|
+
var _ipcidr = require('ip-cidr'); var _ipcidr2 = _interopRequireDefault(_ipcidr);
|
|
155
155
|
|
|
156
156
|
|
|
157
157
|
|
|
@@ -3588,87 +3588,7 @@ var Brand = _zod.z.object({
|
|
|
3588
3588
|
name: _zod.z.string(),
|
|
3589
3589
|
description: _zod.z.string()
|
|
3590
3590
|
});
|
|
3591
|
-
var
|
|
3592
|
-
var NpmRegistryType = _zod.z.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
|
|
3593
|
-
var NpmRegistryBasicAuthConfig = _zod.z.object({
|
|
3594
|
-
authType: _zod.z.literal(NpmRegistryAuthType.Enum.Basic),
|
|
3595
|
-
username: _zod.z.string(),
|
|
3596
|
-
password: _zod.z.string()
|
|
3597
|
-
});
|
|
3598
|
-
var NpmRegistryBearerAuthConfig = _zod.z.object({
|
|
3599
|
-
authType: _zod.z.literal(NpmRegistryAuthType.Enum.Bearer),
|
|
3600
|
-
accessToken: _zod.z.string()
|
|
3601
|
-
});
|
|
3602
|
-
var NpmRegistryNoAuthConfig = _zod.z.object({
|
|
3603
|
-
authType: _zod.z.literal(NpmRegistryAuthType.Enum.None)
|
|
3604
|
-
});
|
|
3605
|
-
var NpmRegistrCustomAuthConfig = _zod.z.object({
|
|
3606
|
-
authType: _zod.z.literal(NpmRegistryAuthType.Enum.Custom),
|
|
3607
|
-
authHeaderName: _zod.z.string(),
|
|
3608
|
-
authHeaderValue: _zod.z.string()
|
|
3609
|
-
});
|
|
3610
|
-
var NpmRegistryAuthConfig = _zod.z.discriminatedUnion("authType", [
|
|
3611
|
-
NpmRegistryBasicAuthConfig,
|
|
3612
|
-
NpmRegistryBearerAuthConfig,
|
|
3613
|
-
NpmRegistryNoAuthConfig,
|
|
3614
|
-
NpmRegistrCustomAuthConfig
|
|
3615
|
-
]);
|
|
3616
|
-
var NpmRegistryConfigBase = _zod.z.object({
|
|
3617
|
-
registryType: NpmRegistryType,
|
|
3618
|
-
enabledScopes: _zod.z.array(_zod.z.string()),
|
|
3619
|
-
customRegistryUrl: _zod.z.string().optional(),
|
|
3620
|
-
bypassProxy: _zod.z.boolean().default(false),
|
|
3621
|
-
npmProxyRegistryConfigId: _zod.z.string().optional(),
|
|
3622
|
-
npmProxyVersion: _zod.z.number().optional()
|
|
3623
|
-
});
|
|
3624
|
-
var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
|
|
3625
|
-
var SsoProvider = _zod.z.object({
|
|
3626
|
-
providerId: _zod.z.string(),
|
|
3627
|
-
defaultAutoInviteValue: _zod.z.boolean(),
|
|
3628
|
-
autoInviteDomains: _zod.z.record(_zod.z.string(), _zod.z.boolean()),
|
|
3629
|
-
skipDocsSupernovaLogin: _zod.z.boolean(),
|
|
3630
|
-
areInvitesDisabled: _zod.z.boolean(),
|
|
3631
|
-
isTestMode: _zod.z.boolean(),
|
|
3632
|
-
emailDomains: _zod.z.array(_zod.z.string()),
|
|
3633
|
-
metadataXml: _zod.z.string().nullish()
|
|
3634
|
-
});
|
|
3635
|
-
var isValidCIDR = (value) => {
|
|
3636
|
-
return _ipcidr2.default.isValidAddress(value);
|
|
3637
|
-
};
|
|
3638
|
-
var WorkspaceIpWhitelistEntry = _zod.z.object({
|
|
3639
|
-
isEnabled: _zod.z.boolean(),
|
|
3640
|
-
name: _zod.z.string(),
|
|
3641
|
-
range: _zod.z.string().refine(isValidCIDR, {
|
|
3642
|
-
message: "Invalid IP CIDR"
|
|
3643
|
-
})
|
|
3644
|
-
});
|
|
3645
|
-
var WorkspaceIpSettings = _zod.z.object({
|
|
3646
|
-
isEnabledForCloud: _zod.z.boolean(),
|
|
3647
|
-
isEnabledForDocs: _zod.z.boolean(),
|
|
3648
|
-
entries: _zod.z.array(WorkspaceIpWhitelistEntry)
|
|
3649
|
-
});
|
|
3650
|
-
var WorkspaceProfile = _zod.z.object({
|
|
3651
|
-
name: _zod.z.string(),
|
|
3652
|
-
handle: _zod.z.string(),
|
|
3653
|
-
color: _zod.z.string(),
|
|
3654
|
-
avatar: nullishToOptional(_zod.z.string()),
|
|
3655
|
-
billingDetails: nullishToOptional(BillingDetails)
|
|
3656
|
-
});
|
|
3657
|
-
var WorkspaceProfileUpdate = WorkspaceProfile.omit({
|
|
3658
|
-
avatar: true
|
|
3659
|
-
});
|
|
3660
|
-
var Workspace = _zod.z.object({
|
|
3661
|
-
id: _zod.z.string(),
|
|
3662
|
-
profile: WorkspaceProfile,
|
|
3663
|
-
subscription: Subscription,
|
|
3664
|
-
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
3665
|
-
sso: nullishToOptional(SsoProvider),
|
|
3666
|
-
npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
|
|
3667
|
-
});
|
|
3668
|
-
var WorkspaceWithDesignSystems = _zod.z.object({
|
|
3669
|
-
workspace: Workspace,
|
|
3670
|
-
designSystems: _zod.z.array(DesignSystem)
|
|
3671
|
-
});
|
|
3591
|
+
var DesignSystemAccessMode = _zod.z.enum(["Open", "InviteOnly"]);
|
|
3672
3592
|
var DesignSystemSwitcher = _zod.z.object({
|
|
3673
3593
|
isEnabled: _zod.z.boolean(),
|
|
3674
3594
|
designSystemIds: _zod.z.array(_zod.z.string())
|
|
@@ -3689,13 +3609,10 @@ var DesignSystem = _zod.z.object({
|
|
|
3689
3609
|
designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
|
|
3690
3610
|
isApprovalFeatureEnabled: _zod.z.boolean(),
|
|
3691
3611
|
approvalRequiredForPublishing: _zod.z.boolean(),
|
|
3612
|
+
accessMode: DesignSystemAccessMode,
|
|
3692
3613
|
createdAt: _zod.z.coerce.date(),
|
|
3693
3614
|
updatedAt: _zod.z.coerce.date()
|
|
3694
3615
|
});
|
|
3695
|
-
var DesignSystemWithWorkspace = _zod.z.object({
|
|
3696
|
-
designSystem: DesignSystem,
|
|
3697
|
-
workspace: Workspace
|
|
3698
|
-
});
|
|
3699
3616
|
var DS_NAME_MIN_LENGTH = 2;
|
|
3700
3617
|
var DS_NAME_MAX_LENGTH = 64;
|
|
3701
3618
|
var DS_DESC_MAX_LENGTH = 2048;
|
|
@@ -4220,6 +4137,87 @@ function formatCustomUrl(url) {
|
|
|
4220
4137
|
}
|
|
4221
4138
|
return forbiddenCustomUrlDomainList.some((domain) => formattedUrl.includes(domain)) ? void 0 : formattedUrl;
|
|
4222
4139
|
}
|
|
4140
|
+
var NpmRegistryAuthType = _zod.z.enum(["Basic", "Bearer", "None", "Custom"]);
|
|
4141
|
+
var NpmRegistryType = _zod.z.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
|
|
4142
|
+
var NpmRegistryBasicAuthConfig = _zod.z.object({
|
|
4143
|
+
authType: _zod.z.literal(NpmRegistryAuthType.Enum.Basic),
|
|
4144
|
+
username: _zod.z.string(),
|
|
4145
|
+
password: _zod.z.string()
|
|
4146
|
+
});
|
|
4147
|
+
var NpmRegistryBearerAuthConfig = _zod.z.object({
|
|
4148
|
+
authType: _zod.z.literal(NpmRegistryAuthType.Enum.Bearer),
|
|
4149
|
+
accessToken: _zod.z.string()
|
|
4150
|
+
});
|
|
4151
|
+
var NpmRegistryNoAuthConfig = _zod.z.object({
|
|
4152
|
+
authType: _zod.z.literal(NpmRegistryAuthType.Enum.None)
|
|
4153
|
+
});
|
|
4154
|
+
var NpmRegistrCustomAuthConfig = _zod.z.object({
|
|
4155
|
+
authType: _zod.z.literal(NpmRegistryAuthType.Enum.Custom),
|
|
4156
|
+
authHeaderName: _zod.z.string(),
|
|
4157
|
+
authHeaderValue: _zod.z.string()
|
|
4158
|
+
});
|
|
4159
|
+
var NpmRegistryAuthConfig = _zod.z.discriminatedUnion("authType", [
|
|
4160
|
+
NpmRegistryBasicAuthConfig,
|
|
4161
|
+
NpmRegistryBearerAuthConfig,
|
|
4162
|
+
NpmRegistryNoAuthConfig,
|
|
4163
|
+
NpmRegistrCustomAuthConfig
|
|
4164
|
+
]);
|
|
4165
|
+
var NpmRegistryConfigBase = _zod.z.object({
|
|
4166
|
+
registryType: NpmRegistryType,
|
|
4167
|
+
enabledScopes: _zod.z.array(_zod.z.string()),
|
|
4168
|
+
customRegistryUrl: _zod.z.string().optional(),
|
|
4169
|
+
bypassProxy: _zod.z.boolean().default(false),
|
|
4170
|
+
npmProxyRegistryConfigId: _zod.z.string().optional(),
|
|
4171
|
+
npmProxyVersion: _zod.z.number().optional()
|
|
4172
|
+
});
|
|
4173
|
+
var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
|
|
4174
|
+
var SsoProvider = _zod.z.object({
|
|
4175
|
+
providerId: _zod.z.string(),
|
|
4176
|
+
defaultAutoInviteValue: _zod.z.boolean(),
|
|
4177
|
+
autoInviteDomains: _zod.z.record(_zod.z.string(), _zod.z.boolean()),
|
|
4178
|
+
skipDocsSupernovaLogin: _zod.z.boolean(),
|
|
4179
|
+
areInvitesDisabled: _zod.z.boolean(),
|
|
4180
|
+
isTestMode: _zod.z.boolean(),
|
|
4181
|
+
emailDomains: _zod.z.array(_zod.z.string()),
|
|
4182
|
+
metadataXml: _zod.z.string().nullish()
|
|
4183
|
+
});
|
|
4184
|
+
var isValidCIDR = (value) => {
|
|
4185
|
+
return _ipcidr2.default.isValidAddress(value);
|
|
4186
|
+
};
|
|
4187
|
+
var WorkspaceIpWhitelistEntry = _zod.z.object({
|
|
4188
|
+
isEnabled: _zod.z.boolean(),
|
|
4189
|
+
name: _zod.z.string(),
|
|
4190
|
+
range: _zod.z.string().refine(isValidCIDR, {
|
|
4191
|
+
message: "Invalid IP CIDR"
|
|
4192
|
+
})
|
|
4193
|
+
});
|
|
4194
|
+
var WorkspaceIpSettings = _zod.z.object({
|
|
4195
|
+
isEnabledForCloud: _zod.z.boolean(),
|
|
4196
|
+
isEnabledForDocs: _zod.z.boolean(),
|
|
4197
|
+
entries: _zod.z.array(WorkspaceIpWhitelistEntry)
|
|
4198
|
+
});
|
|
4199
|
+
var WorkspaceProfile = _zod.z.object({
|
|
4200
|
+
name: _zod.z.string(),
|
|
4201
|
+
handle: _zod.z.string(),
|
|
4202
|
+
color: _zod.z.string(),
|
|
4203
|
+
avatar: nullishToOptional(_zod.z.string()),
|
|
4204
|
+
billingDetails: nullishToOptional(BillingDetails)
|
|
4205
|
+
});
|
|
4206
|
+
var WorkspaceProfileUpdate = WorkspaceProfile.omit({
|
|
4207
|
+
avatar: true
|
|
4208
|
+
});
|
|
4209
|
+
var Workspace = _zod.z.object({
|
|
4210
|
+
id: _zod.z.string(),
|
|
4211
|
+
profile: WorkspaceProfile,
|
|
4212
|
+
subscription: Subscription,
|
|
4213
|
+
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
4214
|
+
sso: nullishToOptional(SsoProvider),
|
|
4215
|
+
npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
|
|
4216
|
+
});
|
|
4217
|
+
var WorkspaceWithDesignSystems = _zod.z.object({
|
|
4218
|
+
workspace: Workspace,
|
|
4219
|
+
designSystems: _zod.z.array(DesignSystem)
|
|
4220
|
+
});
|
|
4223
4221
|
var WorkspaceDump = _zod.z.object({
|
|
4224
4222
|
workspace: Workspace,
|
|
4225
4223
|
designSystems: DesignSystemDump.array(),
|