@supernova-studio/model 1.31.6 → 1.32.1

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.ts CHANGED
@@ -12173,6 +12173,9 @@ declare const UserDump: z.ZodObject<{
12173
12173
  authHeaderName: string;
12174
12174
  authHeaderValue: string;
12175
12175
  })) | null | undefined>;
12176
+ aiFeaturesEnabled: z.ZodDefault<z.ZodBoolean>;
12177
+ aiAskFeaturesEnabled: z.ZodDefault<z.ZodBoolean>;
12178
+ aiCustomInstruction: z.ZodOptional<z.ZodString>;
12176
12179
  }, "strip", z.ZodTypeAny, {
12177
12180
  id: string;
12178
12181
  profile: {
@@ -12221,6 +12224,8 @@ declare const UserDump: z.ZodObject<{
12221
12224
  cancelAt?: string | undefined;
12222
12225
  subscriptionStatusUpdatedAt?: string | undefined;
12223
12226
  };
12227
+ aiFeaturesEnabled: boolean;
12228
+ aiAskFeaturesEnabled: boolean;
12224
12229
  sso?: {
12225
12230
  providerId: string;
12226
12231
  defaultAutoInviteValue: boolean;
@@ -12261,6 +12266,7 @@ declare const UserDump: z.ZodObject<{
12261
12266
  authHeaderName: string;
12262
12267
  authHeaderValue: string;
12263
12268
  })> | undefined;
12269
+ aiCustomInstruction?: string | undefined;
12264
12270
  }, {
12265
12271
  id: string;
12266
12272
  profile: {
@@ -12349,6 +12355,9 @@ declare const UserDump: z.ZodObject<{
12349
12355
  authHeaderName: string;
12350
12356
  authHeaderValue: string;
12351
12357
  })) | null | undefined;
12358
+ aiFeaturesEnabled?: boolean | undefined;
12359
+ aiAskFeaturesEnabled?: boolean | undefined;
12360
+ aiCustomInstruction?: string | undefined;
12352
12361
  }>;
12353
12362
  designSystems: z.ZodArray<z.ZodObject<{
12354
12363
  designSystem: z.ZodObject<{
@@ -19216,6 +19225,8 @@ declare const UserDump: z.ZodObject<{
19216
19225
  cancelAt?: string | undefined;
19217
19226
  subscriptionStatusUpdatedAt?: string | undefined;
19218
19227
  };
19228
+ aiFeaturesEnabled: boolean;
19229
+ aiAskFeaturesEnabled: boolean;
19219
19230
  sso?: {
19220
19231
  providerId: string;
19221
19232
  defaultAutoInviteValue: boolean;
@@ -19256,6 +19267,7 @@ declare const UserDump: z.ZodObject<{
19256
19267
  authHeaderName: string;
19257
19268
  authHeaderValue: string;
19258
19269
  })> | undefined;
19270
+ aiCustomInstruction?: string | undefined;
19259
19271
  };
19260
19272
  designSystems: {
19261
19273
  files: {
@@ -20138,6 +20150,9 @@ declare const UserDump: z.ZodObject<{
20138
20150
  authHeaderName: string;
20139
20151
  authHeaderValue: string;
20140
20152
  })) | null | undefined;
20153
+ aiFeaturesEnabled?: boolean | undefined;
20154
+ aiAskFeaturesEnabled?: boolean | undefined;
20155
+ aiCustomInstruction?: string | undefined;
20141
20156
  };
20142
20157
  designSystems: {
20143
20158
  files: {
@@ -20982,6 +20997,8 @@ declare const UserDump: z.ZodObject<{
20982
20997
  cancelAt?: string | undefined;
20983
20998
  subscriptionStatusUpdatedAt?: string | undefined;
20984
20999
  };
21000
+ aiFeaturesEnabled: boolean;
21001
+ aiAskFeaturesEnabled: boolean;
20985
21002
  sso?: {
20986
21003
  providerId: string;
20987
21004
  defaultAutoInviteValue: boolean;
@@ -21022,6 +21039,7 @@ declare const UserDump: z.ZodObject<{
21022
21039
  authHeaderName: string;
21023
21040
  authHeaderValue: string;
21024
21041
  })> | undefined;
21042
+ aiCustomInstruction?: string | undefined;
21025
21043
  };
21026
21044
  designSystems: {
21027
21045
  files: {
@@ -21946,6 +21964,9 @@ declare const UserDump: z.ZodObject<{
21946
21964
  authHeaderName: string;
21947
21965
  authHeaderValue: string;
21948
21966
  })) | null | undefined;
21967
+ aiFeaturesEnabled?: boolean | undefined;
21968
+ aiAskFeaturesEnabled?: boolean | undefined;
21969
+ aiCustomInstruction?: string | undefined;
21949
21970
  };
21950
21971
  designSystems: {
21951
21972
  files: {
@@ -23137,6 +23158,9 @@ declare const WorkspaceDump: z.ZodObject<{
23137
23158
  authHeaderName: string;
23138
23159
  authHeaderValue: string;
23139
23160
  })) | null | undefined>;
23161
+ aiFeaturesEnabled: z.ZodDefault<z.ZodBoolean>;
23162
+ aiAskFeaturesEnabled: z.ZodDefault<z.ZodBoolean>;
23163
+ aiCustomInstruction: z.ZodOptional<z.ZodString>;
23140
23164
  }, "strip", z.ZodTypeAny, {
23141
23165
  id: string;
23142
23166
  profile: {
@@ -23185,6 +23209,8 @@ declare const WorkspaceDump: z.ZodObject<{
23185
23209
  cancelAt?: string | undefined;
23186
23210
  subscriptionStatusUpdatedAt?: string | undefined;
23187
23211
  };
23212
+ aiFeaturesEnabled: boolean;
23213
+ aiAskFeaturesEnabled: boolean;
23188
23214
  sso?: {
23189
23215
  providerId: string;
23190
23216
  defaultAutoInviteValue: boolean;
@@ -23225,6 +23251,7 @@ declare const WorkspaceDump: z.ZodObject<{
23225
23251
  authHeaderName: string;
23226
23252
  authHeaderValue: string;
23227
23253
  })> | undefined;
23254
+ aiCustomInstruction?: string | undefined;
23228
23255
  }, {
23229
23256
  id: string;
23230
23257
  profile: {
@@ -23313,6 +23340,9 @@ declare const WorkspaceDump: z.ZodObject<{
23313
23340
  authHeaderName: string;
23314
23341
  authHeaderValue: string;
23315
23342
  })) | null | undefined;
23343
+ aiFeaturesEnabled?: boolean | undefined;
23344
+ aiAskFeaturesEnabled?: boolean | undefined;
23345
+ aiCustomInstruction?: string | undefined;
23316
23346
  }>;
23317
23347
  designSystems: z.ZodArray<z.ZodObject<{
23318
23348
  designSystem: z.ZodObject<{
@@ -30180,6 +30210,8 @@ declare const WorkspaceDump: z.ZodObject<{
30180
30210
  cancelAt?: string | undefined;
30181
30211
  subscriptionStatusUpdatedAt?: string | undefined;
30182
30212
  };
30213
+ aiFeaturesEnabled: boolean;
30214
+ aiAskFeaturesEnabled: boolean;
30183
30215
  sso?: {
30184
30216
  providerId: string;
30185
30217
  defaultAutoInviteValue: boolean;
@@ -30220,6 +30252,7 @@ declare const WorkspaceDump: z.ZodObject<{
30220
30252
  authHeaderName: string;
30221
30253
  authHeaderValue: string;
30222
30254
  })> | undefined;
30255
+ aiCustomInstruction?: string | undefined;
30223
30256
  };
30224
30257
  designSystems: {
30225
30258
  files: {
@@ -31102,6 +31135,9 @@ declare const WorkspaceDump: z.ZodObject<{
31102
31135
  authHeaderName: string;
31103
31136
  authHeaderValue: string;
31104
31137
  })) | null | undefined;
31138
+ aiFeaturesEnabled?: boolean | undefined;
31139
+ aiAskFeaturesEnabled?: boolean | undefined;
31140
+ aiCustomInstruction?: string | undefined;
31105
31141
  };
31106
31142
  designSystems: {
31107
31143
  files: {
@@ -138226,6 +138262,9 @@ declare const WorkspaceConfigurationUpdate: z.ZodObject<{
138226
138262
  poNumber?: string | null | undefined;
138227
138263
  } | null | undefined;
138228
138264
  }>>;
138265
+ aiFeaturesEnabled: z.ZodOptional<z.ZodBoolean>;
138266
+ aiAskFeaturesEnabled: z.ZodOptional<z.ZodBoolean>;
138267
+ aiCustomInstruction: z.ZodOptional<z.ZodString>;
138229
138268
  }, "strip", z.ZodTypeAny, {
138230
138269
  id: string;
138231
138270
  profile?: {
@@ -138289,6 +138328,9 @@ declare const WorkspaceConfigurationUpdate: z.ZodObject<{
138289
138328
  authHeaderName: string;
138290
138329
  authHeaderValue: string;
138291
138330
  })) | undefined;
138331
+ aiFeaturesEnabled?: boolean | undefined;
138332
+ aiAskFeaturesEnabled?: boolean | undefined;
138333
+ aiCustomInstruction?: string | undefined;
138292
138334
  }, {
138293
138335
  id: string;
138294
138336
  profile?: {
@@ -138352,6 +138394,9 @@ declare const WorkspaceConfigurationUpdate: z.ZodObject<{
138352
138394
  authHeaderName: string;
138353
138395
  authHeaderValue: string;
138354
138396
  })) | undefined;
138397
+ aiFeaturesEnabled?: boolean | undefined;
138398
+ aiAskFeaturesEnabled?: boolean | undefined;
138399
+ aiCustomInstruction?: string | undefined;
138355
138400
  }>;
138356
138401
  type WorkspaceConfigurationUpdate = z.infer<typeof WorkspaceConfigurationUpdate>;
138357
138402
 
@@ -139185,6 +139230,9 @@ declare const Workspace: z.ZodObject<{
139185
139230
  authHeaderName: string;
139186
139231
  authHeaderValue: string;
139187
139232
  })) | null | undefined>;
139233
+ aiFeaturesEnabled: z.ZodDefault<z.ZodBoolean>;
139234
+ aiAskFeaturesEnabled: z.ZodDefault<z.ZodBoolean>;
139235
+ aiCustomInstruction: z.ZodOptional<z.ZodString>;
139188
139236
  }, "strip", z.ZodTypeAny, {
139189
139237
  id: string;
139190
139238
  profile: {
@@ -139233,6 +139281,8 @@ declare const Workspace: z.ZodObject<{
139233
139281
  cancelAt?: string | undefined;
139234
139282
  subscriptionStatusUpdatedAt?: string | undefined;
139235
139283
  };
139284
+ aiFeaturesEnabled: boolean;
139285
+ aiAskFeaturesEnabled: boolean;
139236
139286
  sso?: {
139237
139287
  providerId: string;
139238
139288
  defaultAutoInviteValue: boolean;
@@ -139273,6 +139323,7 @@ declare const Workspace: z.ZodObject<{
139273
139323
  authHeaderName: string;
139274
139324
  authHeaderValue: string;
139275
139325
  })> | undefined;
139326
+ aiCustomInstruction?: string | undefined;
139276
139327
  }, {
139277
139328
  id: string;
139278
139329
  profile: {
@@ -139361,6 +139412,9 @@ declare const Workspace: z.ZodObject<{
139361
139412
  authHeaderName: string;
139362
139413
  authHeaderValue: string;
139363
139414
  })) | null | undefined;
139415
+ aiFeaturesEnabled?: boolean | undefined;
139416
+ aiAskFeaturesEnabled?: boolean | undefined;
139417
+ aiCustomInstruction?: string | undefined;
139364
139418
  }>;
139365
139419
  type Workspace = z.infer<typeof Workspace>;
139366
139420
  declare const WorkspaceWithDesignSystems: z.ZodObject<{
@@ -139717,6 +139771,9 @@ declare const WorkspaceWithDesignSystems: z.ZodObject<{
139717
139771
  authHeaderName: string;
139718
139772
  authHeaderValue: string;
139719
139773
  })) | null | undefined>;
139774
+ aiFeaturesEnabled: z.ZodDefault<z.ZodBoolean>;
139775
+ aiAskFeaturesEnabled: z.ZodDefault<z.ZodBoolean>;
139776
+ aiCustomInstruction: z.ZodOptional<z.ZodString>;
139720
139777
  }, "strip", z.ZodTypeAny, {
139721
139778
  id: string;
139722
139779
  profile: {
@@ -139765,6 +139822,8 @@ declare const WorkspaceWithDesignSystems: z.ZodObject<{
139765
139822
  cancelAt?: string | undefined;
139766
139823
  subscriptionStatusUpdatedAt?: string | undefined;
139767
139824
  };
139825
+ aiFeaturesEnabled: boolean;
139826
+ aiAskFeaturesEnabled: boolean;
139768
139827
  sso?: {
139769
139828
  providerId: string;
139770
139829
  defaultAutoInviteValue: boolean;
@@ -139805,6 +139864,7 @@ declare const WorkspaceWithDesignSystems: z.ZodObject<{
139805
139864
  authHeaderName: string;
139806
139865
  authHeaderValue: string;
139807
139866
  })> | undefined;
139867
+ aiCustomInstruction?: string | undefined;
139808
139868
  }, {
139809
139869
  id: string;
139810
139870
  profile: {
@@ -139893,6 +139953,9 @@ declare const WorkspaceWithDesignSystems: z.ZodObject<{
139893
139953
  authHeaderName: string;
139894
139954
  authHeaderValue: string;
139895
139955
  })) | null | undefined;
139956
+ aiFeaturesEnabled?: boolean | undefined;
139957
+ aiAskFeaturesEnabled?: boolean | undefined;
139958
+ aiCustomInstruction?: string | undefined;
139896
139959
  }>;
139897
139960
  designSystems: z.ZodArray<z.ZodObject<{
139898
139961
  id: z.ZodString;
@@ -140019,6 +140082,8 @@ declare const WorkspaceWithDesignSystems: z.ZodObject<{
140019
140082
  cancelAt?: string | undefined;
140020
140083
  subscriptionStatusUpdatedAt?: string | undefined;
140021
140084
  };
140085
+ aiFeaturesEnabled: boolean;
140086
+ aiAskFeaturesEnabled: boolean;
140022
140087
  sso?: {
140023
140088
  providerId: string;
140024
140089
  defaultAutoInviteValue: boolean;
@@ -140059,6 +140124,7 @@ declare const WorkspaceWithDesignSystems: z.ZodObject<{
140059
140124
  authHeaderName: string;
140060
140125
  authHeaderValue: string;
140061
140126
  })> | undefined;
140127
+ aiCustomInstruction?: string | undefined;
140062
140128
  };
140063
140129
  designSystems: {
140064
140130
  id: string;
@@ -140172,6 +140238,9 @@ declare const WorkspaceWithDesignSystems: z.ZodObject<{
140172
140238
  authHeaderName: string;
140173
140239
  authHeaderValue: string;
140174
140240
  })) | null | undefined;
140241
+ aiFeaturesEnabled?: boolean | undefined;
140242
+ aiAskFeaturesEnabled?: boolean | undefined;
140243
+ aiCustomInstruction?: string | undefined;
140175
140244
  };
140176
140245
  designSystems: {
140177
140246
  id: string;
@@ -143836,6 +143905,9 @@ declare const DesignSystemInviteEmailData: z.ZodObject<{
143836
143905
  authHeaderName: string;
143837
143906
  authHeaderValue: string;
143838
143907
  })) | null | undefined>;
143908
+ aiFeaturesEnabled: z.ZodDefault<z.ZodBoolean>;
143909
+ aiAskFeaturesEnabled: z.ZodDefault<z.ZodBoolean>;
143910
+ aiCustomInstruction: z.ZodOptional<z.ZodString>;
143839
143911
  }, "strip", z.ZodTypeAny, {
143840
143912
  id: string;
143841
143913
  profile: {
@@ -143884,6 +143956,8 @@ declare const DesignSystemInviteEmailData: z.ZodObject<{
143884
143956
  cancelAt?: string | undefined;
143885
143957
  subscriptionStatusUpdatedAt?: string | undefined;
143886
143958
  };
143959
+ aiFeaturesEnabled: boolean;
143960
+ aiAskFeaturesEnabled: boolean;
143887
143961
  sso?: {
143888
143962
  providerId: string;
143889
143963
  defaultAutoInviteValue: boolean;
@@ -143924,6 +143998,7 @@ declare const DesignSystemInviteEmailData: z.ZodObject<{
143924
143998
  authHeaderName: string;
143925
143999
  authHeaderValue: string;
143926
144000
  })> | undefined;
144001
+ aiCustomInstruction?: string | undefined;
143927
144002
  }, {
143928
144003
  id: string;
143929
144004
  profile: {
@@ -144012,6 +144087,9 @@ declare const DesignSystemInviteEmailData: z.ZodObject<{
144012
144087
  authHeaderName: string;
144013
144088
  authHeaderValue: string;
144014
144089
  })) | null | undefined;
144090
+ aiFeaturesEnabled?: boolean | undefined;
144091
+ aiAskFeaturesEnabled?: boolean | undefined;
144092
+ aiCustomInstruction?: string | undefined;
144015
144093
  }>;
144016
144094
  designSystem: z.ZodObject<{
144017
144095
  id: z.ZodString;
@@ -144418,6 +144496,8 @@ declare const DesignSystemInviteEmailData: z.ZodObject<{
144418
144496
  cancelAt?: string | undefined;
144419
144497
  subscriptionStatusUpdatedAt?: string | undefined;
144420
144498
  };
144499
+ aiFeaturesEnabled: boolean;
144500
+ aiAskFeaturesEnabled: boolean;
144421
144501
  sso?: {
144422
144502
  providerId: string;
144423
144503
  defaultAutoInviteValue: boolean;
@@ -144458,6 +144538,7 @@ declare const DesignSystemInviteEmailData: z.ZodObject<{
144458
144538
  authHeaderName: string;
144459
144539
  authHeaderValue: string;
144460
144540
  })> | undefined;
144541
+ aiCustomInstruction?: string | undefined;
144461
144542
  };
144462
144543
  invitedBy: {
144463
144544
  email: string;
@@ -144619,6 +144700,9 @@ declare const DesignSystemInviteEmailData: z.ZodObject<{
144619
144700
  authHeaderName: string;
144620
144701
  authHeaderValue: string;
144621
144702
  })) | null | undefined;
144703
+ aiFeaturesEnabled?: boolean | undefined;
144704
+ aiAskFeaturesEnabled?: boolean | undefined;
144705
+ aiCustomInstruction?: string | undefined;
144622
144706
  };
144623
144707
  invitedBy: {
144624
144708
  email: string;
@@ -145070,6 +145154,9 @@ declare const WorkspaceInviteEmailData: z.ZodObject<{
145070
145154
  authHeaderName: string;
145071
145155
  authHeaderValue: string;
145072
145156
  })) | null | undefined>;
145157
+ aiFeaturesEnabled: z.ZodDefault<z.ZodBoolean>;
145158
+ aiAskFeaturesEnabled: z.ZodDefault<z.ZodBoolean>;
145159
+ aiCustomInstruction: z.ZodOptional<z.ZodString>;
145073
145160
  }, "strip", z.ZodTypeAny, {
145074
145161
  id: string;
145075
145162
  profile: {
@@ -145118,6 +145205,8 @@ declare const WorkspaceInviteEmailData: z.ZodObject<{
145118
145205
  cancelAt?: string | undefined;
145119
145206
  subscriptionStatusUpdatedAt?: string | undefined;
145120
145207
  };
145208
+ aiFeaturesEnabled: boolean;
145209
+ aiAskFeaturesEnabled: boolean;
145121
145210
  sso?: {
145122
145211
  providerId: string;
145123
145212
  defaultAutoInviteValue: boolean;
@@ -145158,6 +145247,7 @@ declare const WorkspaceInviteEmailData: z.ZodObject<{
145158
145247
  authHeaderName: string;
145159
145248
  authHeaderValue: string;
145160
145249
  })> | undefined;
145250
+ aiCustomInstruction?: string | undefined;
145161
145251
  }, {
145162
145252
  id: string;
145163
145253
  profile: {
@@ -145246,6 +145336,9 @@ declare const WorkspaceInviteEmailData: z.ZodObject<{
145246
145336
  authHeaderName: string;
145247
145337
  authHeaderValue: string;
145248
145338
  })) | null | undefined;
145339
+ aiFeaturesEnabled?: boolean | undefined;
145340
+ aiAskFeaturesEnabled?: boolean | undefined;
145341
+ aiCustomInstruction?: string | undefined;
145249
145342
  }>;
145250
145343
  invitedBy: z.ZodObject<{
145251
145344
  id: z.ZodString;
@@ -145576,6 +145669,8 @@ declare const WorkspaceInviteEmailData: z.ZodObject<{
145576
145669
  cancelAt?: string | undefined;
145577
145670
  subscriptionStatusUpdatedAt?: string | undefined;
145578
145671
  };
145672
+ aiFeaturesEnabled: boolean;
145673
+ aiAskFeaturesEnabled: boolean;
145579
145674
  sso?: {
145580
145675
  providerId: string;
145581
145676
  defaultAutoInviteValue: boolean;
@@ -145616,6 +145711,7 @@ declare const WorkspaceInviteEmailData: z.ZodObject<{
145616
145711
  authHeaderName: string;
145617
145712
  authHeaderValue: string;
145618
145713
  })> | undefined;
145714
+ aiCustomInstruction?: string | undefined;
145619
145715
  };
145620
145716
  invitedBy: {
145621
145717
  email: string;
@@ -145754,6 +145850,9 @@ declare const WorkspaceInviteEmailData: z.ZodObject<{
145754
145850
  authHeaderName: string;
145755
145851
  authHeaderValue: string;
145756
145852
  })) | null | undefined;
145853
+ aiFeaturesEnabled?: boolean | undefined;
145854
+ aiAskFeaturesEnabled?: boolean | undefined;
145855
+ aiCustomInstruction?: string | undefined;
145757
145856
  };
145758
145857
  invitedBy: {
145759
145858
  email: string;
package/dist/index.js CHANGED
@@ -5006,7 +5006,10 @@ var Workspace = _zod.z.object({
5006
5006
  subscription: Subscription,
5007
5007
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
5008
5008
  sso: nullishToOptional(SsoProvider),
5009
- npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
5009
+ npmRegistrySettings: nullishToOptional(NpmRegistryConfig),
5010
+ aiFeaturesEnabled: _zod.z.boolean().default(false),
5011
+ aiAskFeaturesEnabled: _zod.z.boolean().default(false),
5012
+ aiCustomInstruction: _zod.z.string().optional()
5010
5013
  });
5011
5014
  var WorkspaceWithDesignSystems = _zod.z.object({
5012
5015
  workspace: Workspace,
@@ -5019,7 +5022,10 @@ var WorkspaceConfigurationUpdate = _zod.z.object({
5019
5022
  ipWhitelist: WorkspaceIpSettings.optional(),
5020
5023
  sso: SsoProvider.optional(),
5021
5024
  npmRegistrySettings: NpmRegistryConfig.optional(),
5022
- profile: WorkspaceProfileUpdate.optional()
5025
+ profile: WorkspaceProfileUpdate.optional(),
5026
+ aiFeaturesEnabled: _zod.z.boolean().optional(),
5027
+ aiAskFeaturesEnabled: _zod.z.boolean().optional(),
5028
+ aiCustomInstruction: _zod.z.string().optional()
5023
5029
  });
5024
5030
 
5025
5031
  // src/workspace/workspace-context.ts