@seamapi/types 1.556.0 → 1.558.0

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.
@@ -10393,6 +10393,8 @@ declare const batch: z.ZodObject<{
10393
10393
  }>;
10394
10394
  is_suspended: z.ZodBoolean;
10395
10395
  connect_partner_name: z.ZodNullable<z.ZodNullable<z.ZodString>>;
10396
+ publishable_key: z.ZodOptional<z.ZodString>;
10397
+ is_publishable_key_auth_enabled: z.ZodBoolean;
10396
10398
  }, "strip", z.ZodTypeAny, {
10397
10399
  name: string;
10398
10400
  workspace_id: string;
@@ -10407,6 +10409,8 @@ declare const batch: z.ZodObject<{
10407
10409
  inviter_logo_url?: string | undefined;
10408
10410
  };
10409
10411
  connect_partner_name: string | null;
10412
+ is_publishable_key_auth_enabled: boolean;
10413
+ publishable_key?: string | undefined;
10410
10414
  }, {
10411
10415
  name: string;
10412
10416
  workspace_id: string;
@@ -10421,6 +10425,8 @@ declare const batch: z.ZodObject<{
10421
10425
  inviter_logo_url?: string | undefined;
10422
10426
  };
10423
10427
  connect_partner_name: string | null;
10428
+ is_publishable_key_auth_enabled: boolean;
10429
+ publishable_key?: string | undefined;
10424
10430
  }>, "many">>;
10425
10431
  spaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
10426
10432
  space_id: z.ZodString;
@@ -26136,27 +26142,27 @@ declare const batch: z.ZodObject<{
26136
26142
  connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
26137
26143
  } & {
26138
26144
  event_type: z.ZodLiteral<"connected_account.connected">;
26139
- connect_webview_id: z.ZodString;
26145
+ connect_webview_id: z.ZodOptional<z.ZodString>;
26140
26146
  customer_key: z.ZodOptional<z.ZodString>;
26141
26147
  }, "strip", z.ZodTypeAny, {
26142
26148
  workspace_id: string;
26143
26149
  created_at: string;
26144
26150
  connected_account_id: string;
26145
- connect_webview_id: string;
26146
26151
  event_id: string;
26147
26152
  occurred_at: string;
26148
26153
  event_type: "connected_account.connected";
26149
26154
  customer_key?: string | undefined;
26155
+ connect_webview_id?: string | undefined;
26150
26156
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
26151
26157
  }, {
26152
26158
  workspace_id: string;
26153
26159
  created_at: string;
26154
26160
  connected_account_id: string;
26155
- connect_webview_id: string;
26156
26161
  event_id: string;
26157
26162
  occurred_at: string;
26158
26163
  event_type: "connected_account.connected";
26159
26164
  customer_key?: string | undefined;
26165
+ connect_webview_id?: string | undefined;
26160
26166
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
26161
26167
  }>, z.ZodObject<{
26162
26168
  event_id: z.ZodString;
@@ -31915,6 +31921,8 @@ declare const batch: z.ZodObject<{
31915
31921
  inviter_logo_url?: string | undefined;
31916
31922
  };
31917
31923
  connect_partner_name: string | null;
31924
+ is_publishable_key_auth_enabled: boolean;
31925
+ publishable_key?: string | undefined;
31918
31926
  }[] | undefined;
31919
31927
  acs_users?: {
31920
31928
  display_name: string;
@@ -33804,11 +33812,11 @@ declare const batch: z.ZodObject<{
33804
33812
  workspace_id: string;
33805
33813
  created_at: string;
33806
33814
  connected_account_id: string;
33807
- connect_webview_id: string;
33808
33815
  event_id: string;
33809
33816
  occurred_at: string;
33810
33817
  event_type: "connected_account.connected";
33811
33818
  customer_key?: string | undefined;
33819
+ connect_webview_id?: string | undefined;
33812
33820
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
33813
33821
  } | {
33814
33822
  workspace_id: string;
@@ -35818,6 +35826,8 @@ declare const batch: z.ZodObject<{
35818
35826
  inviter_logo_url?: string | undefined;
35819
35827
  };
35820
35828
  connect_partner_name: string | null;
35829
+ is_publishable_key_auth_enabled: boolean;
35830
+ publishable_key?: string | undefined;
35821
35831
  }[] | undefined;
35822
35832
  acs_users?: {
35823
35833
  display_name: string;
@@ -37707,11 +37717,11 @@ declare const batch: z.ZodObject<{
37707
37717
  workspace_id: string;
37708
37718
  created_at: string;
37709
37719
  connected_account_id: string;
37710
- connect_webview_id: string;
37711
37720
  event_id: string;
37712
37721
  occurred_at: string;
37713
37722
  event_type: "connected_account.connected";
37714
37723
  customer_key?: string | undefined;
37724
+ connect_webview_id?: string | undefined;
37715
37725
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
37716
37726
  } | {
37717
37727
  workspace_id: string;
@@ -49242,27 +49252,27 @@ declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<{
49242
49252
  connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
49243
49253
  } & {
49244
49254
  event_type: z.ZodLiteral<"connected_account.connected">;
49245
- connect_webview_id: z.ZodString;
49255
+ connect_webview_id: z.ZodOptional<z.ZodString>;
49246
49256
  customer_key: z.ZodOptional<z.ZodString>;
49247
49257
  }, "strip", z.ZodTypeAny, {
49248
49258
  workspace_id: string;
49249
49259
  created_at: string;
49250
49260
  connected_account_id: string;
49251
- connect_webview_id: string;
49252
49261
  event_id: string;
49253
49262
  occurred_at: string;
49254
49263
  event_type: "connected_account.connected";
49255
49264
  customer_key?: string | undefined;
49265
+ connect_webview_id?: string | undefined;
49256
49266
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
49257
49267
  }, {
49258
49268
  workspace_id: string;
49259
49269
  created_at: string;
49260
49270
  connected_account_id: string;
49261
- connect_webview_id: string;
49262
49271
  event_id: string;
49263
49272
  occurred_at: string;
49264
49273
  event_type: "connected_account.connected";
49265
49274
  customer_key?: string | undefined;
49275
+ connect_webview_id?: string | undefined;
49266
49276
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
49267
49277
  }>, z.ZodObject<{
49268
49278
  event_id: z.ZodString;
@@ -51369,6 +51379,8 @@ declare const workspace: z.ZodObject<{
51369
51379
  }>;
51370
51380
  is_suspended: z.ZodBoolean;
51371
51381
  connect_partner_name: z.ZodNullable<z.ZodNullable<z.ZodString>>;
51382
+ publishable_key: z.ZodOptional<z.ZodString>;
51383
+ is_publishable_key_auth_enabled: z.ZodBoolean;
51372
51384
  }, "strip", z.ZodTypeAny, {
51373
51385
  name: string;
51374
51386
  workspace_id: string;
@@ -51383,6 +51395,8 @@ declare const workspace: z.ZodObject<{
51383
51395
  inviter_logo_url?: string | undefined;
51384
51396
  };
51385
51397
  connect_partner_name: string | null;
51398
+ is_publishable_key_auth_enabled: boolean;
51399
+ publishable_key?: string | undefined;
51386
51400
  }, {
51387
51401
  name: string;
51388
51402
  workspace_id: string;
@@ -51397,6 +51411,8 @@ declare const workspace: z.ZodObject<{
51397
51411
  inviter_logo_url?: string | undefined;
51398
51412
  };
51399
51413
  connect_partner_name: string | null;
51414
+ is_publishable_key_auth_enabled: boolean;
51415
+ publishable_key?: string | undefined;
51400
51416
  }>;
51401
51417
  type Workspace = z.infer<typeof workspace>;
51402
51418
 
@@ -65629,6 +65645,10 @@ declare const _default: {
65629
65645
  };
65630
65646
  type: string;
65631
65647
  };
65648
+ is_publishable_key_auth_enabled: {
65649
+ description: string;
65650
+ type: string;
65651
+ };
65632
65652
  is_sandbox: {
65633
65653
  description: string;
65634
65654
  type: string;
@@ -65641,6 +65661,10 @@ declare const _default: {
65641
65661
  description: string;
65642
65662
  type: string;
65643
65663
  };
65664
+ publishable_key: {
65665
+ description: string;
65666
+ type: string;
65667
+ };
65644
65668
  workspace_id: {
65645
65669
  description: string;
65646
65670
  format: string;
@@ -103444,6 +103468,10 @@ declare const _default: {
103444
103468
  };
103445
103469
  type: string;
103446
103470
  };
103471
+ is_publishable_key_auth_enabled: {
103472
+ description: string;
103473
+ type: string;
103474
+ };
103447
103475
  is_suspended: {
103448
103476
  description: string;
103449
103477
  type: string;
@@ -103528,6 +103556,10 @@ declare const _default: {
103528
103556
  };
103529
103557
  type: string;
103530
103558
  };
103559
+ is_publishable_key_auth_enabled: {
103560
+ description: string;
103561
+ type: string;
103562
+ };
103531
103563
  is_suspended: {
103532
103564
  description: string;
103533
103565
  type: string;
@@ -116940,6 +116972,10 @@ type Routes = {
116940
116972
  /**
116941
116973
  * @deprecated Use `company_name` instead.*/
116942
116974
  connect_partner_name: (string | null) | null;
116975
+ /** Publishable key for the [workspace](https://docs.seam.co/latest/core-concepts/workspaces). This key is used to identify the workspace in client-side applications. */
116976
+ publishable_key?: string | undefined;
116977
+ /** Indicates whether publishable key authentication is enabled for this workspace. */
116978
+ is_publishable_key_auth_enabled: boolean;
116943
116979
  }[] | undefined;
116944
116980
  spaces?: {
116945
116981
  /** ID of the space. */
@@ -121800,7 +121836,7 @@ type Routes = {
121800
121836
  } | undefined;
121801
121837
  event_type: 'connected_account.connected';
121802
121838
  /** ID of the [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews) associated with the event. */
121803
- connect_webview_id: string;
121839
+ connect_webview_id?: string | undefined;
121804
121840
  /** The customer key associated with this connected account, if any. */
121805
121841
  customer_key?: string | undefined;
121806
121842
  } | {
@@ -139787,7 +139823,7 @@ type Routes = {
139787
139823
  } | undefined;
139788
139824
  event_type: 'connected_account.connected';
139789
139825
  /** ID of the [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews) associated with the event. */
139790
- connect_webview_id: string;
139826
+ connect_webview_id?: string | undefined;
139791
139827
  /** The customer key associated with this connected account, if any. */
139792
139828
  customer_key?: string | undefined;
139793
139829
  } | {
@@ -141711,7 +141747,7 @@ type Routes = {
141711
141747
  } | undefined;
141712
141748
  event_type: 'connected_account.connected';
141713
141749
  /** ID of the [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews) associated with the event. */
141714
- connect_webview_id: string;
141750
+ connect_webview_id?: string | undefined;
141715
141751
  /** The customer key associated with this connected account, if any. */
141716
141752
  customer_key?: string | undefined;
141717
141753
  } | {
@@ -160798,7 +160834,7 @@ type Routes = {
160798
160834
  } | undefined;
160799
160835
  event_type: 'connected_account.connected';
160800
160836
  /** ID of the [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews) associated with the event. */
160801
- connect_webview_id: string;
160837
+ connect_webview_id?: string | undefined;
160802
160838
  /** The customer key associated with this connected account, if any. */
160803
160839
  customer_key?: string | undefined;
160804
160840
  } | {
@@ -183431,6 +183467,10 @@ type Routes = {
183431
183467
  /**
183432
183468
  * @deprecated Use `company_name` instead.*/
183433
183469
  connect_partner_name: (string | null) | null;
183470
+ /** Publishable key for the [workspace](https://docs.seam.co/latest/core-concepts/workspaces). This key is used to identify the workspace in client-side applications. */
183471
+ publishable_key?: string | undefined;
183472
+ /** Indicates whether publishable key authentication is enabled for this workspace. */
183473
+ is_publishable_key_auth_enabled: boolean;
183434
183474
  };
183435
183475
  };
183436
183476
  };
@@ -183611,6 +183651,10 @@ type Routes = {
183611
183651
  /**
183612
183652
  * @deprecated Use `company_name` instead.*/
183613
183653
  connect_partner_name: (string | null) | null;
183654
+ /** Publishable key for the [workspace](https://docs.seam.co/latest/core-concepts/workspaces). This key is used to identify the workspace in client-side applications. */
183655
+ publishable_key?: string | undefined;
183656
+ /** Indicates whether publishable key authentication is enabled for this workspace. */
183657
+ is_publishable_key_auth_enabled: boolean;
183614
183658
  }[] | undefined;
183615
183659
  spaces?: {
183616
183660
  /** ID of the space. */
@@ -188471,7 +188515,7 @@ type Routes = {
188471
188515
  } | undefined;
188472
188516
  event_type: 'connected_account.connected';
188473
188517
  /** ID of the [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews) associated with the event. */
188474
- connect_webview_id: string;
188518
+ connect_webview_id?: string | undefined;
188475
188519
  /** The customer key associated with this connected account, if any. */
188476
188520
  customer_key?: string | undefined;
188477
188521
  } | {
@@ -190657,6 +190701,10 @@ type Routes = {
190657
190701
  /**
190658
190702
  * @deprecated Use `company_name` instead.*/
190659
190703
  connect_partner_name: (string | null) | null;
190704
+ /** Publishable key for the [workspace](https://docs.seam.co/latest/core-concepts/workspaces). This key is used to identify the workspace in client-side applications. */
190705
+ publishable_key?: string | undefined;
190706
+ /** Indicates whether publishable key authentication is enabled for this workspace. */
190707
+ is_publishable_key_auth_enabled: boolean;
190660
190708
  };
190661
190709
  };
190662
190710
  };
@@ -190694,6 +190742,10 @@ type Routes = {
190694
190742
  /**
190695
190743
  * @deprecated Use `company_name` instead.*/
190696
190744
  connect_partner_name: (string | null) | null;
190745
+ /** Publishable key for the [workspace](https://docs.seam.co/latest/core-concepts/workspaces). This key is used to identify the workspace in client-side applications. */
190746
+ publishable_key?: string | undefined;
190747
+ /** Indicates whether publishable key authentication is enabled for this workspace. */
190748
+ is_publishable_key_auth_enabled: boolean;
190697
190749
  }[];
190698
190750
  };
190699
190751
  };
@@ -191972,6 +192024,8 @@ type Routes = {
191972
192024
  /** Logo shape for [Connect Webviews](https://docs.seam.co/latest/core-concepts/connect-webviews) in the workspace. See also [Customize the Look and Feel of Your Connect Webviews](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-look-and-feel-of-your-connect-webviews). */
191973
192025
  logo_shape?: (('circle' | 'square') | null) | undefined;
191974
192026
  } | undefined;
192027
+ /** Indicates whether publishable key authentication is enabled for this workspace. */
192028
+ is_publishable_key_auth_enabled?: boolean | undefined;
191975
192029
  /** Indicates whether the workspace is suspended. */
191976
192030
  is_suspended?: boolean | undefined;
191977
192031
  };
package/dist/index.cjs CHANGED
@@ -4710,7 +4710,7 @@ var connect_webview_id = zod.z.string().uuid().describe(
4710
4710
  var connected_account_connected_event = connected_account_event.extend(
4711
4711
  {
4712
4712
  event_type: zod.z.literal("connected_account.connected"),
4713
- connect_webview_id,
4713
+ connect_webview_id: connect_webview_id.optional(),
4714
4714
  customer_key: zod.z.string().optional().describe(
4715
4715
  "The customer key associated with this connected account, if any."
4716
4716
  )
@@ -5435,7 +5435,13 @@ var workspace = zod.z.object({
5435
5435
  deprecated: Use \`company_name\` instead.
5436
5436
  ---
5437
5437
  `
5438
- ).nullable()
5438
+ ).nullable(),
5439
+ publishable_key: zod.z.string().optional().describe(
5440
+ "Publishable key for the [workspace](https://docs.seam.co/latest/core-concepts/workspaces). This key is used to identify the workspace in client-side applications."
5441
+ ),
5442
+ is_publishable_key_auth_enabled: zod.z.boolean().describe(
5443
+ "Indicates whether publishable key authentication is enabled for this workspace."
5444
+ )
5439
5445
  }).describe(`
5440
5446
  ---
5441
5447
  route_path: /workspaces
@@ -19981,8 +19987,7 @@ var openapi_default = {
19981
19987
  "created_at",
19982
19988
  "occurred_at",
19983
19989
  "connected_account_id",
19984
- "event_type",
19985
- "connect_webview_id"
19990
+ "event_type"
19986
19991
  ],
19987
19992
  type: "object",
19988
19993
  "x-route-path": "/connected_accounts"
@@ -28598,6 +28603,10 @@ var openapi_default = {
28598
28603
  },
28599
28604
  type: "object"
28600
28605
  },
28606
+ is_publishable_key_auth_enabled: {
28607
+ description: "Indicates whether publishable key authentication is enabled for this workspace.",
28608
+ type: "boolean"
28609
+ },
28601
28610
  is_sandbox: {
28602
28611
  description: "Indicates whether the workspace is a [sandbox workspace](https://docs.seam.co/latest/core-concepts/workspaces#sandbox-workspaces).",
28603
28612
  type: "boolean"
@@ -28610,6 +28619,10 @@ var openapi_default = {
28610
28619
  description: "Name of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces).",
28611
28620
  type: "string"
28612
28621
  },
28622
+ publishable_key: {
28623
+ description: "Publishable key for the [workspace](https://docs.seam.co/latest/core-concepts/workspaces). This key is used to identify the workspace in client-side applications.",
28624
+ type: "string"
28625
+ },
28613
28626
  workspace_id: {
28614
28627
  description: "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces).",
28615
28628
  format: "uuid",
@@ -28623,7 +28636,8 @@ var openapi_default = {
28623
28636
  "is_sandbox",
28624
28637
  "connect_webview_customization",
28625
28638
  "is_suspended",
28626
- "connect_partner_name"
28639
+ "connect_partner_name",
28640
+ "is_publishable_key_auth_enabled"
28627
28641
  ],
28628
28642
  type: "object",
28629
28643
  "x-route-path": "/workspaces"
@@ -60640,6 +60654,10 @@ var openapi_default = {
60640
60654
  },
60641
60655
  type: "object"
60642
60656
  },
60657
+ is_publishable_key_auth_enabled: {
60658
+ description: "Indicates whether publishable key authentication is enabled for this workspace.",
60659
+ type: "boolean"
60660
+ },
60643
60661
  is_suspended: {
60644
60662
  description: "Indicates whether the workspace is suspended.",
60645
60663
  type: "boolean"
@@ -60710,6 +60728,10 @@ var openapi_default = {
60710
60728
  },
60711
60729
  type: "object"
60712
60730
  },
60731
+ is_publishable_key_auth_enabled: {
60732
+ description: "Indicates whether publishable key authentication is enabled for this workspace.",
60733
+ type: "boolean"
60734
+ },
60713
60735
  is_suspended: {
60714
60736
  description: "Indicates whether the workspace is suspended.",
60715
60737
  type: "boolean"