@seamapi/types 1.827.0 → 1.828.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.
@@ -4123,14 +4123,17 @@ declare const access_grant: z.ZodObject<{
4123
4123
  message: z.ZodString;
4124
4124
  } & {
4125
4125
  error_code: z.ZodLiteral<"cannot_create_requested_access_methods">;
4126
+ missing_device_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4126
4127
  }, "strip", z.ZodTypeAny, {
4127
4128
  message: string;
4128
4129
  created_at: string;
4129
4130
  error_code: "cannot_create_requested_access_methods";
4131
+ missing_device_ids?: string[] | undefined;
4130
4132
  }, {
4131
4133
  message: string;
4132
4134
  created_at: string;
4133
4135
  error_code: "cannot_create_requested_access_methods";
4136
+ missing_device_ids?: string[] | undefined;
4134
4137
  }>]>, "many">;
4135
4138
  customization_profile_id: z.ZodOptional<z.ZodString>;
4136
4139
  pending_mutations: z.ZodArray<z.ZodDiscriminatedUnion<"mutation_code", [z.ZodObject<{
@@ -4241,6 +4244,7 @@ declare const access_grant: z.ZodObject<{
4241
4244
  message: string;
4242
4245
  created_at: string;
4243
4246
  error_code: "cannot_create_requested_access_methods";
4247
+ missing_device_ids?: string[] | undefined;
4244
4248
  }[];
4245
4249
  warnings: ({
4246
4250
  message: string;
@@ -4337,6 +4341,7 @@ declare const access_grant: z.ZodObject<{
4337
4341
  message: string;
4338
4342
  created_at: string;
4339
4343
  error_code: "cannot_create_requested_access_methods";
4344
+ missing_device_ids?: string[] | undefined;
4340
4345
  }[];
4341
4346
  warnings: ({
4342
4347
  message: string;
@@ -29581,14 +29586,17 @@ declare const batch: z.ZodObject<{
29581
29586
  message: z.ZodString;
29582
29587
  } & {
29583
29588
  error_code: z.ZodLiteral<"cannot_create_requested_access_methods">;
29589
+ missing_device_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
29584
29590
  }, "strip", z.ZodTypeAny, {
29585
29591
  message: string;
29586
29592
  created_at: string;
29587
29593
  error_code: "cannot_create_requested_access_methods";
29594
+ missing_device_ids?: string[] | undefined;
29588
29595
  }, {
29589
29596
  message: string;
29590
29597
  created_at: string;
29591
29598
  error_code: "cannot_create_requested_access_methods";
29599
+ missing_device_ids?: string[] | undefined;
29592
29600
  }>]>, "many">;
29593
29601
  customization_profile_id: z.ZodOptional<z.ZodString>;
29594
29602
  pending_mutations: z.ZodArray<z.ZodDiscriminatedUnion<"mutation_code", [z.ZodObject<{
@@ -29699,6 +29707,7 @@ declare const batch: z.ZodObject<{
29699
29707
  message: string;
29700
29708
  created_at: string;
29701
29709
  error_code: "cannot_create_requested_access_methods";
29710
+ missing_device_ids?: string[] | undefined;
29702
29711
  }[];
29703
29712
  warnings: ({
29704
29713
  message: string;
@@ -29795,6 +29804,7 @@ declare const batch: z.ZodObject<{
29795
29804
  message: string;
29796
29805
  created_at: string;
29797
29806
  error_code: "cannot_create_requested_access_methods";
29807
+ missing_device_ids?: string[] | undefined;
29798
29808
  }[];
29799
29809
  warnings: ({
29800
29810
  message: string;
@@ -31346,6 +31356,7 @@ declare const batch: z.ZodObject<{
31346
31356
  } & {
31347
31357
  event_type: z.ZodLiteral<"access_grant.could_not_create_requested_access_methods">;
31348
31358
  error_message: z.ZodString;
31359
+ missing_device_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
31349
31360
  }, "strip", z.ZodTypeAny, {
31350
31361
  workspace_id: string;
31351
31362
  created_at: string;
@@ -31354,6 +31365,7 @@ declare const batch: z.ZodObject<{
31354
31365
  occurred_at: string;
31355
31366
  event_type: "access_grant.could_not_create_requested_access_methods";
31356
31367
  error_message: string;
31368
+ missing_device_ids?: string[] | undefined;
31357
31369
  }, {
31358
31370
  workspace_id: string;
31359
31371
  created_at: string;
@@ -31362,6 +31374,7 @@ declare const batch: z.ZodObject<{
31362
31374
  occurred_at: string;
31363
31375
  event_type: "access_grant.could_not_create_requested_access_methods";
31364
31376
  error_message: string;
31377
+ missing_device_ids?: string[] | undefined;
31365
31378
  }>, z.ZodObject<{
31366
31379
  event_id: z.ZodString;
31367
31380
  workspace_id: z.ZodString;
@@ -41137,6 +41150,7 @@ declare const batch: z.ZodObject<{
41137
41150
  message: string;
41138
41151
  created_at: string;
41139
41152
  error_code: "cannot_create_requested_access_methods";
41153
+ missing_device_ids?: string[] | undefined;
41140
41154
  }[];
41141
41155
  warnings: ({
41142
41156
  message: string;
@@ -41619,6 +41633,7 @@ declare const batch: z.ZodObject<{
41619
41633
  occurred_at: string;
41620
41634
  event_type: "access_grant.could_not_create_requested_access_methods";
41621
41635
  error_message: string;
41636
+ missing_device_ids?: string[] | undefined;
41622
41637
  } | {
41623
41638
  workspace_id: string;
41624
41639
  created_at: string;
@@ -46101,6 +46116,7 @@ declare const batch: z.ZodObject<{
46101
46116
  message: string;
46102
46117
  created_at: string;
46103
46118
  error_code: "cannot_create_requested_access_methods";
46119
+ missing_device_ids?: string[] | undefined;
46104
46120
  }[];
46105
46121
  warnings: ({
46106
46122
  message: string;
@@ -46583,6 +46599,7 @@ declare const batch: z.ZodObject<{
46583
46599
  occurred_at: string;
46584
46600
  event_type: "access_grant.could_not_create_requested_access_methods";
46585
46601
  error_message: string;
46602
+ missing_device_ids?: string[] | undefined;
46586
46603
  } | {
46587
46604
  workspace_id: string;
46588
46605
  created_at: string;
@@ -59720,6 +59737,7 @@ declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<{
59720
59737
  } & {
59721
59738
  event_type: z.ZodLiteral<"access_grant.could_not_create_requested_access_methods">;
59722
59739
  error_message: z.ZodString;
59740
+ missing_device_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
59723
59741
  }, "strip", z.ZodTypeAny, {
59724
59742
  workspace_id: string;
59725
59743
  created_at: string;
@@ -59728,6 +59746,7 @@ declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<{
59728
59746
  occurred_at: string;
59729
59747
  event_type: "access_grant.could_not_create_requested_access_methods";
59730
59748
  error_message: string;
59749
+ missing_device_ids?: string[] | undefined;
59731
59750
  }, {
59732
59751
  workspace_id: string;
59733
59752
  created_at: string;
@@ -59736,6 +59755,7 @@ declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<{
59736
59755
  occurred_at: string;
59737
59756
  event_type: "access_grant.could_not_create_requested_access_methods";
59738
59757
  error_message: string;
59758
+ missing_device_ids?: string[] | undefined;
59739
59759
  }>, z.ZodObject<{
59740
59760
  event_id: z.ZodString;
59741
59761
  workspace_id: z.ZodString;
@@ -74916,6 +74936,8 @@ type Routes = {
74916
74936
  message: string;
74917
74937
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
74918
74938
  error_code: 'cannot_create_requested_access_methods';
74939
+ /** IDs of the devices that did not receive an access code at grant creation. Use these to identify which specific devices failed when the message reports a partial failure. */
74940
+ missing_device_ids?: string[] | undefined;
74919
74941
  }[];
74920
74942
  /** ID of the customization profile associated with the Access Grant. */
74921
74943
  customization_profile_id?: string | undefined;
@@ -75124,6 +75146,8 @@ type Routes = {
75124
75146
  message: string;
75125
75147
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
75126
75148
  error_code: 'cannot_create_requested_access_methods';
75149
+ /** IDs of the devices that did not receive an access code at grant creation. Use these to identify which specific devices failed when the message reports a partial failure. */
75150
+ missing_device_ids?: string[] | undefined;
75127
75151
  }[];
75128
75152
  /** ID of the customization profile associated with the Access Grant. */
75129
75153
  customization_profile_id?: string | undefined;
@@ -77431,6 +77455,8 @@ type Routes = {
77431
77455
  message: string;
77432
77456
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
77433
77457
  error_code: 'cannot_create_requested_access_methods';
77458
+ /** IDs of the devices that did not receive an access code at grant creation. Use these to identify which specific devices failed when the message reports a partial failure. */
77459
+ missing_device_ids?: string[] | undefined;
77434
77460
  }[];
77435
77461
  /** ID of the customization profile associated with the Access Grant. */
77436
77462
  customization_profile_id?: string | undefined;
@@ -77641,6 +77667,8 @@ type Routes = {
77641
77667
  message: string;
77642
77668
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
77643
77669
  error_code: 'cannot_create_requested_access_methods';
77670
+ /** IDs of the devices that did not receive an access code at grant creation. Use these to identify which specific devices failed when the message reports a partial failure. */
77671
+ missing_device_ids?: string[] | undefined;
77644
77672
  }[];
77645
77673
  /** ID of the customization profile associated with the Access Grant. */
77646
77674
  customization_profile_id?: string | undefined;
@@ -77825,6 +77853,8 @@ type Routes = {
77825
77853
  message: string;
77826
77854
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
77827
77855
  error_code: 'cannot_create_requested_access_methods';
77856
+ /** IDs of the devices that did not receive an access code at grant creation. Use these to identify which specific devices failed when the message reports a partial failure. */
77857
+ missing_device_ids?: string[] | undefined;
77828
77858
  }[];
77829
77859
  /** List of pending mutations for the access grant. This shows updates that are in progress. */
77830
77860
  pending_mutations: ({
@@ -78018,6 +78048,8 @@ type Routes = {
78018
78048
  message: string;
78019
78049
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
78020
78050
  error_code: 'cannot_create_requested_access_methods';
78051
+ /** IDs of the devices that did not receive an access code at grant creation. Use these to identify which specific devices failed when the message reports a partial failure. */
78052
+ missing_device_ids?: string[] | undefined;
78021
78053
  }[];
78022
78054
  /** List of pending mutations for the access grant. This shows updates that are in progress. */
78023
78055
  pending_mutations: ({
@@ -81239,6 +81271,8 @@ type Routes = {
81239
81271
  message: string;
81240
81272
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
81241
81273
  error_code: 'cannot_create_requested_access_methods';
81274
+ /** IDs of the devices that did not receive an access code at grant creation. Use these to identify which specific devices failed when the message reports a partial failure. */
81275
+ missing_device_ids?: string[] | undefined;
81242
81276
  }[];
81243
81277
  /** ID of the customization profile associated with the Access Grant. */
81244
81278
  customization_profile_id?: string | undefined;
@@ -100897,6 +100931,8 @@ type Routes = {
100897
100931
  event_type: 'access_grant.could_not_create_requested_access_methods';
100898
100932
  /** Description of why the access methods could not be created. */
100899
100933
  error_message: string;
100934
+ /** IDs of the devices that did not receive a requested access method. Use these to identify which specific devices failed without having to fetch the Access Grant. */
100935
+ missing_device_ids?: string[] | undefined;
100900
100936
  } | {
100901
100937
  /** ID of the event. */
100902
100938
  event_id: string;
@@ -103741,6 +103777,8 @@ type Routes = {
103741
103777
  event_type: 'access_grant.could_not_create_requested_access_methods';
103742
103778
  /** Description of why the access methods could not be created. */
103743
103779
  error_message: string;
103780
+ /** IDs of the devices that did not receive a requested access method. Use these to identify which specific devices failed without having to fetch the Access Grant. */
103781
+ missing_device_ids?: string[] | undefined;
103744
103782
  } | {
103745
103783
  /** ID of the event. */
103746
103784
  event_id: string;
@@ -125764,6 +125802,8 @@ type Routes = {
125764
125802
  message: string;
125765
125803
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
125766
125804
  error_code: 'cannot_create_requested_access_methods';
125805
+ /** IDs of the devices that did not receive an access code at grant creation. Use these to identify which specific devices failed when the message reports a partial failure. */
125806
+ missing_device_ids?: string[] | undefined;
125767
125807
  }[];
125768
125808
  /** ID of the customization profile associated with the Access Grant. */
125769
125809
  customization_profile_id?: string | undefined;
@@ -128789,6 +128829,8 @@ type Routes = {
128789
128829
  event_type: 'access_grant.could_not_create_requested_access_methods';
128790
128830
  /** Description of why the access methods could not be created. */
128791
128831
  error_message: string;
128832
+ /** IDs of the devices that did not receive a requested access method. Use these to identify which specific devices failed without having to fetch the Access Grant. */
128833
+ missing_device_ids?: string[] | undefined;
128792
128834
  } | {
128793
128835
  /** ID of the event. */
128794
128836
  event_id: string;
@@ -131338,6 +131380,8 @@ type Routes = {
131338
131380
  message: string;
131339
131381
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
131340
131382
  error_code: 'cannot_create_requested_access_methods';
131383
+ /** IDs of the devices that did not receive an access code at grant creation. Use these to identify which specific devices failed when the message reports a partial failure. */
131384
+ missing_device_ids?: string[] | undefined;
131341
131385
  }[];
131342
131386
  /** ID of the customization profile associated with the Access Grant. */
131343
131387
  customization_profile_id?: string | undefined;
@@ -131802,6 +131846,8 @@ type Routes = {
131802
131846
  message: string;
131803
131847
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
131804
131848
  error_code: 'cannot_create_requested_access_methods';
131849
+ /** IDs of the devices that did not receive an access code at grant creation. Use these to identify which specific devices failed when the message reports a partial failure. */
131850
+ missing_device_ids?: string[] | undefined;
131805
131851
  }[];
131806
131852
  /** ID of the customization profile associated with the Access Grant. */
131807
131853
  customization_profile_id?: string | undefined;
@@ -160312,6 +160358,8 @@ type Routes = {
160312
160358
  message: string;
160313
160359
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
160314
160360
  error_code: 'cannot_create_requested_access_methods';
160361
+ /** IDs of the devices that did not receive an access code at grant creation. Use these to identify which specific devices failed when the message reports a partial failure. */
160362
+ missing_device_ids?: string[] | undefined;
160315
160363
  }[];
160316
160364
  /** ID of the customization profile associated with the Access Grant. */
160317
160365
  customization_profile_id?: string | undefined;
@@ -161279,6 +161327,8 @@ type Routes = {
161279
161327
  event_type: 'access_grant.could_not_create_requested_access_methods';
161280
161328
  /** Description of why the access methods could not be created. */
161281
161329
  error_message: string;
161330
+ /** IDs of the devices that did not receive a requested access method. Use these to identify which specific devices failed without having to fetch the Access Grant. */
161331
+ missing_device_ids?: string[] | undefined;
161282
161332
  } | {
161283
161333
  /** ID of the event. */
161284
161334
  event_id: string;
package/dist/index.cjs CHANGED
@@ -2722,7 +2722,10 @@ var common_access_grant_error = zod.z.object({
2722
2722
  });
2723
2723
  var error_code_description4 = "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.";
2724
2724
  var cannot_create_requested_access_methods_error = common_access_grant_error.extend({
2725
- error_code: zod.z.literal("cannot_create_requested_access_methods").describe(error_code_description4)
2725
+ error_code: zod.z.literal("cannot_create_requested_access_methods").describe(error_code_description4),
2726
+ missing_device_ids: zod.z.array(zod.z.string().uuid()).optional().describe(
2727
+ "IDs of the devices that did not receive an access code at grant creation. Use these to identify which specific devices failed when the message reports a partial failure."
2728
+ )
2726
2729
  });
2727
2730
  var common_access_grant_warning = zod.z.object({
2728
2731
  created_at: zod.z.string().datetime().describe("Date and time at which Seam created the warning."),
@@ -5322,7 +5325,10 @@ var access_grant_could_not_create_requested_access_methods_event = access_grant_
5322
5325
  event_type: zod.z.literal(
5323
5326
  "access_grant.could_not_create_requested_access_methods"
5324
5327
  ),
5325
- error_message: zod.z.string().describe("Description of why the access methods could not be created.")
5328
+ error_message: zod.z.string().describe("Description of why the access methods could not be created."),
5329
+ missing_device_ids: zod.z.array(zod.z.string().uuid()).optional().describe(
5330
+ "IDs of the devices that did not receive a requested access method. Use these to identify which specific devices failed without having to fetch the Access Grant."
5331
+ )
5326
5332
  }).describe(`
5327
5333
  ---
5328
5334
  route_path: /access_grants
@@ -8818,6 +8824,11 @@ var openapi = {
8818
8824
  message: {
8819
8825
  description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
8820
8826
  type: "string"
8827
+ },
8828
+ missing_device_ids: {
8829
+ description: "IDs of the devices that did not receive an access code at grant creation. Use these to identify which specific devices failed when the message reports a partial failure.",
8830
+ items: { format: "uuid", type: "string" },
8831
+ type: "array"
8821
8832
  }
8822
8833
  },
8823
8834
  required: ["created_at", "message", "error_code"],
@@ -23104,6 +23115,11 @@ var openapi = {
23104
23115
  ],
23105
23116
  type: "string"
23106
23117
  },
23118
+ missing_device_ids: {
23119
+ description: "IDs of the devices that did not receive a requested access method. Use these to identify which specific devices failed without having to fetch the Access Grant.",
23120
+ items: { format: "uuid", type: "string" },
23121
+ type: "array"
23122
+ },
23107
23123
  occurred_at: {
23108
23124
  description: "Date and time at which the event occurred.",
23109
23125
  format: "date-time",
@@ -39239,6 +39255,11 @@ var openapi = {
39239
39255
  message: {
39240
39256
  description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
39241
39257
  type: "string"
39258
+ },
39259
+ missing_device_ids: {
39260
+ description: "IDs of the devices that did not receive an access code at grant creation. Use these to identify which specific devices failed when the message reports a partial failure.",
39261
+ items: { format: "uuid", type: "string" },
39262
+ type: "array"
39242
39263
  }
39243
39264
  },
39244
39265
  required: [
@@ -39861,6 +39882,11 @@ var openapi = {
39861
39882
  message: {
39862
39883
  description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
39863
39884
  type: "string"
39885
+ },
39886
+ missing_device_ids: {
39887
+ description: "IDs of the devices that did not receive an access code at grant creation. Use these to identify which specific devices failed when the message reports a partial failure.",
39888
+ items: { format: "uuid", type: "string" },
39889
+ type: "array"
39864
39890
  }
39865
39891
  },
39866
39892
  required: [
@@ -40525,6 +40551,11 @@ var openapi = {
40525
40551
  message: {
40526
40552
  description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
40527
40553
  type: "string"
40554
+ },
40555
+ missing_device_ids: {
40556
+ description: "IDs of the devices that did not receive an access code at grant creation. Use these to identify which specific devices failed when the message reports a partial failure.",
40557
+ items: { format: "uuid", type: "string" },
40558
+ type: "array"
40528
40559
  }
40529
40560
  },
40530
40561
  required: [
@@ -41177,6 +41208,11 @@ var openapi = {
41177
41208
  message: {
41178
41209
  description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
41179
41210
  type: "string"
41211
+ },
41212
+ missing_device_ids: {
41213
+ description: "IDs of the devices that did not receive an access code at grant creation. Use these to identify which specific devices failed when the message reports a partial failure.",
41214
+ items: { format: "uuid", type: "string" },
41215
+ type: "array"
41180
41216
  }
41181
41217
  },
41182
41218
  required: [