@confighub/api 0.8.12 → 0.8.14

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.cts CHANGED
@@ -1218,6 +1218,50 @@ interface paths {
1218
1218
  patch?: never;
1219
1219
  trace?: never;
1220
1220
  };
1221
+ "/service_account/{service_account_id}/token": {
1222
+ parameters: {
1223
+ query?: never;
1224
+ header?: never;
1225
+ path?: never;
1226
+ cookie?: never;
1227
+ };
1228
+ /**
1229
+ * List a service account's long-lived tokens
1230
+ * @description List the long-lived tokens issued to a service account, revoked ones included. The tokens themselves are not returned; each entry carries the jti, who issued it, when it was last used, and whether it has been revoked. Requires View permission on the service account.
1231
+ */
1232
+ get: operations["ListServiceAccountTokens"];
1233
+ put?: never;
1234
+ /**
1235
+ * Issue a long-lived token for a service account
1236
+ * @description Issue a token with no expiry (or the given ExpiresAt) that authenticates as the service account, for consumers that can hold only a static credential, such as a registry Secret. The token is returned once and never stored; it can be revoked by its jti. Requires Impersonate permission on the service account, which Manage does not include; a service account cannot issue a token for itself.
1237
+ */
1238
+ post: operations["CreateServiceAccountToken"];
1239
+ delete?: never;
1240
+ options?: never;
1241
+ head?: never;
1242
+ patch?: never;
1243
+ trace?: never;
1244
+ };
1245
+ "/service_account/{service_account_id}/token/{jti}": {
1246
+ parameters: {
1247
+ query?: never;
1248
+ header?: never;
1249
+ path?: never;
1250
+ cookie?: never;
1251
+ };
1252
+ get?: never;
1253
+ put?: never;
1254
+ post?: never;
1255
+ /**
1256
+ * Revoke a service account's long-lived token
1257
+ * @description Revoke one token by its jti. The token stops working within a minute on every server; the record stays, marked revoked. Requires Impersonate permission on the service account.
1258
+ */
1259
+ delete: operations["RevokeServiceAccountToken"];
1260
+ options?: never;
1261
+ head?: never;
1262
+ patch?: never;
1263
+ trace?: never;
1264
+ };
1221
1265
  "/space": {
1222
1266
  parameters: {
1223
1267
  query?: never;
@@ -2412,7 +2456,7 @@ interface paths {
2412
2456
  get: operations["DownloadUnitData"];
2413
2457
  /**
2414
2458
  * Upload config data
2415
- * @description Replace the config data of a unit. The request body is the configuration itself. This is the only way configuration reaches a Unit other than a clone, which copies it server-side: Data is not part of the Unit entity, so no metadata write can carry one or destroy one. Send If-Match with the DataHash a read served to make the write conditional on nobody having written first. Requires Edit permission.
2459
+ * @description Replace the config data of a unit. The request body is the configuration itself. This is the only way configuration reaches a Unit other than a clone, which copies it server-side: Data is not part of the Unit entity, so no metadata write can carry one or destroy one. Send If-Match with the DataHash a read served to make the write conditional on the configuration still being that one. Requires Edit permission.
2416
2460
  */
2417
2461
  put: operations["UploadUnitData"];
2418
2462
  post?: never;
@@ -4722,6 +4766,14 @@ interface components {
4722
4766
  Description?: string;
4723
4767
  PublicJWK?: unknown;
4724
4768
  };
4769
+ CreateUserTokenRequest: {
4770
+ Description?: string;
4771
+ /**
4772
+ * Format: date-time
4773
+ * @example 2006-01-02T15:04:05Z07:00
4774
+ */
4775
+ ExpiresAt?: string;
4776
+ };
4725
4777
  /** @description Response for successful delete operation */
4726
4778
  DeleteResponse: {
4727
4779
  /** @description Error information if the delete operation failed. */
@@ -5606,6 +5658,10 @@ interface components {
5606
5658
  /** @description A more detailed and specific explanation of the issue found */
5607
5659
  Message?: string;
5608
5660
  };
5661
+ IssuedUserToken: {
5662
+ Token?: string;
5663
+ UserToken?: components["schemas"]["UserToken"];
5664
+ };
5609
5665
  /**
5610
5666
  * @description Link connects two config Units in a dependency / producer-consumer relationship.
5611
5667
  * A Link indicates that selected config data from the upstream To Unit (the producer)
@@ -8627,6 +8683,45 @@ interface components {
8627
8683
  */
8628
8684
  UserKeyID?: string;
8629
8685
  };
8686
+ UserToken: {
8687
+ /**
8688
+ * Format: date-time
8689
+ * @example 2006-01-02T15:04:05Z07:00
8690
+ */
8691
+ CreatedAt?: string;
8692
+ /**
8693
+ * Format: uuid
8694
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
8695
+ */
8696
+ CreatedByUserID?: string;
8697
+ Description?: string;
8698
+ /**
8699
+ * Format: date-time
8700
+ * @example 2006-01-02T15:04:05Z07:00
8701
+ */
8702
+ ExpiresAt?: string;
8703
+ Jti?: string;
8704
+ /**
8705
+ * Format: date-time
8706
+ * @example 2006-01-02T15:04:05Z07:00
8707
+ */
8708
+ LastUsedAt?: string;
8709
+ /**
8710
+ * Format: date-time
8711
+ * @example 2006-01-02T15:04:05Z07:00
8712
+ */
8713
+ RevokedAt?: string;
8714
+ /**
8715
+ * Format: uuid
8716
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
8717
+ */
8718
+ UserID?: string;
8719
+ /**
8720
+ * Format: uuid
8721
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
8722
+ */
8723
+ UserTokenID?: string;
8724
+ };
8630
8725
  ValidationResult: {
8631
8726
  /** @description Deprecated. Use Issues or FailedAttributes instead. Optional list of failure details when not associated with specific attributes/paths. */
8632
8727
  Details?: string[];
@@ -25664,6 +25759,273 @@ interface operations {
25664
25759
  };
25665
25760
  };
25666
25761
  };
25762
+ ListServiceAccountTokens: {
25763
+ parameters: {
25764
+ query?: never;
25765
+ header?: never;
25766
+ path: {
25767
+ /** @description UUID of the service account whose tokens are being managed. */
25768
+ service_account_id: string;
25769
+ };
25770
+ cookie?: never;
25771
+ };
25772
+ requestBody?: never;
25773
+ responses: {
25774
+ /** @description OK */
25775
+ 200: {
25776
+ headers: {
25777
+ [name: string]: unknown;
25778
+ };
25779
+ content: {
25780
+ "application/json": components["schemas"]["UserToken"][];
25781
+ };
25782
+ };
25783
+ /** @description ServiceAccount request is invalid (Bad Request). */
25784
+ 400: {
25785
+ headers: {
25786
+ [name: string]: unknown;
25787
+ };
25788
+ content: {
25789
+ "application/json": components["schemas"]["StandardErrorResponse"];
25790
+ };
25791
+ };
25792
+ /** @description Unauthorized access. */
25793
+ 401: {
25794
+ headers: {
25795
+ [name: string]: unknown;
25796
+ };
25797
+ content: {
25798
+ "application/json": components["schemas"]["StandardErrorResponse"];
25799
+ };
25800
+ };
25801
+ /** @description Forbidden access. */
25802
+ 403: {
25803
+ headers: {
25804
+ [name: string]: unknown;
25805
+ };
25806
+ content: {
25807
+ "application/json": components["schemas"]["StandardErrorResponse"];
25808
+ };
25809
+ };
25810
+ /** @description ServiceAccount not found. */
25811
+ 404: {
25812
+ headers: {
25813
+ [name: string]: unknown;
25814
+ };
25815
+ content: {
25816
+ "application/json": components["schemas"]["StandardErrorResponse"];
25817
+ };
25818
+ };
25819
+ /** @description Something went wrong while processing ServiceAccount. */
25820
+ 500: {
25821
+ headers: {
25822
+ [name: string]: unknown;
25823
+ };
25824
+ content: {
25825
+ "application/json": components["schemas"]["StandardErrorResponse"];
25826
+ };
25827
+ };
25828
+ /** @description Unexpected error. */
25829
+ default: {
25830
+ headers: {
25831
+ [name: string]: unknown;
25832
+ };
25833
+ content: {
25834
+ "application/json": components["schemas"]["StandardErrorResponse"];
25835
+ };
25836
+ };
25837
+ };
25838
+ };
25839
+ CreateServiceAccountToken: {
25840
+ parameters: {
25841
+ query?: {
25842
+ /** @description If true, report what the write would do without doing it: the write runs, including every check it makes, and is then rolled back. The response is the one the write would return, with the entities as they would be written. An entity a dry run creates is given an ID that the real create will not reuse. */
25843
+ dry_run?: boolean;
25844
+ };
25845
+ header?: never;
25846
+ path: {
25847
+ /** @description UUID of the service account whose tokens are being managed. */
25848
+ service_account_id: string;
25849
+ };
25850
+ cookie?: never;
25851
+ };
25852
+ requestBody?: {
25853
+ content: {
25854
+ "application/json": components["schemas"]["CreateUserTokenRequest"];
25855
+ };
25856
+ };
25857
+ responses: {
25858
+ /** @description OK */
25859
+ 200: {
25860
+ headers: {
25861
+ [name: string]: unknown;
25862
+ };
25863
+ content: {
25864
+ "application/json": components["schemas"]["IssuedUserToken"];
25865
+ };
25866
+ };
25867
+ /** @description ServiceAccount request is invalid (Bad Request). */
25868
+ 400: {
25869
+ headers: {
25870
+ [name: string]: unknown;
25871
+ };
25872
+ content: {
25873
+ "application/json": components["schemas"]["StandardErrorResponse"];
25874
+ };
25875
+ };
25876
+ /** @description Unauthorized access. */
25877
+ 401: {
25878
+ headers: {
25879
+ [name: string]: unknown;
25880
+ };
25881
+ content: {
25882
+ "application/json": components["schemas"]["StandardErrorResponse"];
25883
+ };
25884
+ };
25885
+ /** @description Forbidden access. */
25886
+ 403: {
25887
+ headers: {
25888
+ [name: string]: unknown;
25889
+ };
25890
+ content: {
25891
+ "application/json": components["schemas"]["StandardErrorResponse"];
25892
+ };
25893
+ };
25894
+ /** @description ServiceAccount not found. */
25895
+ 404: {
25896
+ headers: {
25897
+ [name: string]: unknown;
25898
+ };
25899
+ content: {
25900
+ "application/json": components["schemas"]["StandardErrorResponse"];
25901
+ };
25902
+ };
25903
+ /** @description ServiceAccount data conflict. Data has changed since last read. */
25904
+ 409: {
25905
+ headers: {
25906
+ [name: string]: unknown;
25907
+ };
25908
+ content: {
25909
+ "application/json": components["schemas"]["StandardErrorResponse"];
25910
+ };
25911
+ };
25912
+ /** @description Something went wrong while processing ServiceAccount. */
25913
+ 500: {
25914
+ headers: {
25915
+ [name: string]: unknown;
25916
+ };
25917
+ content: {
25918
+ "application/json": components["schemas"]["StandardErrorResponse"];
25919
+ };
25920
+ };
25921
+ /** @description Unexpected error. */
25922
+ default: {
25923
+ headers: {
25924
+ [name: string]: unknown;
25925
+ };
25926
+ content: {
25927
+ "application/json": components["schemas"]["StandardErrorResponse"];
25928
+ };
25929
+ };
25930
+ };
25931
+ };
25932
+ RevokeServiceAccountToken: {
25933
+ parameters: {
25934
+ query?: never;
25935
+ header?: never;
25936
+ path: {
25937
+ /** @description UUID of the service account whose tokens are being managed. */
25938
+ service_account_id: string;
25939
+ /** @description The jti of the token to revoke, as listed and as carried in the token's own claims. */
25940
+ jti: string;
25941
+ };
25942
+ cookie?: never;
25943
+ };
25944
+ requestBody?: never;
25945
+ responses: {
25946
+ /** @description Response for successful delete operation */
25947
+ 200: {
25948
+ headers: {
25949
+ [name: string]: unknown;
25950
+ };
25951
+ content: {
25952
+ "application/json": components["schemas"]["DeleteResponse"];
25953
+ };
25954
+ };
25955
+ /** @description ServiceAccount request is invalid (Bad Request). */
25956
+ 400: {
25957
+ headers: {
25958
+ [name: string]: unknown;
25959
+ };
25960
+ content: {
25961
+ "application/json": components["schemas"]["StandardErrorResponse"];
25962
+ };
25963
+ };
25964
+ /** @description Unauthorized access. */
25965
+ 401: {
25966
+ headers: {
25967
+ [name: string]: unknown;
25968
+ };
25969
+ content: {
25970
+ "application/json": components["schemas"]["StandardErrorResponse"];
25971
+ };
25972
+ };
25973
+ /** @description Forbidden access. */
25974
+ 403: {
25975
+ headers: {
25976
+ [name: string]: unknown;
25977
+ };
25978
+ content: {
25979
+ "application/json": components["schemas"]["StandardErrorResponse"];
25980
+ };
25981
+ };
25982
+ /** @description ServiceAccount not found. */
25983
+ 404: {
25984
+ headers: {
25985
+ [name: string]: unknown;
25986
+ };
25987
+ content: {
25988
+ "application/json": components["schemas"]["StandardErrorResponse"];
25989
+ };
25990
+ };
25991
+ /** @description ServiceAccount is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
25992
+ 409: {
25993
+ headers: {
25994
+ [name: string]: unknown;
25995
+ };
25996
+ content: {
25997
+ "application/json": components["schemas"]["StandardErrorResponse"];
25998
+ };
25999
+ };
26000
+ /** @description ServiceAccount could not be deleted. */
26001
+ 422: {
26002
+ headers: {
26003
+ [name: string]: unknown;
26004
+ };
26005
+ content: {
26006
+ "application/json": components["schemas"]["StandardErrorResponse"];
26007
+ };
26008
+ };
26009
+ /** @description Something went wrong while processing ServiceAccount. */
26010
+ 500: {
26011
+ headers: {
26012
+ [name: string]: unknown;
26013
+ };
26014
+ content: {
26015
+ "application/json": components["schemas"]["StandardErrorResponse"];
26016
+ };
26017
+ };
26018
+ /** @description Unexpected error. */
26019
+ default: {
26020
+ headers: {
26021
+ [name: string]: unknown;
26022
+ };
26023
+ content: {
26024
+ "application/json": components["schemas"]["StandardErrorResponse"];
26025
+ };
26026
+ };
26027
+ };
26028
+ };
25667
26029
  ListSpaces: {
25668
26030
  parameters: {
25669
26031
  query?: {
@@ -38932,7 +39294,10 @@ interface operations {
38932
39294
  /** @description User-defined category for the Mutation. Must be alphanumeric, at most 64 characters. The prefix 'ConfigHub' is reserved. */
38933
39295
  subgroup?: string;
38934
39296
  };
38935
- header?: never;
39297
+ header?: {
39298
+ /** @description The DataHash of the configuration this write replaces, as the ETag a read of the Unit's data served it (quoted) or bare. The write is refused with 409 Conflict when the Unit's configuration is not that one, so an edit made from one Unit's configuration, or before somebody else's write, cannot land over another. Omitted, the write is unconditional. */
39299
+ "If-Match"?: string;
39300
+ };
38936
39301
  path: {
38937
39302
  /** @description Unique identifier for a space_id */
38938
39303
  space_id: string;
package/dist/index.d.ts CHANGED
@@ -1218,6 +1218,50 @@ interface paths {
1218
1218
  patch?: never;
1219
1219
  trace?: never;
1220
1220
  };
1221
+ "/service_account/{service_account_id}/token": {
1222
+ parameters: {
1223
+ query?: never;
1224
+ header?: never;
1225
+ path?: never;
1226
+ cookie?: never;
1227
+ };
1228
+ /**
1229
+ * List a service account's long-lived tokens
1230
+ * @description List the long-lived tokens issued to a service account, revoked ones included. The tokens themselves are not returned; each entry carries the jti, who issued it, when it was last used, and whether it has been revoked. Requires View permission on the service account.
1231
+ */
1232
+ get: operations["ListServiceAccountTokens"];
1233
+ put?: never;
1234
+ /**
1235
+ * Issue a long-lived token for a service account
1236
+ * @description Issue a token with no expiry (or the given ExpiresAt) that authenticates as the service account, for consumers that can hold only a static credential, such as a registry Secret. The token is returned once and never stored; it can be revoked by its jti. Requires Impersonate permission on the service account, which Manage does not include; a service account cannot issue a token for itself.
1237
+ */
1238
+ post: operations["CreateServiceAccountToken"];
1239
+ delete?: never;
1240
+ options?: never;
1241
+ head?: never;
1242
+ patch?: never;
1243
+ trace?: never;
1244
+ };
1245
+ "/service_account/{service_account_id}/token/{jti}": {
1246
+ parameters: {
1247
+ query?: never;
1248
+ header?: never;
1249
+ path?: never;
1250
+ cookie?: never;
1251
+ };
1252
+ get?: never;
1253
+ put?: never;
1254
+ post?: never;
1255
+ /**
1256
+ * Revoke a service account's long-lived token
1257
+ * @description Revoke one token by its jti. The token stops working within a minute on every server; the record stays, marked revoked. Requires Impersonate permission on the service account.
1258
+ */
1259
+ delete: operations["RevokeServiceAccountToken"];
1260
+ options?: never;
1261
+ head?: never;
1262
+ patch?: never;
1263
+ trace?: never;
1264
+ };
1221
1265
  "/space": {
1222
1266
  parameters: {
1223
1267
  query?: never;
@@ -2412,7 +2456,7 @@ interface paths {
2412
2456
  get: operations["DownloadUnitData"];
2413
2457
  /**
2414
2458
  * Upload config data
2415
- * @description Replace the config data of a unit. The request body is the configuration itself. This is the only way configuration reaches a Unit other than a clone, which copies it server-side: Data is not part of the Unit entity, so no metadata write can carry one or destroy one. Send If-Match with the DataHash a read served to make the write conditional on nobody having written first. Requires Edit permission.
2459
+ * @description Replace the config data of a unit. The request body is the configuration itself. This is the only way configuration reaches a Unit other than a clone, which copies it server-side: Data is not part of the Unit entity, so no metadata write can carry one or destroy one. Send If-Match with the DataHash a read served to make the write conditional on the configuration still being that one. Requires Edit permission.
2416
2460
  */
2417
2461
  put: operations["UploadUnitData"];
2418
2462
  post?: never;
@@ -4722,6 +4766,14 @@ interface components {
4722
4766
  Description?: string;
4723
4767
  PublicJWK?: unknown;
4724
4768
  };
4769
+ CreateUserTokenRequest: {
4770
+ Description?: string;
4771
+ /**
4772
+ * Format: date-time
4773
+ * @example 2006-01-02T15:04:05Z07:00
4774
+ */
4775
+ ExpiresAt?: string;
4776
+ };
4725
4777
  /** @description Response for successful delete operation */
4726
4778
  DeleteResponse: {
4727
4779
  /** @description Error information if the delete operation failed. */
@@ -5606,6 +5658,10 @@ interface components {
5606
5658
  /** @description A more detailed and specific explanation of the issue found */
5607
5659
  Message?: string;
5608
5660
  };
5661
+ IssuedUserToken: {
5662
+ Token?: string;
5663
+ UserToken?: components["schemas"]["UserToken"];
5664
+ };
5609
5665
  /**
5610
5666
  * @description Link connects two config Units in a dependency / producer-consumer relationship.
5611
5667
  * A Link indicates that selected config data from the upstream To Unit (the producer)
@@ -8627,6 +8683,45 @@ interface components {
8627
8683
  */
8628
8684
  UserKeyID?: string;
8629
8685
  };
8686
+ UserToken: {
8687
+ /**
8688
+ * Format: date-time
8689
+ * @example 2006-01-02T15:04:05Z07:00
8690
+ */
8691
+ CreatedAt?: string;
8692
+ /**
8693
+ * Format: uuid
8694
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
8695
+ */
8696
+ CreatedByUserID?: string;
8697
+ Description?: string;
8698
+ /**
8699
+ * Format: date-time
8700
+ * @example 2006-01-02T15:04:05Z07:00
8701
+ */
8702
+ ExpiresAt?: string;
8703
+ Jti?: string;
8704
+ /**
8705
+ * Format: date-time
8706
+ * @example 2006-01-02T15:04:05Z07:00
8707
+ */
8708
+ LastUsedAt?: string;
8709
+ /**
8710
+ * Format: date-time
8711
+ * @example 2006-01-02T15:04:05Z07:00
8712
+ */
8713
+ RevokedAt?: string;
8714
+ /**
8715
+ * Format: uuid
8716
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
8717
+ */
8718
+ UserID?: string;
8719
+ /**
8720
+ * Format: uuid
8721
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
8722
+ */
8723
+ UserTokenID?: string;
8724
+ };
8630
8725
  ValidationResult: {
8631
8726
  /** @description Deprecated. Use Issues or FailedAttributes instead. Optional list of failure details when not associated with specific attributes/paths. */
8632
8727
  Details?: string[];
@@ -25664,6 +25759,273 @@ interface operations {
25664
25759
  };
25665
25760
  };
25666
25761
  };
25762
+ ListServiceAccountTokens: {
25763
+ parameters: {
25764
+ query?: never;
25765
+ header?: never;
25766
+ path: {
25767
+ /** @description UUID of the service account whose tokens are being managed. */
25768
+ service_account_id: string;
25769
+ };
25770
+ cookie?: never;
25771
+ };
25772
+ requestBody?: never;
25773
+ responses: {
25774
+ /** @description OK */
25775
+ 200: {
25776
+ headers: {
25777
+ [name: string]: unknown;
25778
+ };
25779
+ content: {
25780
+ "application/json": components["schemas"]["UserToken"][];
25781
+ };
25782
+ };
25783
+ /** @description ServiceAccount request is invalid (Bad Request). */
25784
+ 400: {
25785
+ headers: {
25786
+ [name: string]: unknown;
25787
+ };
25788
+ content: {
25789
+ "application/json": components["schemas"]["StandardErrorResponse"];
25790
+ };
25791
+ };
25792
+ /** @description Unauthorized access. */
25793
+ 401: {
25794
+ headers: {
25795
+ [name: string]: unknown;
25796
+ };
25797
+ content: {
25798
+ "application/json": components["schemas"]["StandardErrorResponse"];
25799
+ };
25800
+ };
25801
+ /** @description Forbidden access. */
25802
+ 403: {
25803
+ headers: {
25804
+ [name: string]: unknown;
25805
+ };
25806
+ content: {
25807
+ "application/json": components["schemas"]["StandardErrorResponse"];
25808
+ };
25809
+ };
25810
+ /** @description ServiceAccount not found. */
25811
+ 404: {
25812
+ headers: {
25813
+ [name: string]: unknown;
25814
+ };
25815
+ content: {
25816
+ "application/json": components["schemas"]["StandardErrorResponse"];
25817
+ };
25818
+ };
25819
+ /** @description Something went wrong while processing ServiceAccount. */
25820
+ 500: {
25821
+ headers: {
25822
+ [name: string]: unknown;
25823
+ };
25824
+ content: {
25825
+ "application/json": components["schemas"]["StandardErrorResponse"];
25826
+ };
25827
+ };
25828
+ /** @description Unexpected error. */
25829
+ default: {
25830
+ headers: {
25831
+ [name: string]: unknown;
25832
+ };
25833
+ content: {
25834
+ "application/json": components["schemas"]["StandardErrorResponse"];
25835
+ };
25836
+ };
25837
+ };
25838
+ };
25839
+ CreateServiceAccountToken: {
25840
+ parameters: {
25841
+ query?: {
25842
+ /** @description If true, report what the write would do without doing it: the write runs, including every check it makes, and is then rolled back. The response is the one the write would return, with the entities as they would be written. An entity a dry run creates is given an ID that the real create will not reuse. */
25843
+ dry_run?: boolean;
25844
+ };
25845
+ header?: never;
25846
+ path: {
25847
+ /** @description UUID of the service account whose tokens are being managed. */
25848
+ service_account_id: string;
25849
+ };
25850
+ cookie?: never;
25851
+ };
25852
+ requestBody?: {
25853
+ content: {
25854
+ "application/json": components["schemas"]["CreateUserTokenRequest"];
25855
+ };
25856
+ };
25857
+ responses: {
25858
+ /** @description OK */
25859
+ 200: {
25860
+ headers: {
25861
+ [name: string]: unknown;
25862
+ };
25863
+ content: {
25864
+ "application/json": components["schemas"]["IssuedUserToken"];
25865
+ };
25866
+ };
25867
+ /** @description ServiceAccount request is invalid (Bad Request). */
25868
+ 400: {
25869
+ headers: {
25870
+ [name: string]: unknown;
25871
+ };
25872
+ content: {
25873
+ "application/json": components["schemas"]["StandardErrorResponse"];
25874
+ };
25875
+ };
25876
+ /** @description Unauthorized access. */
25877
+ 401: {
25878
+ headers: {
25879
+ [name: string]: unknown;
25880
+ };
25881
+ content: {
25882
+ "application/json": components["schemas"]["StandardErrorResponse"];
25883
+ };
25884
+ };
25885
+ /** @description Forbidden access. */
25886
+ 403: {
25887
+ headers: {
25888
+ [name: string]: unknown;
25889
+ };
25890
+ content: {
25891
+ "application/json": components["schemas"]["StandardErrorResponse"];
25892
+ };
25893
+ };
25894
+ /** @description ServiceAccount not found. */
25895
+ 404: {
25896
+ headers: {
25897
+ [name: string]: unknown;
25898
+ };
25899
+ content: {
25900
+ "application/json": components["schemas"]["StandardErrorResponse"];
25901
+ };
25902
+ };
25903
+ /** @description ServiceAccount data conflict. Data has changed since last read. */
25904
+ 409: {
25905
+ headers: {
25906
+ [name: string]: unknown;
25907
+ };
25908
+ content: {
25909
+ "application/json": components["schemas"]["StandardErrorResponse"];
25910
+ };
25911
+ };
25912
+ /** @description Something went wrong while processing ServiceAccount. */
25913
+ 500: {
25914
+ headers: {
25915
+ [name: string]: unknown;
25916
+ };
25917
+ content: {
25918
+ "application/json": components["schemas"]["StandardErrorResponse"];
25919
+ };
25920
+ };
25921
+ /** @description Unexpected error. */
25922
+ default: {
25923
+ headers: {
25924
+ [name: string]: unknown;
25925
+ };
25926
+ content: {
25927
+ "application/json": components["schemas"]["StandardErrorResponse"];
25928
+ };
25929
+ };
25930
+ };
25931
+ };
25932
+ RevokeServiceAccountToken: {
25933
+ parameters: {
25934
+ query?: never;
25935
+ header?: never;
25936
+ path: {
25937
+ /** @description UUID of the service account whose tokens are being managed. */
25938
+ service_account_id: string;
25939
+ /** @description The jti of the token to revoke, as listed and as carried in the token's own claims. */
25940
+ jti: string;
25941
+ };
25942
+ cookie?: never;
25943
+ };
25944
+ requestBody?: never;
25945
+ responses: {
25946
+ /** @description Response for successful delete operation */
25947
+ 200: {
25948
+ headers: {
25949
+ [name: string]: unknown;
25950
+ };
25951
+ content: {
25952
+ "application/json": components["schemas"]["DeleteResponse"];
25953
+ };
25954
+ };
25955
+ /** @description ServiceAccount request is invalid (Bad Request). */
25956
+ 400: {
25957
+ headers: {
25958
+ [name: string]: unknown;
25959
+ };
25960
+ content: {
25961
+ "application/json": components["schemas"]["StandardErrorResponse"];
25962
+ };
25963
+ };
25964
+ /** @description Unauthorized access. */
25965
+ 401: {
25966
+ headers: {
25967
+ [name: string]: unknown;
25968
+ };
25969
+ content: {
25970
+ "application/json": components["schemas"]["StandardErrorResponse"];
25971
+ };
25972
+ };
25973
+ /** @description Forbidden access. */
25974
+ 403: {
25975
+ headers: {
25976
+ [name: string]: unknown;
25977
+ };
25978
+ content: {
25979
+ "application/json": components["schemas"]["StandardErrorResponse"];
25980
+ };
25981
+ };
25982
+ /** @description ServiceAccount not found. */
25983
+ 404: {
25984
+ headers: {
25985
+ [name: string]: unknown;
25986
+ };
25987
+ content: {
25988
+ "application/json": components["schemas"]["StandardErrorResponse"];
25989
+ };
25990
+ };
25991
+ /** @description ServiceAccount is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
25992
+ 409: {
25993
+ headers: {
25994
+ [name: string]: unknown;
25995
+ };
25996
+ content: {
25997
+ "application/json": components["schemas"]["StandardErrorResponse"];
25998
+ };
25999
+ };
26000
+ /** @description ServiceAccount could not be deleted. */
26001
+ 422: {
26002
+ headers: {
26003
+ [name: string]: unknown;
26004
+ };
26005
+ content: {
26006
+ "application/json": components["schemas"]["StandardErrorResponse"];
26007
+ };
26008
+ };
26009
+ /** @description Something went wrong while processing ServiceAccount. */
26010
+ 500: {
26011
+ headers: {
26012
+ [name: string]: unknown;
26013
+ };
26014
+ content: {
26015
+ "application/json": components["schemas"]["StandardErrorResponse"];
26016
+ };
26017
+ };
26018
+ /** @description Unexpected error. */
26019
+ default: {
26020
+ headers: {
26021
+ [name: string]: unknown;
26022
+ };
26023
+ content: {
26024
+ "application/json": components["schemas"]["StandardErrorResponse"];
26025
+ };
26026
+ };
26027
+ };
26028
+ };
25667
26029
  ListSpaces: {
25668
26030
  parameters: {
25669
26031
  query?: {
@@ -38932,7 +39294,10 @@ interface operations {
38932
39294
  /** @description User-defined category for the Mutation. Must be alphanumeric, at most 64 characters. The prefix 'ConfigHub' is reserved. */
38933
39295
  subgroup?: string;
38934
39296
  };
38935
- header?: never;
39297
+ header?: {
39298
+ /** @description The DataHash of the configuration this write replaces, as the ETag a read of the Unit's data served it (quoted) or bare. The write is refused with 409 Conflict when the Unit's configuration is not that one, so an edit made from one Unit's configuration, or before somebody else's write, cannot land over another. Omitted, the write is unconditional. */
39299
+ "If-Match"?: string;
39300
+ };
38936
39301
  path: {
38937
39302
  /** @description Unique identifier for a space_id */
38938
39303
  space_id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@confighub/api",
3
- "version": "0.8.12",
3
+ "version": "0.8.14",
4
4
  "description": "Typed, framework-agnostic client for the ConfigHub API",
5
5
  "license": "MIT",
6
6
  "repository": {