attune-sdk 0.4.0 → 0.5.2

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.
@@ -1698,6 +1698,15 @@ export type ApiResponseRuleResponse = {
1698
1698
  * Unique reference identifier
1699
1699
  */
1700
1700
  ref: string;
1701
+ sensor_worker_affinity: {
1702
+ [key: string]: unknown;
1703
+ };
1704
+ sensor_worker_selector: {
1705
+ [key: string]: unknown;
1706
+ };
1707
+ sensor_worker_tolerations: Array<{
1708
+ [key: string]: unknown;
1709
+ }>;
1701
1710
  /**
1702
1711
  * Optional template used to resolve execution trace tags for this rule.
1703
1712
  */
@@ -2365,6 +2374,7 @@ export type ApplyWorkQueueItemsResponse = {
2365
2374
  preview_count: number;
2366
2375
  skipped_count: number;
2367
2376
  };
2377
+ export type ArtifactBodyState = 'pending' | 'ready' | 'deleting';
2368
2378
  export type ArtifactClassification = 'general' | 'runtime_log';
2369
2379
  export type ArtifactJsonPatch = {
2370
2380
  op: 'set';
@@ -3640,6 +3650,24 @@ export type CreateRuleRequest = {
3640
3650
  * Unique reference identifier (e.g., "mypack.notify_on_error")
3641
3651
  */
3642
3652
  ref: string;
3653
+ /**
3654
+ * Required and preferred sensor-worker affinity for this rule.
3655
+ */
3656
+ sensor_worker_affinity?: {
3657
+ [key: string]: unknown;
3658
+ };
3659
+ /**
3660
+ * Required labels for the sensor worker that runs this rule's managed sensor.
3661
+ */
3662
+ sensor_worker_selector?: {
3663
+ [key: string]: unknown;
3664
+ };
3665
+ /**
3666
+ * Taints tolerated by the sensor worker for this rule.
3667
+ */
3668
+ sensor_worker_tolerations?: Array<{
3669
+ [key: string]: unknown;
3670
+ }>;
3643
3671
  /**
3644
3672
  * Optional template used to resolve execution trace tags for this rule.
3645
3673
  */
@@ -3767,33 +3795,6 @@ export type CreateSensorRequest = {
3767
3795
  */
3768
3796
  worker_tolerations?: Array<WorkerToleration>;
3769
3797
  };
3770
- /**
3771
- * Request body for creating sensor tokens
3772
- */
3773
- export type CreateSensorTokenRequest = {
3774
- /**
3775
- * Registered pack reference. Internal worker callers must provide it;
3776
- * public callers may omit it and let the API resolve it.
3777
- */
3778
- pack_ref?: string | null;
3779
- /**
3780
- * Explicit sensor cache permission-set refs. `standard` grants read-only
3781
- * access to the registered sensor and pack cache scopes.
3782
- */
3783
- permission_set_refs?: Array<string>;
3784
- /**
3785
- * Sensor reference (e.g., "core.timer")
3786
- */
3787
- sensor_ref: string;
3788
- /**
3789
- * List of trigger types this sensor can create events for
3790
- */
3791
- trigger_types: Array<string>;
3792
- /**
3793
- * Optional TTL in seconds (default: 86400 = 24 hours, max: 259200 = 72 hours)
3794
- */
3795
- ttl_seconds?: number | null;
3796
- };
3797
3798
  /**
3798
3799
  * Request DTO for creating a new trigger
3799
3800
  */
@@ -5024,6 +5025,10 @@ export type IntegrationTokenResponse = {
5024
5025
  * from authenticated identity state.
5025
5026
  */
5026
5027
  export type InternalCreateSensorTokenRequest = {
5028
+ /**
5029
+ * Current sensor workload assignment generation (required for worker/service callers).
5030
+ */
5031
+ assignment_generation?: number | null;
5027
5032
  /**
5028
5033
  * Registered pack reference (required for worker/service callers).
5029
5034
  */
@@ -5045,6 +5050,14 @@ export type InternalCreateSensorTokenRequest = {
5045
5050
  * Optional TTL in seconds (default: 86400 = 24 hours, max: 259200 = 72 hours)
5046
5051
  */
5047
5052
  ttl_seconds?: number | null;
5053
+ /**
5054
+ * Worker process instance that owns the assignment (required for worker/service callers).
5055
+ */
5056
+ worker_instance?: string | null;
5057
+ /**
5058
+ * Assigned sensor workload ID (required for worker/service callers).
5059
+ */
5060
+ workload_id?: number | null;
5048
5061
  };
5049
5062
  /**
5050
5063
  * Full key response with all details (value redacted in list views)
@@ -6461,6 +6474,15 @@ export type PaginatedResponseRuleSummary = {
6461
6474
  * Unique reference identifier
6462
6475
  */
6463
6476
  ref: string;
6477
+ sensor_worker_affinity: {
6478
+ [key: string]: unknown;
6479
+ };
6480
+ sensor_worker_selector: {
6481
+ [key: string]: unknown;
6482
+ };
6483
+ sensor_worker_tolerations: Array<{
6484
+ [key: string]: unknown;
6485
+ }>;
6464
6486
  /**
6465
6487
  * Optional template used to resolve execution trace tags for this rule.
6466
6488
  */
@@ -7320,6 +7342,15 @@ export type RuleResponse = {
7320
7342
  * Unique reference identifier
7321
7343
  */
7322
7344
  ref: string;
7345
+ sensor_worker_affinity: {
7346
+ [key: string]: unknown;
7347
+ };
7348
+ sensor_worker_selector: {
7349
+ [key: string]: unknown;
7350
+ };
7351
+ sensor_worker_tolerations: Array<{
7352
+ [key: string]: unknown;
7353
+ }>;
7323
7354
  /**
7324
7355
  * Optional template used to resolve execution trace tags for this rule.
7325
7356
  */
@@ -7390,6 +7421,15 @@ export type RuleSummary = {
7390
7421
  * Unique reference identifier
7391
7422
  */
7392
7423
  ref: string;
7424
+ sensor_worker_affinity: {
7425
+ [key: string]: unknown;
7426
+ };
7427
+ sensor_worker_selector: {
7428
+ [key: string]: unknown;
7429
+ };
7430
+ sensor_worker_tolerations: Array<{
7431
+ [key: string]: unknown;
7432
+ }>;
7393
7433
  /**
7394
7434
  * Optional template used to resolve execution trace tags for this rule.
7395
7435
  */
@@ -8241,6 +8281,24 @@ export type UpdateRuleRequest = {
8241
8281
  * empty array to force no API token.
8242
8282
  */
8243
8283
  permission_set_refs?: Array<string> | null;
8284
+ /**
8285
+ * Replacement sensor-worker affinity.
8286
+ */
8287
+ sensor_worker_affinity: {
8288
+ [key: string]: unknown;
8289
+ } | null;
8290
+ /**
8291
+ * Replacement sensor-worker selector.
8292
+ */
8293
+ sensor_worker_selector: {
8294
+ [key: string]: unknown;
8295
+ } | null;
8296
+ /**
8297
+ * Replacement sensor-worker tolerations.
8298
+ */
8299
+ sensor_worker_tolerations: Array<{
8300
+ [key: string]: unknown;
8301
+ }> | null;
8244
8302
  /**
8245
8303
  * Optional template used to resolve execution trace tags for this rule.
8246
8304
  * Omit to keep current value. Provide null to clear.
@@ -10219,6 +10277,7 @@ export type AllocateFileVersionByRefResponses = {
10219
10277
  * Parent artifact ID
10220
10278
  */
10221
10279
  artifact: number;
10280
+ body_state?: null | ArtifactBodyState;
10222
10281
  content_json?: null | Value;
10223
10282
  /**
10224
10283
  * MIME content type
@@ -10248,6 +10307,18 @@ export type AllocateFileVersionByRefResponses = {
10248
10307
  */
10249
10308
  id: number;
10250
10309
  meta?: null | Value;
10310
+ /**
10311
+ * Immutable object-store locator.
10312
+ */
10313
+ object_key?: string | null;
10314
+ /**
10315
+ * Opaque provider generation, version ID, or ETag pinned for reads.
10316
+ */
10317
+ provider_version?: string | null;
10318
+ /**
10319
+ * SHA-256 digest of the ready body.
10320
+ */
10321
+ sha256?: string | null;
10251
10322
  /**
10252
10323
  * Size of content in bytes
10253
10324
  */
@@ -10298,6 +10369,7 @@ export type UploadVersionByRefResponses = {
10298
10369
  * Parent artifact ID
10299
10370
  */
10300
10371
  artifact: number;
10372
+ body_state?: null | ArtifactBodyState;
10301
10373
  content_json?: null | Value;
10302
10374
  /**
10303
10375
  * MIME content type
@@ -10327,6 +10399,18 @@ export type UploadVersionByRefResponses = {
10327
10399
  */
10328
10400
  id: number;
10329
10401
  meta?: null | Value;
10402
+ /**
10403
+ * Immutable object-store locator.
10404
+ */
10405
+ object_key?: string | null;
10406
+ /**
10407
+ * Opaque provider generation, version ID, or ETag pinned for reads.
10408
+ */
10409
+ provider_version?: string | null;
10410
+ /**
10411
+ * SHA-256 digest of the ready body.
10412
+ */
10413
+ sha256?: string | null;
10330
10414
  /**
10331
10415
  * Size of content in bytes
10332
10416
  */
@@ -10668,12 +10752,20 @@ export type DownloadLatestErrors = {
10668
10752
  * Artifact not found or no versions
10669
10753
  */
10670
10754
  404: unknown;
10755
+ /**
10756
+ * Requested range is not satisfiable
10757
+ */
10758
+ 416: unknown;
10671
10759
  };
10672
10760
  export type DownloadLatestResponses = {
10673
10761
  /**
10674
10762
  * Binary file content of latest version
10675
10763
  */
10676
10764
  200: Blob | File;
10765
+ /**
10766
+ * Requested byte range
10767
+ */
10768
+ 206: Blob | File;
10677
10769
  };
10678
10770
  export type DownloadLatestResponse = DownloadLatestResponses[keyof DownloadLatestResponses];
10679
10771
  export type AppendProgressData = {
@@ -10825,6 +10917,7 @@ export type ListVersionsResponses = {
10825
10917
  */
10826
10918
  200: {
10827
10919
  data: Array<{
10920
+ body_state?: null | ArtifactBodyState;
10828
10921
  /**
10829
10922
  * MIME content type
10830
10923
  */
@@ -10849,6 +10942,9 @@ export type ListVersionsResponses = {
10849
10942
  * Version ID
10850
10943
  */
10851
10944
  id: number;
10945
+ object_key?: string | null;
10946
+ provider_version?: string | null;
10947
+ sha256?: string | null;
10852
10948
  /**
10853
10949
  * Size of content in bytes
10854
10950
  */
@@ -10895,6 +10991,7 @@ export type CreateVersionJsonResponses = {
10895
10991
  * Parent artifact ID
10896
10992
  */
10897
10993
  artifact: number;
10994
+ body_state?: null | ArtifactBodyState;
10898
10995
  content_json?: null | Value;
10899
10996
  /**
10900
10997
  * MIME content type
@@ -10924,6 +11021,18 @@ export type CreateVersionJsonResponses = {
10924
11021
  */
10925
11022
  id: number;
10926
11023
  meta?: null | Value;
11024
+ /**
11025
+ * Immutable object-store locator.
11026
+ */
11027
+ object_key?: string | null;
11028
+ /**
11029
+ * Opaque provider generation, version ID, or ETag pinned for reads.
11030
+ */
11031
+ provider_version?: string | null;
11032
+ /**
11033
+ * SHA-256 digest of the ready body.
11034
+ */
11035
+ sha256?: string | null;
10927
11036
  /**
10928
11037
  * Size of content in bytes
10929
11038
  */
@@ -10974,6 +11083,7 @@ export type CreateVersionFileResponses = {
10974
11083
  * Parent artifact ID
10975
11084
  */
10976
11085
  artifact: number;
11086
+ body_state?: null | ArtifactBodyState;
10977
11087
  content_json?: null | Value;
10978
11088
  /**
10979
11089
  * MIME content type
@@ -11003,6 +11113,18 @@ export type CreateVersionFileResponses = {
11003
11113
  */
11004
11114
  id: number;
11005
11115
  meta?: null | Value;
11116
+ /**
11117
+ * Immutable object-store locator.
11118
+ */
11119
+ object_key?: string | null;
11120
+ /**
11121
+ * Opaque provider generation, version ID, or ETag pinned for reads.
11122
+ */
11123
+ provider_version?: string | null;
11124
+ /**
11125
+ * SHA-256 digest of the ready body.
11126
+ */
11127
+ sha256?: string | null;
11006
11128
  /**
11007
11129
  * Size of content in bytes
11008
11130
  */
@@ -11049,6 +11171,7 @@ export type GetLatestVersionResponses = {
11049
11171
  * Parent artifact ID
11050
11172
  */
11051
11173
  artifact: number;
11174
+ body_state?: null | ArtifactBodyState;
11052
11175
  content_json?: null | Value;
11053
11176
  /**
11054
11177
  * MIME content type
@@ -11078,6 +11201,18 @@ export type GetLatestVersionResponses = {
11078
11201
  */
11079
11202
  id: number;
11080
11203
  meta?: null | Value;
11204
+ /**
11205
+ * Immutable object-store locator.
11206
+ */
11207
+ object_key?: string | null;
11208
+ /**
11209
+ * Opaque provider generation, version ID, or ETag pinned for reads.
11210
+ */
11211
+ provider_version?: string | null;
11212
+ /**
11213
+ * SHA-256 digest of the ready body.
11214
+ */
11215
+ sha256?: string | null;
11081
11216
  /**
11082
11217
  * Size of content in bytes
11083
11218
  */
@@ -11132,6 +11267,7 @@ export type UploadVersionResponses = {
11132
11267
  * Parent artifact ID
11133
11268
  */
11134
11269
  artifact: number;
11270
+ body_state?: null | ArtifactBodyState;
11135
11271
  content_json?: null | Value;
11136
11272
  /**
11137
11273
  * MIME content type
@@ -11161,6 +11297,18 @@ export type UploadVersionResponses = {
11161
11297
  */
11162
11298
  id: number;
11163
11299
  meta?: null | Value;
11300
+ /**
11301
+ * Immutable object-store locator.
11302
+ */
11303
+ object_key?: string | null;
11304
+ /**
11305
+ * Opaque provider generation, version ID, or ETag pinned for reads.
11306
+ */
11307
+ provider_version?: string | null;
11308
+ /**
11309
+ * SHA-256 digest of the ready body.
11310
+ */
11311
+ sha256?: string | null;
11164
11312
  /**
11165
11313
  * Size of content in bytes
11166
11314
  */
@@ -11239,6 +11387,7 @@ export type GetVersionResponses = {
11239
11387
  * Parent artifact ID
11240
11388
  */
11241
11389
  artifact: number;
11390
+ body_state?: null | ArtifactBodyState;
11242
11391
  content_json?: null | Value;
11243
11392
  /**
11244
11393
  * MIME content type
@@ -11268,6 +11417,18 @@ export type GetVersionResponses = {
11268
11417
  */
11269
11418
  id: number;
11270
11419
  meta?: null | Value;
11420
+ /**
11421
+ * Immutable object-store locator.
11422
+ */
11423
+ object_key?: string | null;
11424
+ /**
11425
+ * Opaque provider generation, version ID, or ETag pinned for reads.
11426
+ */
11427
+ provider_version?: string | null;
11428
+ /**
11429
+ * SHA-256 digest of the ready body.
11430
+ */
11431
+ sha256?: string | null;
11271
11432
  /**
11272
11433
  * Size of content in bytes
11273
11434
  */
@@ -11304,12 +11465,20 @@ export type DownloadVersionErrors = {
11304
11465
  * Artifact, version, or content not found
11305
11466
  */
11306
11467
  404: unknown;
11468
+ /**
11469
+ * Requested range is not satisfiable
11470
+ */
11471
+ 416: unknown;
11307
11472
  };
11308
11473
  export type DownloadVersionResponses = {
11309
11474
  /**
11310
11475
  * Binary file content
11311
11476
  */
11312
11477
  200: Blob | File;
11478
+ /**
11479
+ * Requested byte range
11480
+ */
11481
+ 206: Blob | File;
11313
11482
  };
11314
11483
  export type DownloadVersionResponse = DownloadVersionResponses[keyof DownloadVersionResponses];
11315
11484
  export type ListAuditEventsData = {
@@ -11480,8 +11649,8 @@ export type GetAuditEventResponse = GetAuditEventResponses[keyof GetAuditEventRe
11480
11649
  export type ListNamespacesData = {
11481
11650
  body?: never;
11482
11651
  path?: never;
11483
- query: {
11484
- owner_type: OwnerType;
11652
+ query?: {
11653
+ owner_type?: null | OwnerType;
11485
11654
  owner_ref?: string | null;
11486
11655
  /**
11487
11656
  * Case-insensitive namespace substring.
@@ -12716,6 +12885,10 @@ export type CreateEventErrors = {
12716
12885
  * Unauthorized
12717
12886
  */
12718
12887
  401: unknown;
12888
+ /**
12889
+ * Token is not authorized to create this event
12890
+ */
12891
+ 403: unknown;
12719
12892
  /**
12720
12893
  * Trigger not found
12721
12894
  */
@@ -14442,12 +14615,20 @@ export type DownloadFileErrors = {
14442
14615
  * File not found
14443
14616
  */
14444
14617
  404: unknown;
14618
+ /**
14619
+ * Requested range is not satisfiable
14620
+ */
14621
+ 416: unknown;
14445
14622
  };
14446
14623
  export type DownloadFileResponses = {
14447
14624
  /**
14448
14625
  * File content
14449
14626
  */
14450
14627
  200: Blob | File;
14628
+ /**
14629
+ * Requested byte range
14630
+ */
14631
+ 206: Blob | File;
14451
14632
  };
14452
14633
  export type DownloadFileResponse = DownloadFileResponses[keyof DownloadFileResponses];
14453
14634
  export type CheckFileData = {
@@ -14481,38 +14662,6 @@ export type CheckFileResponses = {
14481
14662
  */
14482
14663
  200: unknown;
14483
14664
  };
14484
- export type AppendToFileData = {
14485
- body: string;
14486
- path: {
14487
- /**
14488
- * Relative artifact file path
14489
- */
14490
- file_path: string;
14491
- };
14492
- query?: never;
14493
- url: '/api/v1/internal/files/{file_path}';
14494
- };
14495
- export type AppendToFileErrors = {
14496
- /**
14497
- * Invalid file path
14498
- */
14499
- 400: unknown;
14500
- /**
14501
- * Unauthorized
14502
- */
14503
- 401: unknown;
14504
- /**
14505
- * Payload too large
14506
- */
14507
- 413: unknown;
14508
- };
14509
- export type AppendToFileResponses = {
14510
- /**
14511
- * File content appended
14512
- */
14513
- 204: void;
14514
- };
14515
- export type AppendToFileResponse = AppendToFileResponses[keyof AppendToFileResponses];
14516
14665
  export type UploadFileData = {
14517
14666
  body: string;
14518
14667
  path: {
@@ -14602,12 +14751,20 @@ export type DownloadPackArchiveErrors = {
14602
14751
  * Pack not found
14603
14752
  */
14604
14753
  404: unknown;
14754
+ /**
14755
+ * Requested range is not satisfiable
14756
+ */
14757
+ 416: unknown;
14605
14758
  };
14606
14759
  export type DownloadPackArchiveResponses = {
14607
14760
  /**
14608
14761
  * Pack archive
14609
14762
  */
14610
14763
  200: Blob | File;
14764
+ /**
14765
+ * Requested pack archive byte range
14766
+ */
14767
+ 206: Blob | File;
14611
14768
  };
14612
14769
  export type DownloadPackArchiveResponse = DownloadPackArchiveResponses[keyof DownloadPackArchiveResponses];
14613
14770
  export type ListKeysData = {
@@ -19176,6 +19333,9 @@ export type CreateSensorTokenInternalResponses = {
19176
19333
  sensor_ref: string;
19177
19334
  token: string;
19178
19335
  trigger_types: Array<string>;
19336
+ workload_fence?: {
19337
+ [key: string]: unknown;
19338
+ } | null;
19179
19339
  };
19180
19340
  /**
19181
19341
  * Optional message
@@ -19551,50 +19711,6 @@ export type RegisterResponses = {
19551
19711
  };
19552
19712
  };
19553
19713
  export type RegisterResponse = RegisterResponses[keyof RegisterResponses];
19554
- export type CreateSensorTokenData = {
19555
- body: CreateSensorTokenRequest;
19556
- path?: never;
19557
- query?: never;
19558
- url: '/auth/sensor-token';
19559
- };
19560
- export type CreateSensorTokenErrors = {
19561
- /**
19562
- * Validation error
19563
- */
19564
- 400: unknown;
19565
- /**
19566
- * Unauthorized
19567
- */
19568
- 401: unknown;
19569
- /**
19570
- * Forbidden
19571
- */
19572
- 403: unknown;
19573
- };
19574
- export type CreateSensorTokenResponses = {
19575
- /**
19576
- * Standard API response wrapper
19577
- */
19578
- 200: {
19579
- /**
19580
- * Response for sensor token creation
19581
- */
19582
- data: {
19583
- expires_at: string;
19584
- identity_id: number;
19585
- pack_ref?: string | null;
19586
- permission_set_refs: Array<string>;
19587
- sensor_ref: string;
19588
- token: string;
19589
- trigger_types: Array<string>;
19590
- };
19591
- /**
19592
- * Optional message
19593
- */
19594
- message?: string | null;
19595
- };
19596
- };
19597
- export type CreateSensorTokenResponse = CreateSensorTokenResponses[keyof CreateSensorTokenResponses];
19598
19714
  export type AuthSettingsData = {
19599
19715
  body?: never;
19600
19716
  path?: never;