@seamapi/types 1.1121.0 → 1.1123.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.
@@ -88295,6 +88295,8 @@ export type Routes = {
88295
88295
  /** Key of the customer that owns the profile, or `null` for a workspace-level profile. A customer can own a profile without using it; the profile a customer uses is `customization_profile_id` on the customer. */
88296
88296
  customer_key: string | null;
88297
88297
  created_at: string;
88298
+ /** Whether this is the workspace's default profile, used for access grants and Instant Keys created without a customization profile. */
88299
+ is_workspace_default: boolean;
88298
88300
  logo_url?: string | undefined;
88299
88301
  primary_color?: string | undefined;
88300
88302
  secondary_color?: string | undefined;
@@ -148608,6 +148610,7 @@ export type Routes = {
148608
148610
  method: 'POST';
148609
148611
  queryParams: {};
148610
148612
  jsonBody: {
148613
+ base_customization_profile_id?: string | undefined;
148611
148614
  name?: string | null;
148612
148615
  primary_color?: string | undefined;
148613
148616
  secondary_color?: string | undefined;
@@ -148758,6 +148761,8 @@ export type Routes = {
148758
148761
  /** Key of the customer that owns the profile, or `null` for a workspace-level profile. A customer can own a profile without using it; the profile a customer uses is `customization_profile_id` on the customer. */
148759
148762
  customer_key: string | null;
148760
148763
  created_at: string;
148764
+ /** Whether this is the workspace's default profile, used for access grants and Instant Keys created without a customization profile. */
148765
+ is_workspace_default: boolean;
148761
148766
  logo_url?: string | undefined;
148762
148767
  primary_color?: string | undefined;
148763
148768
  secondary_color?: string | undefined;
@@ -148919,6 +148924,8 @@ export type Routes = {
148919
148924
  /** Key of the customer that owns the profile, or `null` for a workspace-level profile. A customer can own a profile without using it; the profile a customer uses is `customization_profile_id` on the customer. */
148920
148925
  customer_key: string | null;
148921
148926
  created_at: string;
148927
+ /** Whether this is the workspace's default profile, used for access grants and Instant Keys created without a customization profile. */
148928
+ is_workspace_default: boolean;
148922
148929
  logo_url?: string | undefined;
148923
148930
  primary_color?: string | undefined;
148924
148931
  secondary_color?: string | undefined;
@@ -149080,6 +149087,8 @@ export type Routes = {
149080
149087
  /** Key of the customer that owns the profile, or `null` for a workspace-level profile. A customer can own a profile without using it; the profile a customer uses is `customization_profile_id` on the customer. */
149081
149088
  customer_key: string | null;
149082
149089
  created_at: string;
149090
+ /** Whether this is the workspace's default profile, used for access grants and Instant Keys created without a customization profile. */
149091
+ is_workspace_default: boolean;
149083
149092
  logo_url?: string | undefined;
149084
149093
  primary_color?: string | undefined;
149085
149094
  secondary_color?: string | undefined;
@@ -149367,6 +149376,7 @@ export type Routes = {
149367
149376
  [x: string]: string;
149368
149377
  };
149369
149378
  } | undefined) | null;
149379
+ is_workspace_default?: boolean | undefined;
149370
149380
  };
149371
149381
  commonParams: {};
149372
149382
  formData: {};
@@ -160544,6 +160554,8 @@ export type Routes = {
160544
160554
  /** Key of the customer that owns the profile, or `null` for a workspace-level profile. A customer can own a profile without using it; the profile a customer uses is `customization_profile_id` on the customer. */
160545
160555
  customer_key: string | null;
160546
160556
  created_at: string;
160557
+ /** Whether this is the workspace's default profile, used for access grants and Instant Keys created without a customization profile. */
160558
+ is_workspace_default: boolean;
160547
160559
  logo_url?: string | undefined;
160548
160560
  primary_color?: string | undefined;
160549
160561
  secondary_color?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.1121.0",
3
+ "version": "1.1123.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -120,6 +120,11 @@ export const customization_profile = z.object({
120
120
  'Key of the customer that owns the profile, or `null` for a workspace-level profile. A customer can own a profile without using it; the profile a customer uses is `customization_profile_id` on the customer.',
121
121
  ),
122
122
  created_at: datetime,
123
+ is_workspace_default: z
124
+ .boolean()
125
+ .describe(
126
+ "Whether this is the workspace's default profile, used for access grants and Instant Keys created without a customization profile.",
127
+ ),
123
128
  logo_url: z.string().url().optional(),
124
129
  primary_color: z.string().optional(),
125
130
  secondary_color: z.string().optional(),
@@ -14918,6 +14918,11 @@ const openapi: OpenAPISpec = {
14918
14918
  },
14919
14919
  type: 'object',
14920
14920
  },
14921
+ is_workspace_default: {
14922
+ description:
14923
+ "Whether this is the workspace's default profile, used for access grants and Instant Keys created without a customization profile.",
14924
+ type: 'boolean',
14925
+ },
14921
14926
  logo_url: { format: 'uri', type: 'string' },
14922
14927
  message_overrides: {
14923
14928
  additionalProperties: {
@@ -14937,6 +14942,7 @@ const openapi: OpenAPISpec = {
14937
14942
  'customization_profile_id',
14938
14943
  'customer_key',
14939
14944
  'created_at',
14945
+ 'is_workspace_default',
14940
14946
  ],
14941
14947
  type: 'object',
14942
14948
  'x-route-path': '/workspaces/customization_profiles',
@@ -76372,13 +76378,17 @@ const openapi: OpenAPISpec = {
76372
76378
  '/workspaces/customization_profiles/create': {
76373
76379
  post: {
76374
76380
  description:
76375
- "Creates a customization profile. From a customer client session, the profile is owned by that customer, and it becomes the customer's `customization_profile_id` when the customer has none yet.",
76381
+ "Creates a customization profile. With `base_customization_profile_id`, the new profile starts as a copy of that profile and the other fields replace its values.\n\nFrom a customer client session, the profile is owned by that customer, and it becomes the customer's `customization_profile_id` when the customer has none yet or when it's a copy of the customer's current profile. That's how a customer customizes the workspace-level profile it uses without changing it for other customers.\n\nA workspace's first workspace-level profile becomes its default (`is_workspace_default`).",
76376
76382
  operationId: 'workspacesCustomizationProfilesCreatePost',
76377
76383
  requestBody: {
76378
76384
  content: {
76379
76385
  'application/json': {
76380
76386
  schema: {
76381
76387
  properties: {
76388
+ base_customization_profile_id: {
76389
+ format: 'uuid',
76390
+ type: 'string',
76391
+ },
76382
76392
  customer_portal_theme: {
76383
76393
  properties: {
76384
76394
  font_family: { type: 'string' },
@@ -76864,7 +76874,8 @@ const openapi: OpenAPISpec = {
76864
76874
  },
76865
76875
  '/workspaces/customization_profiles/update': {
76866
76876
  patch: {
76867
- description: 'Updates the customization profile for the workspace.',
76877
+ description:
76878
+ "Updates the customization profile for the workspace.\n\n`is_workspace_default: true` makes a workspace-level profile the workspace's default, replacing the previous one: access grants and Instant Keys created without a customization profile use it. `false` removes it, so they use the Seam default again. A customer client session can't change the default.",
76868
76879
  operationId: 'workspacesCustomizationProfilesUpdatePatch',
76869
76880
  requestBody: {
76870
76881
  content: {
@@ -77196,6 +77207,7 @@ const openapi: OpenAPISpec = {
77196
77207
  },
77197
77208
  type: 'object',
77198
77209
  },
77210
+ is_workspace_default: { type: 'boolean' },
77199
77211
  message_overrides: {
77200
77212
  additionalProperties: {
77201
77213
  additionalProperties: { type: 'string' },
@@ -105620,6 +105620,8 @@ export type Routes = {
105620
105620
  /** Key of the customer that owns the profile, or `null` for a workspace-level profile. A customer can own a profile without using it; the profile a customer uses is `customization_profile_id` on the customer. */
105621
105621
  customer_key: string | null
105622
105622
  created_at: string
105623
+ /** Whether this is the workspace's default profile, used for access grants and Instant Keys created without a customization profile. */
105624
+ is_workspace_default: boolean
105623
105625
  logo_url?: string | undefined
105624
105626
  primary_color?: string | undefined
105625
105627
  secondary_color?: string | undefined
@@ -176519,6 +176521,7 @@ export type Routes = {
176519
176521
  method: 'POST'
176520
176522
  queryParams: {}
176521
176523
  jsonBody: {
176524
+ base_customization_profile_id?: string | undefined
176522
176525
  name?: string | null
176523
176526
  primary_color?: string | undefined
176524
176527
  secondary_color?: string | undefined
@@ -176679,6 +176682,8 @@ export type Routes = {
176679
176682
  /** Key of the customer that owns the profile, or `null` for a workspace-level profile. A customer can own a profile without using it; the profile a customer uses is `customization_profile_id` on the customer. */
176680
176683
  customer_key: string | null
176681
176684
  created_at: string
176685
+ /** Whether this is the workspace's default profile, used for access grants and Instant Keys created without a customization profile. */
176686
+ is_workspace_default: boolean
176682
176687
  logo_url?: string | undefined
176683
176688
  primary_color?: string | undefined
176684
176689
  secondary_color?: string | undefined
@@ -176850,6 +176855,8 @@ export type Routes = {
176850
176855
  /** Key of the customer that owns the profile, or `null` for a workspace-level profile. A customer can own a profile without using it; the profile a customer uses is `customization_profile_id` on the customer. */
176851
176856
  customer_key: string | null
176852
176857
  created_at: string
176858
+ /** Whether this is the workspace's default profile, used for access grants and Instant Keys created without a customization profile. */
176859
+ is_workspace_default: boolean
176853
176860
  logo_url?: string | undefined
176854
176861
  primary_color?: string | undefined
176855
176862
  secondary_color?: string | undefined
@@ -177021,6 +177028,8 @@ export type Routes = {
177021
177028
  /** Key of the customer that owns the profile, or `null` for a workspace-level profile. A customer can own a profile without using it; the profile a customer uses is `customization_profile_id` on the customer. */
177022
177029
  customer_key: string | null
177023
177030
  created_at: string
177031
+ /** Whether this is the workspace's default profile, used for access grants and Instant Keys created without a customization profile. */
177032
+ is_workspace_default: boolean
177024
177033
  logo_url?: string | undefined
177025
177034
  primary_color?: string | undefined
177026
177035
  secondary_color?: string | undefined
@@ -177337,6 +177346,7 @@ export type Routes = {
177337
177346
  | undefined
177338
177347
  )
177339
177348
  | null
177349
+ is_workspace_default?: boolean | undefined
177340
177350
  }
177341
177351
  commonParams: {}
177342
177352
  formData: {}
@@ -190481,6 +190491,8 @@ export type Routes = {
190481
190491
  /** Key of the customer that owns the profile, or `null` for a workspace-level profile. A customer can own a profile without using it; the profile a customer uses is `customization_profile_id` on the customer. */
190482
190492
  customer_key: string | null
190483
190493
  created_at: string
190494
+ /** Whether this is the workspace's default profile, used for access grants and Instant Keys created without a customization profile. */
190495
+ is_workspace_default: boolean
190484
190496
  logo_url?: string | undefined
190485
190497
  primary_color?: string | undefined
190486
190498
  secondary_color?: string | undefined