pgbeam 0.3.10 → 0.3.12
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.cjs +18 -0
- package/dist/index.d.cts +204 -3
- package/dist/index.d.mts +204 -3
- package/dist/index.mjs +18 -0
- package/dist/operations.cjs +60 -3
- package/dist/operations.d.cts +150 -2
- package/dist/operations.d.mts +150 -2
- package/dist/operations.mjs +60 -3
- package/package.json +1 -1
package/dist/operations.d.cts
CHANGED
|
@@ -4741,6 +4741,69 @@ type UpdateOnboardingProgressRequestConfig = {
|
|
|
4741
4741
|
url: `/v1/organizations/${string}/onboarding`;
|
|
4742
4742
|
};
|
|
4743
4743
|
|
|
4744
|
+
/**
|
|
4745
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
4746
|
+
* Do not edit manually.
|
|
4747
|
+
*/
|
|
4748
|
+
/**
|
|
4749
|
+
* @description An organization visible to the caller\'s credential.
|
|
4750
|
+
* @type object
|
|
4751
|
+
*/
|
|
4752
|
+
type OrganizationSummary = {
|
|
4753
|
+
/**
|
|
4754
|
+
* @description Organization identifier.
|
|
4755
|
+
* @example org_abc123
|
|
4756
|
+
* @type string
|
|
4757
|
+
*/
|
|
4758
|
+
id: string;
|
|
4759
|
+
/**
|
|
4760
|
+
* @description Organization display name.
|
|
4761
|
+
* @example Acme Corp
|
|
4762
|
+
* @type string
|
|
4763
|
+
*/
|
|
4764
|
+
name: string;
|
|
4765
|
+
/**
|
|
4766
|
+
* @description Organization slug used in URLs and routing.
|
|
4767
|
+
* @example acme-corp
|
|
4768
|
+
* @type string
|
|
4769
|
+
*/
|
|
4770
|
+
slug: string;
|
|
4771
|
+
/**
|
|
4772
|
+
* @description The caller\'s role within the organization. Omitted for organization-scoped API keys, which act as the organization itself rather than as a member.
|
|
4773
|
+
* @example owner
|
|
4774
|
+
* @type string | undefined
|
|
4775
|
+
*/
|
|
4776
|
+
role?: string;
|
|
4777
|
+
};
|
|
4778
|
+
|
|
4779
|
+
/**
|
|
4780
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
4781
|
+
* Do not edit manually.
|
|
4782
|
+
*/
|
|
4783
|
+
|
|
4784
|
+
/**
|
|
4785
|
+
* @description Organizations visible to the caller\'s credential.
|
|
4786
|
+
* @type object
|
|
4787
|
+
*/
|
|
4788
|
+
type ListOrganizationsResponse = {
|
|
4789
|
+
/**
|
|
4790
|
+
* @description Organizations the caller can access.
|
|
4791
|
+
* @type array
|
|
4792
|
+
*/
|
|
4793
|
+
organizations: OrganizationSummary[];
|
|
4794
|
+
};
|
|
4795
|
+
|
|
4796
|
+
/**
|
|
4797
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
4798
|
+
* Do not edit manually.
|
|
4799
|
+
*/
|
|
4800
|
+
|
|
4801
|
+
/**
|
|
4802
|
+
* @description Organizations visible to the caller\'s credential.
|
|
4803
|
+
* @type object
|
|
4804
|
+
*/
|
|
4805
|
+
type ListOrganizationsStatus200 = ListOrganizationsResponse;
|
|
4806
|
+
|
|
4744
4807
|
/**
|
|
4745
4808
|
* Generated by Kubb (https://kubb.dev/).
|
|
4746
4809
|
* Do not edit manually.
|
|
@@ -6839,6 +6902,11 @@ type SelfHostEnrollment = {
|
|
|
6839
6902
|
* @type string
|
|
6840
6903
|
*/
|
|
6841
6904
|
revoked_at?: string | null;
|
|
6905
|
+
/**
|
|
6906
|
+
* @description When the enrollment token expires and stops authenticating new proxy connections. Null means it never expires. Enforcement is fail-closed at the gRPC auth gate the instant this time passes.
|
|
6907
|
+
* @type string
|
|
6908
|
+
*/
|
|
6909
|
+
expires_at?: string | null;
|
|
6842
6910
|
};
|
|
6843
6911
|
|
|
6844
6912
|
/**
|
|
@@ -6919,6 +6987,11 @@ type CreateSelfHostEnrollmentRequest = {
|
|
|
6919
6987
|
* @type string | undefined
|
|
6920
6988
|
*/
|
|
6921
6989
|
description?: string;
|
|
6990
|
+
/**
|
|
6991
|
+
* @description Optional expiry. When set, the enrollment token stops authenticating new proxy connections at this time (must be in the future). Omit or set null for a token that never expires.
|
|
6992
|
+
* @type string
|
|
6993
|
+
*/
|
|
6994
|
+
expires_at?: string | null;
|
|
6922
6995
|
};
|
|
6923
6996
|
|
|
6924
6997
|
/**
|
|
@@ -6927,7 +7000,7 @@ type CreateSelfHostEnrollmentRequest = {
|
|
|
6927
7000
|
*/
|
|
6928
7001
|
|
|
6929
7002
|
/**
|
|
6930
|
-
* @description Response returned once when an enrollment is created. The token is shown a single time and cannot be retrieved again; set it as GRPC_AUTH_TOKEN on the self-hosted proxy.\n
|
|
7003
|
+
* @description Response returned once when an enrollment is created or its token is rotated. The token is shown a single time and cannot be retrieved again; set it as GRPC_AUTH_TOKEN on the self-hosted proxy.\n
|
|
6931
7004
|
* @type object
|
|
6932
7005
|
*/
|
|
6933
7006
|
type SelfHostEnrollmentSecret = {
|
|
@@ -6957,7 +7030,7 @@ type SelfHostEnrollmentSecret = {
|
|
|
6957
7030
|
*/
|
|
6958
7031
|
type CreateSelfHostEnrollmentPathOrgId = string;
|
|
6959
7032
|
/**
|
|
6960
|
-
* @description Response returned once when an enrollment is created. The token is shown a single time and cannot be retrieved again; set it as GRPC_AUTH_TOKEN on the self-hosted proxy.\n
|
|
7033
|
+
* @description Response returned once when an enrollment is created or its token is rotated. The token is shown a single time and cannot be retrieved again; set it as GRPC_AUTH_TOKEN on the self-hosted proxy.\n
|
|
6961
7034
|
* @type object
|
|
6962
7035
|
*/
|
|
6963
7036
|
type CreateSelfHostEnrollmentStatus201 = SelfHostEnrollmentSecret;
|
|
@@ -7024,6 +7097,50 @@ type RevokeSelfHostEnrollmentRequestConfig = {
|
|
|
7024
7097
|
url: `/v1/organizations/${string}/self-host-enrollments/${string}`;
|
|
7025
7098
|
};
|
|
7026
7099
|
|
|
7100
|
+
/**
|
|
7101
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
7102
|
+
* Do not edit manually.
|
|
7103
|
+
*/
|
|
7104
|
+
|
|
7105
|
+
/**
|
|
7106
|
+
* @description Unique organization identifier.
|
|
7107
|
+
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
7108
|
+
* @example org_abc123
|
|
7109
|
+
* @type string
|
|
7110
|
+
*/
|
|
7111
|
+
type RotateSelfHostEnrollmentPathOrgId = string;
|
|
7112
|
+
/**
|
|
7113
|
+
* @description Unique enrollment identifier.
|
|
7114
|
+
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
7115
|
+
* @example she_01h455vb4pex5vsknk084sn02q
|
|
7116
|
+
* @type string
|
|
7117
|
+
*/
|
|
7118
|
+
type RotateSelfHostEnrollmentPathEnrollmentId = string;
|
|
7119
|
+
/**
|
|
7120
|
+
* @description Response returned once when an enrollment is created or its token is rotated. The token is shown a single time and cannot be retrieved again; set it as GRPC_AUTH_TOKEN on the self-hosted proxy.\n
|
|
7121
|
+
* @type object
|
|
7122
|
+
*/
|
|
7123
|
+
type RotateSelfHostEnrollmentStatus200 = SelfHostEnrollmentSecret;
|
|
7124
|
+
/**
|
|
7125
|
+
* @type object
|
|
7126
|
+
*/
|
|
7127
|
+
type RotateSelfHostEnrollmentRequestConfig = {
|
|
7128
|
+
data?: never;
|
|
7129
|
+
/**
|
|
7130
|
+
* @type object
|
|
7131
|
+
*/
|
|
7132
|
+
pathParams: {
|
|
7133
|
+
org_id: RotateSelfHostEnrollmentPathOrgId;
|
|
7134
|
+
enrollment_id: RotateSelfHostEnrollmentPathEnrollmentId;
|
|
7135
|
+
};
|
|
7136
|
+
queryParams?: never;
|
|
7137
|
+
headerParams?: never;
|
|
7138
|
+
/**
|
|
7139
|
+
* @type string
|
|
7140
|
+
*/
|
|
7141
|
+
url: `/v1/organizations/${string}/self-host-enrollments/${string}/rotate`;
|
|
7142
|
+
};
|
|
7143
|
+
|
|
7027
7144
|
/**
|
|
7028
7145
|
* Generated by Kubb (https://kubb.dev/).
|
|
7029
7146
|
* Do not edit manually.
|
|
@@ -8285,6 +8402,10 @@ declare const operationsByTag: {
|
|
|
8285
8402
|
readonly method: "PATCH";
|
|
8286
8403
|
readonly path: "/v1/organizations/{org_id}/onboarding";
|
|
8287
8404
|
};
|
|
8405
|
+
readonly listOrganizations: {
|
|
8406
|
+
readonly method: "GET";
|
|
8407
|
+
readonly path: "/v1/organizations";
|
|
8408
|
+
};
|
|
8288
8409
|
};
|
|
8289
8410
|
readonly agents: {
|
|
8290
8411
|
readonly listAgentCredentials: {
|
|
@@ -8509,6 +8630,10 @@ declare const operationsByTag: {
|
|
|
8509
8630
|
readonly method: "DELETE";
|
|
8510
8631
|
readonly path: "/v1/organizations/{org_id}/self-host-enrollments/{enrollment_id}";
|
|
8511
8632
|
};
|
|
8633
|
+
readonly rotateSelfHostEnrollment: {
|
|
8634
|
+
readonly method: "POST";
|
|
8635
|
+
readonly path: "/v1/organizations/{org_id}/self-host-enrollments/{enrollment_id}/rotate";
|
|
8636
|
+
};
|
|
8512
8637
|
};
|
|
8513
8638
|
readonly migrations: {
|
|
8514
8639
|
readonly lintMigration: {
|
|
@@ -8807,6 +8932,11 @@ declare const operationsByPath: {
|
|
|
8807
8932
|
readonly path: "/v1/organizations/{org_id}/onboarding";
|
|
8808
8933
|
readonly operationId: "updateOnboardingProgress";
|
|
8809
8934
|
};
|
|
8935
|
+
readonly "GET /v1/organizations": {
|
|
8936
|
+
readonly method: "GET";
|
|
8937
|
+
readonly path: "/v1/organizations";
|
|
8938
|
+
readonly operationId: "listOrganizations";
|
|
8939
|
+
};
|
|
8810
8940
|
readonly "GET /v1/projects/{project_id}/policies": {
|
|
8811
8941
|
readonly method: "GET";
|
|
8812
8942
|
readonly path: "/v1/projects/{project_id}/policies";
|
|
@@ -8907,6 +9037,11 @@ declare const operationsByPath: {
|
|
|
8907
9037
|
readonly path: "/v1/organizations/{org_id}/self-host-enrollments/{enrollment_id}";
|
|
8908
9038
|
readonly operationId: "revokeSelfHostEnrollment";
|
|
8909
9039
|
};
|
|
9040
|
+
readonly "POST /v1/organizations/{org_id}/self-host-enrollments/{enrollment_id}/rotate": {
|
|
9041
|
+
readonly method: "POST";
|
|
9042
|
+
readonly path: "/v1/organizations/{org_id}/self-host-enrollments/{enrollment_id}/rotate";
|
|
9043
|
+
readonly operationId: "rotateSelfHostEnrollment";
|
|
9044
|
+
};
|
|
8910
9045
|
readonly "GET /v1/organizations/{org_id}/support/cases": {
|
|
8911
9046
|
readonly method: "GET";
|
|
8912
9047
|
readonly path: "/v1/organizations/{org_id}/support/cases";
|
|
@@ -9182,6 +9317,9 @@ type CreateSelfHostEnrollmentParams = {
|
|
|
9182
9317
|
type RevokeSelfHostEnrollmentParams = {
|
|
9183
9318
|
pathParams: NonNullable<RevokeSelfHostEnrollmentRequestConfig["pathParams"]>;
|
|
9184
9319
|
};
|
|
9320
|
+
type RotateSelfHostEnrollmentParams = {
|
|
9321
|
+
pathParams: NonNullable<RotateSelfHostEnrollmentRequestConfig["pathParams"]>;
|
|
9322
|
+
};
|
|
9185
9323
|
type ListSupportCasesParams = {
|
|
9186
9324
|
pathParams: NonNullable<ListSupportCasesRequestConfig["pathParams"]>;
|
|
9187
9325
|
queryParams?: NonNullable<ListSupportCasesRequestConfig["queryParams"]>;
|
|
@@ -9238,6 +9376,7 @@ interface ApiOperations {
|
|
|
9238
9376
|
exportAccountData(): Promise<ExportAccountDataStatus200>;
|
|
9239
9377
|
getOnboardingProgress(params: GetOnboardingProgressParams): Promise<GetOnboardingProgressStatus200>;
|
|
9240
9378
|
updateOnboardingProgress(params: UpdateOnboardingProgressParams): Promise<UpdateOnboardingProgressStatus200>;
|
|
9379
|
+
listOrganizations(): Promise<ListOrganizationsStatus200>;
|
|
9241
9380
|
};
|
|
9242
9381
|
agents: {
|
|
9243
9382
|
listAgentCredentials(params: ListAgentCredentialsParams): Promise<ListAgentCredentialsStatus200>;
|
|
@@ -9306,6 +9445,7 @@ interface ApiOperations {
|
|
|
9306
9445
|
listSelfHostEnrollments(params: ListSelfHostEnrollmentsParams): Promise<ListSelfHostEnrollmentsStatus200>;
|
|
9307
9446
|
createSelfHostEnrollment(params: CreateSelfHostEnrollmentParams): Promise<CreateSelfHostEnrollmentStatus201>;
|
|
9308
9447
|
revokeSelfHostEnrollment(params: RevokeSelfHostEnrollmentParams): Promise<void>;
|
|
9448
|
+
rotateSelfHostEnrollment(params: RotateSelfHostEnrollmentParams): Promise<RotateSelfHostEnrollmentStatus200>;
|
|
9309
9449
|
};
|
|
9310
9450
|
migrations: {
|
|
9311
9451
|
lintMigration(params: LintMigrationParams): Promise<LintMigrationStatus200>;
|
|
@@ -9503,6 +9643,10 @@ interface RequestMap {
|
|
|
9503
9643
|
params: UpdateOnboardingProgressParams;
|
|
9504
9644
|
response: UpdateOnboardingProgressStatus200;
|
|
9505
9645
|
};
|
|
9646
|
+
"GET /v1/organizations": {
|
|
9647
|
+
params?: undefined;
|
|
9648
|
+
response: ListOrganizationsStatus200;
|
|
9649
|
+
};
|
|
9506
9650
|
"GET /v1/projects/{project_id}/policies": {
|
|
9507
9651
|
params: ListPolicyProfilesParams;
|
|
9508
9652
|
response: ListPolicyProfilesStatus200;
|
|
@@ -9583,6 +9727,10 @@ interface RequestMap {
|
|
|
9583
9727
|
params: RevokeSelfHostEnrollmentParams;
|
|
9584
9728
|
response: void;
|
|
9585
9729
|
};
|
|
9730
|
+
"POST /v1/organizations/{org_id}/self-host-enrollments/{enrollment_id}/rotate": {
|
|
9731
|
+
params: RotateSelfHostEnrollmentParams;
|
|
9732
|
+
response: RotateSelfHostEnrollmentStatus200;
|
|
9733
|
+
};
|
|
9586
9734
|
"GET /v1/organizations/{org_id}/support/cases": {
|
|
9587
9735
|
params: ListSupportCasesParams;
|
|
9588
9736
|
response: ListSupportCasesStatus200;
|
package/dist/operations.d.mts
CHANGED
|
@@ -4741,6 +4741,69 @@ type UpdateOnboardingProgressRequestConfig = {
|
|
|
4741
4741
|
url: `/v1/organizations/${string}/onboarding`;
|
|
4742
4742
|
};
|
|
4743
4743
|
|
|
4744
|
+
/**
|
|
4745
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
4746
|
+
* Do not edit manually.
|
|
4747
|
+
*/
|
|
4748
|
+
/**
|
|
4749
|
+
* @description An organization visible to the caller\'s credential.
|
|
4750
|
+
* @type object
|
|
4751
|
+
*/
|
|
4752
|
+
type OrganizationSummary = {
|
|
4753
|
+
/**
|
|
4754
|
+
* @description Organization identifier.
|
|
4755
|
+
* @example org_abc123
|
|
4756
|
+
* @type string
|
|
4757
|
+
*/
|
|
4758
|
+
id: string;
|
|
4759
|
+
/**
|
|
4760
|
+
* @description Organization display name.
|
|
4761
|
+
* @example Acme Corp
|
|
4762
|
+
* @type string
|
|
4763
|
+
*/
|
|
4764
|
+
name: string;
|
|
4765
|
+
/**
|
|
4766
|
+
* @description Organization slug used in URLs and routing.
|
|
4767
|
+
* @example acme-corp
|
|
4768
|
+
* @type string
|
|
4769
|
+
*/
|
|
4770
|
+
slug: string;
|
|
4771
|
+
/**
|
|
4772
|
+
* @description The caller\'s role within the organization. Omitted for organization-scoped API keys, which act as the organization itself rather than as a member.
|
|
4773
|
+
* @example owner
|
|
4774
|
+
* @type string | undefined
|
|
4775
|
+
*/
|
|
4776
|
+
role?: string;
|
|
4777
|
+
};
|
|
4778
|
+
|
|
4779
|
+
/**
|
|
4780
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
4781
|
+
* Do not edit manually.
|
|
4782
|
+
*/
|
|
4783
|
+
|
|
4784
|
+
/**
|
|
4785
|
+
* @description Organizations visible to the caller\'s credential.
|
|
4786
|
+
* @type object
|
|
4787
|
+
*/
|
|
4788
|
+
type ListOrganizationsResponse = {
|
|
4789
|
+
/**
|
|
4790
|
+
* @description Organizations the caller can access.
|
|
4791
|
+
* @type array
|
|
4792
|
+
*/
|
|
4793
|
+
organizations: OrganizationSummary[];
|
|
4794
|
+
};
|
|
4795
|
+
|
|
4796
|
+
/**
|
|
4797
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
4798
|
+
* Do not edit manually.
|
|
4799
|
+
*/
|
|
4800
|
+
|
|
4801
|
+
/**
|
|
4802
|
+
* @description Organizations visible to the caller\'s credential.
|
|
4803
|
+
* @type object
|
|
4804
|
+
*/
|
|
4805
|
+
type ListOrganizationsStatus200 = ListOrganizationsResponse;
|
|
4806
|
+
|
|
4744
4807
|
/**
|
|
4745
4808
|
* Generated by Kubb (https://kubb.dev/).
|
|
4746
4809
|
* Do not edit manually.
|
|
@@ -6839,6 +6902,11 @@ type SelfHostEnrollment = {
|
|
|
6839
6902
|
* @type string
|
|
6840
6903
|
*/
|
|
6841
6904
|
revoked_at?: string | null;
|
|
6905
|
+
/**
|
|
6906
|
+
* @description When the enrollment token expires and stops authenticating new proxy connections. Null means it never expires. Enforcement is fail-closed at the gRPC auth gate the instant this time passes.
|
|
6907
|
+
* @type string
|
|
6908
|
+
*/
|
|
6909
|
+
expires_at?: string | null;
|
|
6842
6910
|
};
|
|
6843
6911
|
|
|
6844
6912
|
/**
|
|
@@ -6919,6 +6987,11 @@ type CreateSelfHostEnrollmentRequest = {
|
|
|
6919
6987
|
* @type string | undefined
|
|
6920
6988
|
*/
|
|
6921
6989
|
description?: string;
|
|
6990
|
+
/**
|
|
6991
|
+
* @description Optional expiry. When set, the enrollment token stops authenticating new proxy connections at this time (must be in the future). Omit or set null for a token that never expires.
|
|
6992
|
+
* @type string
|
|
6993
|
+
*/
|
|
6994
|
+
expires_at?: string | null;
|
|
6922
6995
|
};
|
|
6923
6996
|
|
|
6924
6997
|
/**
|
|
@@ -6927,7 +7000,7 @@ type CreateSelfHostEnrollmentRequest = {
|
|
|
6927
7000
|
*/
|
|
6928
7001
|
|
|
6929
7002
|
/**
|
|
6930
|
-
* @description Response returned once when an enrollment is created. The token is shown a single time and cannot be retrieved again; set it as GRPC_AUTH_TOKEN on the self-hosted proxy.\n
|
|
7003
|
+
* @description Response returned once when an enrollment is created or its token is rotated. The token is shown a single time and cannot be retrieved again; set it as GRPC_AUTH_TOKEN on the self-hosted proxy.\n
|
|
6931
7004
|
* @type object
|
|
6932
7005
|
*/
|
|
6933
7006
|
type SelfHostEnrollmentSecret = {
|
|
@@ -6957,7 +7030,7 @@ type SelfHostEnrollmentSecret = {
|
|
|
6957
7030
|
*/
|
|
6958
7031
|
type CreateSelfHostEnrollmentPathOrgId = string;
|
|
6959
7032
|
/**
|
|
6960
|
-
* @description Response returned once when an enrollment is created. The token is shown a single time and cannot be retrieved again; set it as GRPC_AUTH_TOKEN on the self-hosted proxy.\n
|
|
7033
|
+
* @description Response returned once when an enrollment is created or its token is rotated. The token is shown a single time and cannot be retrieved again; set it as GRPC_AUTH_TOKEN on the self-hosted proxy.\n
|
|
6961
7034
|
* @type object
|
|
6962
7035
|
*/
|
|
6963
7036
|
type CreateSelfHostEnrollmentStatus201 = SelfHostEnrollmentSecret;
|
|
@@ -7024,6 +7097,50 @@ type RevokeSelfHostEnrollmentRequestConfig = {
|
|
|
7024
7097
|
url: `/v1/organizations/${string}/self-host-enrollments/${string}`;
|
|
7025
7098
|
};
|
|
7026
7099
|
|
|
7100
|
+
/**
|
|
7101
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
7102
|
+
* Do not edit manually.
|
|
7103
|
+
*/
|
|
7104
|
+
|
|
7105
|
+
/**
|
|
7106
|
+
* @description Unique organization identifier.
|
|
7107
|
+
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
7108
|
+
* @example org_abc123
|
|
7109
|
+
* @type string
|
|
7110
|
+
*/
|
|
7111
|
+
type RotateSelfHostEnrollmentPathOrgId = string;
|
|
7112
|
+
/**
|
|
7113
|
+
* @description Unique enrollment identifier.
|
|
7114
|
+
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
7115
|
+
* @example she_01h455vb4pex5vsknk084sn02q
|
|
7116
|
+
* @type string
|
|
7117
|
+
*/
|
|
7118
|
+
type RotateSelfHostEnrollmentPathEnrollmentId = string;
|
|
7119
|
+
/**
|
|
7120
|
+
* @description Response returned once when an enrollment is created or its token is rotated. The token is shown a single time and cannot be retrieved again; set it as GRPC_AUTH_TOKEN on the self-hosted proxy.\n
|
|
7121
|
+
* @type object
|
|
7122
|
+
*/
|
|
7123
|
+
type RotateSelfHostEnrollmentStatus200 = SelfHostEnrollmentSecret;
|
|
7124
|
+
/**
|
|
7125
|
+
* @type object
|
|
7126
|
+
*/
|
|
7127
|
+
type RotateSelfHostEnrollmentRequestConfig = {
|
|
7128
|
+
data?: never;
|
|
7129
|
+
/**
|
|
7130
|
+
* @type object
|
|
7131
|
+
*/
|
|
7132
|
+
pathParams: {
|
|
7133
|
+
org_id: RotateSelfHostEnrollmentPathOrgId;
|
|
7134
|
+
enrollment_id: RotateSelfHostEnrollmentPathEnrollmentId;
|
|
7135
|
+
};
|
|
7136
|
+
queryParams?: never;
|
|
7137
|
+
headerParams?: never;
|
|
7138
|
+
/**
|
|
7139
|
+
* @type string
|
|
7140
|
+
*/
|
|
7141
|
+
url: `/v1/organizations/${string}/self-host-enrollments/${string}/rotate`;
|
|
7142
|
+
};
|
|
7143
|
+
|
|
7027
7144
|
/**
|
|
7028
7145
|
* Generated by Kubb (https://kubb.dev/).
|
|
7029
7146
|
* Do not edit manually.
|
|
@@ -8285,6 +8402,10 @@ declare const operationsByTag: {
|
|
|
8285
8402
|
readonly method: "PATCH";
|
|
8286
8403
|
readonly path: "/v1/organizations/{org_id}/onboarding";
|
|
8287
8404
|
};
|
|
8405
|
+
readonly listOrganizations: {
|
|
8406
|
+
readonly method: "GET";
|
|
8407
|
+
readonly path: "/v1/organizations";
|
|
8408
|
+
};
|
|
8288
8409
|
};
|
|
8289
8410
|
readonly agents: {
|
|
8290
8411
|
readonly listAgentCredentials: {
|
|
@@ -8509,6 +8630,10 @@ declare const operationsByTag: {
|
|
|
8509
8630
|
readonly method: "DELETE";
|
|
8510
8631
|
readonly path: "/v1/organizations/{org_id}/self-host-enrollments/{enrollment_id}";
|
|
8511
8632
|
};
|
|
8633
|
+
readonly rotateSelfHostEnrollment: {
|
|
8634
|
+
readonly method: "POST";
|
|
8635
|
+
readonly path: "/v1/organizations/{org_id}/self-host-enrollments/{enrollment_id}/rotate";
|
|
8636
|
+
};
|
|
8512
8637
|
};
|
|
8513
8638
|
readonly migrations: {
|
|
8514
8639
|
readonly lintMigration: {
|
|
@@ -8807,6 +8932,11 @@ declare const operationsByPath: {
|
|
|
8807
8932
|
readonly path: "/v1/organizations/{org_id}/onboarding";
|
|
8808
8933
|
readonly operationId: "updateOnboardingProgress";
|
|
8809
8934
|
};
|
|
8935
|
+
readonly "GET /v1/organizations": {
|
|
8936
|
+
readonly method: "GET";
|
|
8937
|
+
readonly path: "/v1/organizations";
|
|
8938
|
+
readonly operationId: "listOrganizations";
|
|
8939
|
+
};
|
|
8810
8940
|
readonly "GET /v1/projects/{project_id}/policies": {
|
|
8811
8941
|
readonly method: "GET";
|
|
8812
8942
|
readonly path: "/v1/projects/{project_id}/policies";
|
|
@@ -8907,6 +9037,11 @@ declare const operationsByPath: {
|
|
|
8907
9037
|
readonly path: "/v1/organizations/{org_id}/self-host-enrollments/{enrollment_id}";
|
|
8908
9038
|
readonly operationId: "revokeSelfHostEnrollment";
|
|
8909
9039
|
};
|
|
9040
|
+
readonly "POST /v1/organizations/{org_id}/self-host-enrollments/{enrollment_id}/rotate": {
|
|
9041
|
+
readonly method: "POST";
|
|
9042
|
+
readonly path: "/v1/organizations/{org_id}/self-host-enrollments/{enrollment_id}/rotate";
|
|
9043
|
+
readonly operationId: "rotateSelfHostEnrollment";
|
|
9044
|
+
};
|
|
8910
9045
|
readonly "GET /v1/organizations/{org_id}/support/cases": {
|
|
8911
9046
|
readonly method: "GET";
|
|
8912
9047
|
readonly path: "/v1/organizations/{org_id}/support/cases";
|
|
@@ -9182,6 +9317,9 @@ type CreateSelfHostEnrollmentParams = {
|
|
|
9182
9317
|
type RevokeSelfHostEnrollmentParams = {
|
|
9183
9318
|
pathParams: NonNullable<RevokeSelfHostEnrollmentRequestConfig["pathParams"]>;
|
|
9184
9319
|
};
|
|
9320
|
+
type RotateSelfHostEnrollmentParams = {
|
|
9321
|
+
pathParams: NonNullable<RotateSelfHostEnrollmentRequestConfig["pathParams"]>;
|
|
9322
|
+
};
|
|
9185
9323
|
type ListSupportCasesParams = {
|
|
9186
9324
|
pathParams: NonNullable<ListSupportCasesRequestConfig["pathParams"]>;
|
|
9187
9325
|
queryParams?: NonNullable<ListSupportCasesRequestConfig["queryParams"]>;
|
|
@@ -9238,6 +9376,7 @@ interface ApiOperations {
|
|
|
9238
9376
|
exportAccountData(): Promise<ExportAccountDataStatus200>;
|
|
9239
9377
|
getOnboardingProgress(params: GetOnboardingProgressParams): Promise<GetOnboardingProgressStatus200>;
|
|
9240
9378
|
updateOnboardingProgress(params: UpdateOnboardingProgressParams): Promise<UpdateOnboardingProgressStatus200>;
|
|
9379
|
+
listOrganizations(): Promise<ListOrganizationsStatus200>;
|
|
9241
9380
|
};
|
|
9242
9381
|
agents: {
|
|
9243
9382
|
listAgentCredentials(params: ListAgentCredentialsParams): Promise<ListAgentCredentialsStatus200>;
|
|
@@ -9306,6 +9445,7 @@ interface ApiOperations {
|
|
|
9306
9445
|
listSelfHostEnrollments(params: ListSelfHostEnrollmentsParams): Promise<ListSelfHostEnrollmentsStatus200>;
|
|
9307
9446
|
createSelfHostEnrollment(params: CreateSelfHostEnrollmentParams): Promise<CreateSelfHostEnrollmentStatus201>;
|
|
9308
9447
|
revokeSelfHostEnrollment(params: RevokeSelfHostEnrollmentParams): Promise<void>;
|
|
9448
|
+
rotateSelfHostEnrollment(params: RotateSelfHostEnrollmentParams): Promise<RotateSelfHostEnrollmentStatus200>;
|
|
9309
9449
|
};
|
|
9310
9450
|
migrations: {
|
|
9311
9451
|
lintMigration(params: LintMigrationParams): Promise<LintMigrationStatus200>;
|
|
@@ -9503,6 +9643,10 @@ interface RequestMap {
|
|
|
9503
9643
|
params: UpdateOnboardingProgressParams;
|
|
9504
9644
|
response: UpdateOnboardingProgressStatus200;
|
|
9505
9645
|
};
|
|
9646
|
+
"GET /v1/organizations": {
|
|
9647
|
+
params?: undefined;
|
|
9648
|
+
response: ListOrganizationsStatus200;
|
|
9649
|
+
};
|
|
9506
9650
|
"GET /v1/projects/{project_id}/policies": {
|
|
9507
9651
|
params: ListPolicyProfilesParams;
|
|
9508
9652
|
response: ListPolicyProfilesStatus200;
|
|
@@ -9583,6 +9727,10 @@ interface RequestMap {
|
|
|
9583
9727
|
params: RevokeSelfHostEnrollmentParams;
|
|
9584
9728
|
response: void;
|
|
9585
9729
|
};
|
|
9730
|
+
"POST /v1/organizations/{org_id}/self-host-enrollments/{enrollment_id}/rotate": {
|
|
9731
|
+
params: RotateSelfHostEnrollmentParams;
|
|
9732
|
+
response: RotateSelfHostEnrollmentStatus200;
|
|
9733
|
+
};
|
|
9586
9734
|
"GET /v1/organizations/{org_id}/support/cases": {
|
|
9587
9735
|
params: ListSupportCasesParams;
|
|
9588
9736
|
response: ListSupportCasesStatus200;
|
package/dist/operations.mjs
CHANGED
|
@@ -1180,6 +1180,18 @@
|
|
|
1180
1180
|
"responseType": "{ agent_credential_created: boolean; completed: boolean; completed_at?: string; connection_string_copied: boolean; connection_tested: boolean; database_added: boolean; dismissed: boolean; first_query_run: boolean; org_created: boolean; organization_id: string; project_created: boolean; steps_completed: number; steps_total: number }",
|
|
1181
1181
|
"responseStatus": "200"
|
|
1182
1182
|
},
|
|
1183
|
+
"listOrganizations": {
|
|
1184
|
+
"operationId": "listOrganizations",
|
|
1185
|
+
"method": "GET",
|
|
1186
|
+
"path": "/v1/organizations",
|
|
1187
|
+
"summary": "List organizations",
|
|
1188
|
+
"description": "Lists the organizations visible to the caller's credential. An organization-scoped API key (pbo_) returns exactly the organization it belongs to. A user credential (account-scoped API key or dashboard session token) returns the organizations the user is a member of, including the caller's role in each.",
|
|
1189
|
+
"parameters": [],
|
|
1190
|
+
"requestBodyType": "",
|
|
1191
|
+
"requestBodyRequired": false,
|
|
1192
|
+
"responseType": "{ organizations: ({ id: string; name: string; role?: string; slug: string })[] }",
|
|
1193
|
+
"responseStatus": "200"
|
|
1194
|
+
},
|
|
1183
1195
|
"listPolicyProfiles": {
|
|
1184
1196
|
"operationId": "listPolicyProfiles",
|
|
1185
1197
|
"method": "GET",
|
|
@@ -1598,7 +1610,7 @@
|
|
|
1598
1610
|
],
|
|
1599
1611
|
"requestBodyType": "",
|
|
1600
1612
|
"requestBodyRequired": false,
|
|
1601
|
-
"responseType": "{ enrollments: ({ created_at: string; created_by?: string; description?: string; id: string; last_seen_at?: string; org_id: string; region_label?: string; revoked_at?: string })[] }",
|
|
1613
|
+
"responseType": "{ enrollments: ({ created_at: string; created_by?: string; description?: string; expires_at?: string; id: string; last_seen_at?: string; org_id: string; region_label?: string; revoked_at?: string })[] }",
|
|
1602
1614
|
"responseStatus": "200"
|
|
1603
1615
|
},
|
|
1604
1616
|
"createSelfHostEnrollment": {
|
|
@@ -1616,9 +1628,9 @@
|
|
|
1616
1628
|
"description": "Unique organization identifier."
|
|
1617
1629
|
}
|
|
1618
1630
|
],
|
|
1619
|
-
"requestBodyType": "{ description?: string; region_label?: string }",
|
|
1631
|
+
"requestBodyType": "{ description?: string; expires_at?: string; region_label?: string }",
|
|
1620
1632
|
"requestBodyRequired": false,
|
|
1621
|
-
"responseType": "{ enrollment: { created_at: string; created_by?: string; description?: string; id: string; last_seen_at?: string; org_id: string; region_label?: string; revoked_at?: string }; token: string }",
|
|
1633
|
+
"responseType": "{ enrollment: { created_at: string; created_by?: string; description?: string; expires_at?: string; id: string; last_seen_at?: string; org_id: string; region_label?: string; revoked_at?: string }; token: string }",
|
|
1622
1634
|
"responseStatus": "201"
|
|
1623
1635
|
},
|
|
1624
1636
|
"revokeSelfHostEnrollment": {
|
|
@@ -1648,6 +1660,33 @@
|
|
|
1648
1660
|
"responseType": "",
|
|
1649
1661
|
"responseStatus": "204"
|
|
1650
1662
|
},
|
|
1663
|
+
"rotateSelfHostEnrollment": {
|
|
1664
|
+
"operationId": "rotateSelfHostEnrollment",
|
|
1665
|
+
"method": "POST",
|
|
1666
|
+
"path": "/v1/organizations/{org_id}/self-host-enrollments/{enrollment_id}/rotate",
|
|
1667
|
+
"summary": "Rotate a self-host enrollment token",
|
|
1668
|
+
"description": "Mints a new enrollment token in place, keeping the same enrollment id, metadata, and expiry. The swap is atomic: the old token stops authenticating new proxy connections the moment this call returns. An already-connected proxy keeps its existing gRPC streams until it disconnects, then must present the new token to reconnect. The new token is returned once and cannot be retrieved again.",
|
|
1669
|
+
"parameters": [
|
|
1670
|
+
{
|
|
1671
|
+
"name": "org_id",
|
|
1672
|
+
"in": "path",
|
|
1673
|
+
"required": true,
|
|
1674
|
+
"type": "string",
|
|
1675
|
+
"description": "Unique organization identifier."
|
|
1676
|
+
},
|
|
1677
|
+
{
|
|
1678
|
+
"name": "enrollment_id",
|
|
1679
|
+
"in": "path",
|
|
1680
|
+
"required": true,
|
|
1681
|
+
"type": "string",
|
|
1682
|
+
"description": "Unique enrollment identifier."
|
|
1683
|
+
}
|
|
1684
|
+
],
|
|
1685
|
+
"requestBodyType": "",
|
|
1686
|
+
"requestBodyRequired": false,
|
|
1687
|
+
"responseType": "{ enrollment: { created_at: string; created_by?: string; description?: string; expires_at?: string; id: string; last_seen_at?: string; org_id: string; region_label?: string; revoked_at?: string }; token: string }",
|
|
1688
|
+
"responseStatus": "200"
|
|
1689
|
+
},
|
|
1651
1690
|
"listSupportCases": {
|
|
1652
1691
|
"operationId": "listSupportCases",
|
|
1653
1692
|
"method": "GET",
|
|
@@ -2057,6 +2096,10 @@
|
|
|
2057
2096
|
updateOnboardingProgress: {
|
|
2058
2097
|
method: "PATCH",
|
|
2059
2098
|
path: "/v1/organizations/{org_id}/onboarding"
|
|
2099
|
+
},
|
|
2100
|
+
listOrganizations: {
|
|
2101
|
+
method: "GET",
|
|
2102
|
+
path: "/v1/organizations"
|
|
2060
2103
|
}
|
|
2061
2104
|
},
|
|
2062
2105
|
agents: {
|
|
@@ -2281,6 +2324,10 @@
|
|
|
2281
2324
|
revokeSelfHostEnrollment: {
|
|
2282
2325
|
method: "DELETE",
|
|
2283
2326
|
path: "/v1/organizations/{org_id}/self-host-enrollments/{enrollment_id}"
|
|
2327
|
+
},
|
|
2328
|
+
rotateSelfHostEnrollment: {
|
|
2329
|
+
method: "POST",
|
|
2330
|
+
path: "/v1/organizations/{org_id}/self-host-enrollments/{enrollment_id}/rotate"
|
|
2284
2331
|
}
|
|
2285
2332
|
},
|
|
2286
2333
|
migrations: {
|
|
@@ -2580,6 +2627,11 @@ const operationsByPath = {
|
|
|
2580
2627
|
path: "/v1/organizations/{org_id}/onboarding",
|
|
2581
2628
|
operationId: "updateOnboardingProgress"
|
|
2582
2629
|
},
|
|
2630
|
+
"GET /v1/organizations": {
|
|
2631
|
+
method: "GET",
|
|
2632
|
+
path: "/v1/organizations",
|
|
2633
|
+
operationId: "listOrganizations"
|
|
2634
|
+
},
|
|
2583
2635
|
"GET /v1/projects/{project_id}/policies": {
|
|
2584
2636
|
method: "GET",
|
|
2585
2637
|
path: "/v1/projects/{project_id}/policies",
|
|
@@ -2680,6 +2732,11 @@ const operationsByPath = {
|
|
|
2680
2732
|
path: "/v1/organizations/{org_id}/self-host-enrollments/{enrollment_id}",
|
|
2681
2733
|
operationId: "revokeSelfHostEnrollment"
|
|
2682
2734
|
},
|
|
2735
|
+
"POST /v1/organizations/{org_id}/self-host-enrollments/{enrollment_id}/rotate": {
|
|
2736
|
+
method: "POST",
|
|
2737
|
+
path: "/v1/organizations/{org_id}/self-host-enrollments/{enrollment_id}/rotate",
|
|
2738
|
+
operationId: "rotateSelfHostEnrollment"
|
|
2739
|
+
},
|
|
2683
2740
|
"GET /v1/organizations/{org_id}/support/cases": {
|
|
2684
2741
|
method: "GET",
|
|
2685
2742
|
path: "/v1/organizations/{org_id}/support/cases",
|