@parallelworks/client 7.95.0 → 7.95.1

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.
Files changed (2) hide show
  1. package/dist/types/api.d.ts +640 -0
  2. package/package.json +1 -1
@@ -4239,6 +4239,28 @@ export interface paths {
4239
4239
  patch?: never;
4240
4240
  trace?: never;
4241
4241
  };
4242
+ "/api/oidc/token/direct": {
4243
+ parameters: {
4244
+ query?: never;
4245
+ header?: never;
4246
+ path?: never;
4247
+ cookie?: never;
4248
+ };
4249
+ /**
4250
+ * Get an identity token by direct grant
4251
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
4252
+ *
4253
+ * Mints an identity token for the logged-in user against a registered application, without a browser redirect. This is the exec-credential pattern used by kubectl.
4254
+ */
4255
+ get: operations["get-oidc-token-direct"];
4256
+ put?: never;
4257
+ post?: never;
4258
+ delete?: never;
4259
+ options?: never;
4260
+ head?: never;
4261
+ patch?: never;
4262
+ trace?: never;
4263
+ };
4242
4264
  "/api/onboarding/recommended-resources": {
4243
4265
  parameters: {
4244
4266
  query?: never;
@@ -7669,6 +7691,156 @@ export interface paths {
7669
7691
  patch?: never;
7670
7692
  trace?: never;
7671
7693
  };
7694
+ "/api/organizations/{organization}/oidc/apps": {
7695
+ parameters: {
7696
+ query?: never;
7697
+ header?: never;
7698
+ path?: never;
7699
+ cookie?: never;
7700
+ };
7701
+ /**
7702
+ * List OIDC applications
7703
+ * @description > This is a system-level route, so the response will be independent of the currently authenticated user.
7704
+ *
7705
+ * Lists the applications registered for the organization. Requires an organization administrator. Client secrets are never included.
7706
+ */
7707
+ get: operations["list-org-oidc-apps"];
7708
+ put?: never;
7709
+ /**
7710
+ * Register an OIDC application
7711
+ * @description > This is a system-level route, so the response will be independent of the currently authenticated user.
7712
+ *
7713
+ * Registers an application that uses the platform as its identity provider. Requires an organization administrator. The client ID is generated; it cannot be chosen.
7714
+ */
7715
+ post: operations["create-org-oidc-app"];
7716
+ delete?: never;
7717
+ options?: never;
7718
+ head?: never;
7719
+ patch?: never;
7720
+ trace?: never;
7721
+ };
7722
+ "/api/organizations/{organization}/oidc/apps/{clientId}": {
7723
+ parameters: {
7724
+ query?: never;
7725
+ header?: never;
7726
+ path?: never;
7727
+ cookie?: never;
7728
+ };
7729
+ /**
7730
+ * Get an OIDC application
7731
+ * @description > This is a system-level route, so the response will be independent of the currently authenticated user.
7732
+ *
7733
+ * Returns a single registered application. Requires an organization administrator. Client secrets are never included.
7734
+ */
7735
+ get: operations["get-org-oidc-app"];
7736
+ /**
7737
+ * Update an OIDC application
7738
+ * @description > This is a system-level route, so the response will be independent of the currently authenticated user.
7739
+ *
7740
+ * Updates a registered application. Requires an organization administrator.
7741
+ */
7742
+ put: operations["update-org-oidc-app"];
7743
+ post?: never;
7744
+ /**
7745
+ * Delete an OIDC application
7746
+ * @description > This is a system-level route, so the response will be independent of the currently authenticated user.
7747
+ *
7748
+ * Removes a registered application and its client secrets. Requires an organization administrator.
7749
+ */
7750
+ delete: operations["delete-org-oidc-app"];
7751
+ options?: never;
7752
+ head?: never;
7753
+ patch?: never;
7754
+ trace?: never;
7755
+ };
7756
+ "/api/organizations/{organization}/oidc/apps/{clientId}/secrets": {
7757
+ parameters: {
7758
+ query?: never;
7759
+ header?: never;
7760
+ path?: never;
7761
+ cookie?: never;
7762
+ };
7763
+ get?: never;
7764
+ put?: never;
7765
+ /**
7766
+ * Create a client secret
7767
+ * @description > This is a system-level route, so the response will be independent of the currently authenticated user.
7768
+ *
7769
+ * Issues a new client secret for the application and returns it. Requires an organization administrator.
7770
+ */
7771
+ post: operations["create-org-oidc-app-secret"];
7772
+ delete?: never;
7773
+ options?: never;
7774
+ head?: never;
7775
+ patch?: never;
7776
+ trace?: never;
7777
+ };
7778
+ "/api/organizations/{organization}/oidc/apps/{clientId}/secrets/rotate": {
7779
+ parameters: {
7780
+ query?: never;
7781
+ header?: never;
7782
+ path?: never;
7783
+ cookie?: never;
7784
+ };
7785
+ get?: never;
7786
+ put?: never;
7787
+ /**
7788
+ * Rotate the client secret
7789
+ * @description > This is a system-level route, so the response will be independent of the currently authenticated user.
7790
+ *
7791
+ * Issues a replacement client secret. Requires an organization administrator. The previous secrets keep working for the overlap window so the application can be updated without an outage.
7792
+ */
7793
+ post: operations["rotate-org-oidc-app-secret"];
7794
+ delete?: never;
7795
+ options?: never;
7796
+ head?: never;
7797
+ patch?: never;
7798
+ trace?: never;
7799
+ };
7800
+ "/api/organizations/{organization}/oidc/apps/{clientId}/secrets/{secretId}": {
7801
+ parameters: {
7802
+ query?: never;
7803
+ header?: never;
7804
+ path?: never;
7805
+ cookie?: never;
7806
+ };
7807
+ get?: never;
7808
+ put?: never;
7809
+ post?: never;
7810
+ /**
7811
+ * Delete a client secret
7812
+ * @description > This is a system-level route, so the response will be independent of the currently authenticated user.
7813
+ *
7814
+ * Removes a client secret immediately. Requires an organization administrator.
7815
+ */
7816
+ delete: operations["delete-org-oidc-app-secret"];
7817
+ options?: never;
7818
+ head?: never;
7819
+ patch?: never;
7820
+ trace?: never;
7821
+ };
7822
+ "/api/organizations/{organization}/oidc/apps/{clientId}/secrets/{secretId}/reveal": {
7823
+ parameters: {
7824
+ query?: never;
7825
+ header?: never;
7826
+ path?: never;
7827
+ cookie?: never;
7828
+ };
7829
+ get?: never;
7830
+ put?: never;
7831
+ /**
7832
+ * Reveal a client secret
7833
+ * @description > This is a system-level route, so the response will be independent of the currently authenticated user.
7834
+ *
7835
+ * Returns a stored client secret again. Requires an organization administrator. Every reveal is recorded as an audit event.
7836
+ */
7837
+ post: operations["reveal-org-oidc-app-secret"];
7838
+ delete?: never;
7839
+ options?: never;
7840
+ head?: never;
7841
+ patch?: never;
7842
+ trace?: never;
7843
+ };
7672
7844
  "/api/organizations/{organization}/owner": {
7673
7845
  parameters: {
7674
7846
  query?: never;
@@ -15686,6 +15858,87 @@ export interface components {
15686
15858
  */
15687
15859
  source: "platform" | "partner" | "organization";
15688
15860
  };
15861
+ AppBody: {
15862
+ /** @description Groups whose members may use the application. Empty means everyone in the organization. */
15863
+ allowedGroups?: string[] | null;
15864
+ /**
15865
+ * @description Whether the user sees a consent screen. Defaults to none.
15866
+ * @enum {string}
15867
+ */
15868
+ consent?: "none" | "required";
15869
+ /** @description What the application is for. */
15870
+ description?: string;
15871
+ /** @description Whether the application is disabled. */
15872
+ disabled?: boolean;
15873
+ /**
15874
+ * @description The application kind. Defaults to web.
15875
+ * @enum {string}
15876
+ */
15877
+ kind?: "web" | "spa" | "native" | "service";
15878
+ /**
15879
+ * @description Whether the application is scoped to one organization or the whole platform. Defaults to organization.
15880
+ * @enum {string}
15881
+ */
15882
+ level?: "organization" | "platform";
15883
+ /** @description The display name of the application. */
15884
+ name: string;
15885
+ /** @description Permitted redirect URIs for the authorization code flow. */
15886
+ redirectUris?: string[] | null;
15887
+ /** @description Scopes the application may request. */
15888
+ scopes?: string[] | null;
15889
+ /**
15890
+ * @description What the sub claim contains. Defaults to userId.
15891
+ * @enum {string}
15892
+ */
15893
+ subjectType?: "userId" | "username";
15894
+ };
15895
+ AppResponse: {
15896
+ /** @description Groups whose members may use the application. Empty means everyone in the organization. */
15897
+ allowedGroups: string[] | null;
15898
+ /** @description The OIDC client_id, generated by the platform. */
15899
+ clientId: string;
15900
+ /**
15901
+ * @description Whether the user sees a consent screen.
15902
+ * @enum {string}
15903
+ */
15904
+ consent: "none" | "required";
15905
+ /**
15906
+ * Format: date-time
15907
+ * @description When the application was registered.
15908
+ */
15909
+ created: string;
15910
+ /** @description What the application is for. */
15911
+ description?: string;
15912
+ /** @description Whether the application is disabled. */
15913
+ disabled: boolean;
15914
+ /** @description The unique identifier for the application. */
15915
+ id: string;
15916
+ /** @description The issuer tokens for this application are minted with. */
15917
+ issuer?: string;
15918
+ /**
15919
+ * @description The application kind.
15920
+ * @enum {string}
15921
+ */
15922
+ kind: "web" | "spa" | "native" | "service";
15923
+ /**
15924
+ * @description Whether the application is scoped to one organization or the whole platform.
15925
+ * @enum {string}
15926
+ */
15927
+ level: "organization" | "platform";
15928
+ /** @description The display name of the application. */
15929
+ name: string;
15930
+ /** @description Permitted redirect URIs for the authorization code flow. */
15931
+ redirectUris: string[] | null;
15932
+ /** @description Scopes the application may request. */
15933
+ scopes: string[] | null;
15934
+ /** @description Client secret metadata. Never includes the secret itself. */
15935
+ secrets: components["schemas"]["SecretInfo"][] | null;
15936
+ /**
15937
+ * @description What the sub claim contains.
15938
+ * @enum {string}
15939
+ */
15940
+ subjectType: "userId" | "username";
15941
+ };
15689
15942
  AssignedOrganization: {
15690
15943
  displayName: string;
15691
15944
  id: string;
@@ -27974,6 +28227,13 @@ export interface components {
27974
28227
  /** @description Subjects with access */
27975
28228
  subjects: components["schemas"]["RbacSubject"][] | null;
27976
28229
  };
28230
+ RotateSecretInputBody: {
28231
+ /**
28232
+ * Format: int64
28233
+ * @description How long the replaced secret keeps working. Defaults to 24 hours; 0 revokes the previous secrets immediately.
28234
+ */
28235
+ overlapHours?: number;
28236
+ };
27977
28237
  RunAlert: {
27978
28238
  /** @description Indicates if runtime alert is enabled for the storage. */
27979
28239
  enabled: boolean;
@@ -28269,6 +28529,40 @@ export interface components {
28269
28529
  queues?: components["schemas"]["SchedulerPartitionData"][] | null;
28270
28530
  schedulerType: string;
28271
28531
  };
28532
+ SecretInfo: {
28533
+ /**
28534
+ * Format: date-time
28535
+ * @description When the secret was created.
28536
+ */
28537
+ created?: string;
28538
+ /**
28539
+ * Format: date-time
28540
+ * @description When a rotated secret stops working.
28541
+ */
28542
+ expiresAt?: string;
28543
+ /** @description Truncated preview of the secret for identification. */
28544
+ hint?: string;
28545
+ /** @description The identifier for this secret. */
28546
+ id: string;
28547
+ };
28548
+ SecretResponse: {
28549
+ /** @description The client secret. */
28550
+ clientSecret: string;
28551
+ /**
28552
+ * Format: date-time
28553
+ * @description When the secret was created.
28554
+ */
28555
+ created?: string;
28556
+ /**
28557
+ * Format: date-time
28558
+ * @description When a rotated secret stops working.
28559
+ */
28560
+ expiresAt?: string;
28561
+ /** @description Truncated preview of the secret. */
28562
+ hint?: string;
28563
+ /** @description The identifier for this secret. */
28564
+ id: string;
28565
+ };
28272
28566
  SentrySettings: {
28273
28567
  /** @description Whether custom DSNs are configured (false means using Parallel Works defaults). */
28274
28568
  customDsn: boolean;
@@ -37936,6 +38230,38 @@ export interface operations {
37936
38230
  };
37937
38231
  };
37938
38232
  };
38233
+ "get-oidc-token-direct": {
38234
+ parameters: {
38235
+ query: {
38236
+ /** @description The client ID of the application to mint a token for */
38237
+ clientId: string;
38238
+ };
38239
+ header?: never;
38240
+ path?: never;
38241
+ cookie?: never;
38242
+ };
38243
+ requestBody?: never;
38244
+ responses: {
38245
+ /** @description OK */
38246
+ 200: {
38247
+ headers: {
38248
+ [name: string]: unknown;
38249
+ };
38250
+ content: {
38251
+ "application/json": string;
38252
+ };
38253
+ };
38254
+ /** @description Error */
38255
+ default: {
38256
+ headers: {
38257
+ [name: string]: unknown;
38258
+ };
38259
+ content: {
38260
+ "application/json": components["schemas"]["Error"];
38261
+ };
38262
+ };
38263
+ };
38264
+ };
37939
38265
  getRecommendedResources: {
37940
38266
  parameters: {
37941
38267
  query?: never;
@@ -45605,6 +45931,320 @@ export interface operations {
45605
45931
  };
45606
45932
  };
45607
45933
  };
45934
+ "list-org-oidc-apps": {
45935
+ parameters: {
45936
+ query?: never;
45937
+ header?: never;
45938
+ path: {
45939
+ /** @description The name of the organization. */
45940
+ organization: string;
45941
+ };
45942
+ cookie?: never;
45943
+ };
45944
+ requestBody?: never;
45945
+ responses: {
45946
+ /** @description OK */
45947
+ 200: {
45948
+ headers: {
45949
+ [name: string]: unknown;
45950
+ };
45951
+ content: {
45952
+ "application/json": components["schemas"]["AppResponse"][] | null;
45953
+ };
45954
+ };
45955
+ /** @description Error */
45956
+ default: {
45957
+ headers: {
45958
+ [name: string]: unknown;
45959
+ };
45960
+ content: {
45961
+ "application/json": components["schemas"]["Error"];
45962
+ };
45963
+ };
45964
+ };
45965
+ };
45966
+ "create-org-oidc-app": {
45967
+ parameters: {
45968
+ query?: never;
45969
+ header?: never;
45970
+ path: {
45971
+ /** @description The name of the organization. */
45972
+ organization: string;
45973
+ };
45974
+ cookie?: never;
45975
+ };
45976
+ requestBody: {
45977
+ content: {
45978
+ "application/json": components["schemas"]["AppBody"];
45979
+ };
45980
+ };
45981
+ responses: {
45982
+ /** @description Created */
45983
+ 201: {
45984
+ headers: {
45985
+ [name: string]: unknown;
45986
+ };
45987
+ content: {
45988
+ "application/json": components["schemas"]["AppResponse"];
45989
+ };
45990
+ };
45991
+ /** @description Error */
45992
+ default: {
45993
+ headers: {
45994
+ [name: string]: unknown;
45995
+ };
45996
+ content: {
45997
+ "application/json": components["schemas"]["Error"];
45998
+ };
45999
+ };
46000
+ };
46001
+ };
46002
+ "get-org-oidc-app": {
46003
+ parameters: {
46004
+ query?: never;
46005
+ header?: never;
46006
+ path: {
46007
+ /** @description The name of the organization. */
46008
+ organization: string;
46009
+ /** @description The application's client ID */
46010
+ clientId: string;
46011
+ };
46012
+ cookie?: never;
46013
+ };
46014
+ requestBody?: never;
46015
+ responses: {
46016
+ /** @description OK */
46017
+ 200: {
46018
+ headers: {
46019
+ [name: string]: unknown;
46020
+ };
46021
+ content: {
46022
+ "application/json": components["schemas"]["AppResponse"];
46023
+ };
46024
+ };
46025
+ /** @description Error */
46026
+ default: {
46027
+ headers: {
46028
+ [name: string]: unknown;
46029
+ };
46030
+ content: {
46031
+ "application/json": components["schemas"]["Error"];
46032
+ };
46033
+ };
46034
+ };
46035
+ };
46036
+ "update-org-oidc-app": {
46037
+ parameters: {
46038
+ query?: never;
46039
+ header?: never;
46040
+ path: {
46041
+ /** @description The name of the organization. */
46042
+ organization: string;
46043
+ /** @description The application's client ID */
46044
+ clientId: string;
46045
+ };
46046
+ cookie?: never;
46047
+ };
46048
+ requestBody: {
46049
+ content: {
46050
+ "application/json": components["schemas"]["AppBody"];
46051
+ };
46052
+ };
46053
+ responses: {
46054
+ /** @description OK */
46055
+ 200: {
46056
+ headers: {
46057
+ [name: string]: unknown;
46058
+ };
46059
+ content: {
46060
+ "application/json": components["schemas"]["AppResponse"];
46061
+ };
46062
+ };
46063
+ /** @description Error */
46064
+ default: {
46065
+ headers: {
46066
+ [name: string]: unknown;
46067
+ };
46068
+ content: {
46069
+ "application/json": components["schemas"]["Error"];
46070
+ };
46071
+ };
46072
+ };
46073
+ };
46074
+ "delete-org-oidc-app": {
46075
+ parameters: {
46076
+ query?: never;
46077
+ header?: never;
46078
+ path: {
46079
+ /** @description The name of the organization. */
46080
+ organization: string;
46081
+ /** @description The application's client ID */
46082
+ clientId: string;
46083
+ };
46084
+ cookie?: never;
46085
+ };
46086
+ requestBody?: never;
46087
+ responses: {
46088
+ /** @description No Content */
46089
+ 204: {
46090
+ headers: {
46091
+ [name: string]: unknown;
46092
+ };
46093
+ content?: never;
46094
+ };
46095
+ /** @description Error */
46096
+ default: {
46097
+ headers: {
46098
+ [name: string]: unknown;
46099
+ };
46100
+ content: {
46101
+ "application/json": components["schemas"]["Error"];
46102
+ };
46103
+ };
46104
+ };
46105
+ };
46106
+ "create-org-oidc-app-secret": {
46107
+ parameters: {
46108
+ query?: never;
46109
+ header?: never;
46110
+ path: {
46111
+ /** @description The name of the organization. */
46112
+ organization: string;
46113
+ /** @description The application's client ID */
46114
+ clientId: string;
46115
+ };
46116
+ cookie?: never;
46117
+ };
46118
+ requestBody?: never;
46119
+ responses: {
46120
+ /** @description Created */
46121
+ 201: {
46122
+ headers: {
46123
+ [name: string]: unknown;
46124
+ };
46125
+ content: {
46126
+ "application/json": components["schemas"]["SecretResponse"];
46127
+ };
46128
+ };
46129
+ /** @description Error */
46130
+ default: {
46131
+ headers: {
46132
+ [name: string]: unknown;
46133
+ };
46134
+ content: {
46135
+ "application/json": components["schemas"]["Error"];
46136
+ };
46137
+ };
46138
+ };
46139
+ };
46140
+ "rotate-org-oidc-app-secret": {
46141
+ parameters: {
46142
+ query?: never;
46143
+ header?: never;
46144
+ path: {
46145
+ /** @description The name of the organization. */
46146
+ organization: string;
46147
+ /** @description The application's client ID */
46148
+ clientId: string;
46149
+ };
46150
+ cookie?: never;
46151
+ };
46152
+ requestBody: {
46153
+ content: {
46154
+ "application/json": components["schemas"]["RotateSecretInputBody"];
46155
+ };
46156
+ };
46157
+ responses: {
46158
+ /** @description OK */
46159
+ 200: {
46160
+ headers: {
46161
+ [name: string]: unknown;
46162
+ };
46163
+ content: {
46164
+ "application/json": components["schemas"]["SecretResponse"];
46165
+ };
46166
+ };
46167
+ /** @description Error */
46168
+ default: {
46169
+ headers: {
46170
+ [name: string]: unknown;
46171
+ };
46172
+ content: {
46173
+ "application/json": components["schemas"]["Error"];
46174
+ };
46175
+ };
46176
+ };
46177
+ };
46178
+ "delete-org-oidc-app-secret": {
46179
+ parameters: {
46180
+ query?: never;
46181
+ header?: never;
46182
+ path: {
46183
+ /** @description The name of the organization. */
46184
+ organization: string;
46185
+ /** @description The application's client ID */
46186
+ clientId: string;
46187
+ /** @description The secret to delete */
46188
+ secretId: string;
46189
+ };
46190
+ cookie?: never;
46191
+ };
46192
+ requestBody?: never;
46193
+ responses: {
46194
+ /** @description No Content */
46195
+ 204: {
46196
+ headers: {
46197
+ [name: string]: unknown;
46198
+ };
46199
+ content?: never;
46200
+ };
46201
+ /** @description Error */
46202
+ default: {
46203
+ headers: {
46204
+ [name: string]: unknown;
46205
+ };
46206
+ content: {
46207
+ "application/json": components["schemas"]["Error"];
46208
+ };
46209
+ };
46210
+ };
46211
+ };
46212
+ "reveal-org-oidc-app-secret": {
46213
+ parameters: {
46214
+ query?: never;
46215
+ header?: never;
46216
+ path: {
46217
+ /** @description The name of the organization. */
46218
+ organization: string;
46219
+ /** @description The application's client ID */
46220
+ clientId: string;
46221
+ /** @description The secret to reveal */
46222
+ secretId: string;
46223
+ };
46224
+ cookie?: never;
46225
+ };
46226
+ requestBody?: never;
46227
+ responses: {
46228
+ /** @description OK */
46229
+ 200: {
46230
+ headers: {
46231
+ [name: string]: unknown;
46232
+ };
46233
+ content: {
46234
+ "application/json": components["schemas"]["SecretResponse"];
46235
+ };
46236
+ };
46237
+ /** @description Error */
46238
+ default: {
46239
+ headers: {
46240
+ [name: string]: unknown;
46241
+ };
46242
+ content: {
46243
+ "application/json": components["schemas"]["Error"];
46244
+ };
46245
+ };
46246
+ };
46247
+ };
45608
46248
  "set-organization-owner": {
45609
46249
  parameters: {
45610
46250
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parallelworks/client",
3
- "version": "7.95.0",
3
+ "version": "7.95.1",
4
4
  "description": "Official TypeScript client for Parallel Works ACTIVATE API",
5
5
  "type": "module",
6
6
  "exports": {