@onkernel/sdk 0.150.0 → 0.151.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/client.d.mts +14 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +14 -2
- package/client.d.ts.map +1 -1
- package/client.js +12 -0
- package/client.js.map +1 -1
- package/client.mjs +12 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/api-keys.d.mts +28 -10
- package/resources/api-keys.d.mts.map +1 -1
- package/resources/api-keys.d.ts +28 -10
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/auth/auth.d.mts +2 -2
- package/resources/auth/auth.d.mts.map +1 -1
- package/resources/auth/auth.d.ts +2 -2
- package/resources/auth/auth.d.ts.map +1 -1
- package/resources/auth/auth.js.map +1 -1
- package/resources/auth/auth.mjs.map +1 -1
- package/resources/auth/context.d.mts +11 -11
- package/resources/auth/context.d.mts.map +1 -1
- package/resources/auth/context.d.ts +11 -11
- package/resources/auth/context.d.ts.map +1 -1
- package/resources/auth/index.d.mts +1 -1
- package/resources/auth/index.d.mts.map +1 -1
- package/resources/auth/index.d.ts +1 -1
- package/resources/auth/index.d.ts.map +1 -1
- package/resources/auth/index.js.map +1 -1
- package/resources/auth/index.mjs.map +1 -1
- package/resources/index.d.mts +5 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +9 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +4 -0
- package/resources/index.mjs.map +1 -1
- package/resources/service-accounts.d.mts +73 -0
- package/resources/service-accounts.d.mts.map +1 -0
- package/resources/service-accounts.d.ts +73 -0
- package/resources/service-accounts.d.ts.map +1 -0
- package/resources/service-accounts.js +50 -0
- package/resources/service-accounts.js.map +1 -0
- package/resources/service-accounts.mjs +46 -0
- package/resources/service-accounts.mjs.map +1 -0
- package/resources/workload-identity-authentication-events.d.mts +36 -0
- package/resources/workload-identity-authentication-events.d.mts.map +1 -0
- package/resources/workload-identity-authentication-events.d.ts +36 -0
- package/resources/workload-identity-authentication-events.d.ts.map +1 -0
- package/resources/workload-identity-authentication-events.js +16 -0
- package/resources/workload-identity-authentication-events.js.map +1 -0
- package/resources/workload-identity-authentication-events.mjs +12 -0
- package/resources/workload-identity-authentication-events.mjs.map +1 -0
- package/resources/workload-identity-federation-rules.d.mts +194 -0
- package/resources/workload-identity-federation-rules.d.mts.map +1 -0
- package/resources/workload-identity-federation-rules.d.ts +194 -0
- package/resources/workload-identity-federation-rules.d.ts.map +1 -0
- package/resources/workload-identity-federation-rules.js +47 -0
- package/resources/workload-identity-federation-rules.js.map +1 -0
- package/resources/workload-identity-federation-rules.mjs +43 -0
- package/resources/workload-identity-federation-rules.mjs.map +1 -0
- package/resources/workload-identity-issuers.d.mts +169 -0
- package/resources/workload-identity-issuers.d.mts.map +1 -0
- package/resources/workload-identity-issuers.d.ts +169 -0
- package/resources/workload-identity-issuers.d.ts.map +1 -0
- package/resources/workload-identity-issuers.js +54 -0
- package/resources/workload-identity-issuers.js.map +1 -0
- package/resources/workload-identity-issuers.mjs +50 -0
- package/resources/workload-identity-issuers.mjs.map +1 -0
- package/src/client.ts +96 -0
- package/src/resources/api-keys.ts +32 -9
- package/src/resources/auth/auth.ts +6 -2
- package/src/resources/auth/context.ts +11 -11
- package/src/resources/auth/index.ts +1 -1
- package/src/resources/index.ts +41 -0
- package/src/resources/service-accounts.ts +128 -0
- package/src/resources/workload-identity-authentication-events.ts +72 -0
- package/src/resources/workload-identity-federation-rules.ts +314 -0
- package/src/resources/workload-identity-issuers.ts +273 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { OffsetPagination, type OffsetPaginationParams, PagePromise } from "../core/pagination.mjs";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
5
|
+
export declare class WorkloadIdentityFederationRules extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Organization credential administrators only. No external namespace-ownership or
|
|
8
|
+
* staff approval is required. New trust resources default disabled.
|
|
9
|
+
*/
|
|
10
|
+
create(body: WorkloadIdentityFederationRuleCreateParams, options?: RequestOptions): APIPromise<WorkloadIdentityFederationRule>;
|
|
11
|
+
/**
|
|
12
|
+
* Any signed-in member of the organization can read this. API keys cannot.
|
|
13
|
+
*/
|
|
14
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<WorkloadIdentityFederationRule>;
|
|
15
|
+
/**
|
|
16
|
+
* Update a workload identity federation rule
|
|
17
|
+
*/
|
|
18
|
+
update(id: string, body: WorkloadIdentityFederationRuleUpdateParams, options?: RequestOptions): APIPromise<WorkloadIdentityFederationRule>;
|
|
19
|
+
/**
|
|
20
|
+
* Any signed-in member of the organization can read this. API keys cannot.
|
|
21
|
+
*/
|
|
22
|
+
list(query?: WorkloadIdentityFederationRuleListParams | null | undefined, options?: RequestOptions): PagePromise<WorkloadIdentityFederationRulesOffsetPagination, WorkloadIdentityFederationRule>;
|
|
23
|
+
/**
|
|
24
|
+
* Retains history and invalidates associated authority within the documented
|
|
25
|
+
* status bound. Does not delete created browser resources.
|
|
26
|
+
*/
|
|
27
|
+
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
28
|
+
}
|
|
29
|
+
export type WorkloadIdentityFederationRulesOffsetPagination = OffsetPagination<WorkloadIdentityFederationRule>;
|
|
30
|
+
export interface WorkloadIdentityAuthorization {
|
|
31
|
+
/**
|
|
32
|
+
* Allow statements for resources in this rule's project, in the same format as a
|
|
33
|
+
* scoped API key policy. API key actions are not allowed.
|
|
34
|
+
*/
|
|
35
|
+
policy: WorkloadIdentityAuthorization.Policy;
|
|
36
|
+
/**
|
|
37
|
+
* The one project credentials from this rule are limited to.
|
|
38
|
+
*/
|
|
39
|
+
project_id: string;
|
|
40
|
+
token_audience: string;
|
|
41
|
+
max_token_ttl_seconds?: number;
|
|
42
|
+
}
|
|
43
|
+
export declare namespace WorkloadIdentityAuthorization {
|
|
44
|
+
/**
|
|
45
|
+
* Allow statements for resources in this rule's project, in the same format as a
|
|
46
|
+
* scoped API key policy. API key actions are not allowed.
|
|
47
|
+
*/
|
|
48
|
+
interface Policy {
|
|
49
|
+
/**
|
|
50
|
+
* Allow statements. Every action and resource not listed is denied.
|
|
51
|
+
*/
|
|
52
|
+
statements: Array<Policy.Statement>;
|
|
53
|
+
}
|
|
54
|
+
namespace Policy {
|
|
55
|
+
interface Statement {
|
|
56
|
+
/**
|
|
57
|
+
* Permitted action, such as browsers:use or vaults:read.
|
|
58
|
+
*/
|
|
59
|
+
action: string;
|
|
60
|
+
/**
|
|
61
|
+
* Resource the action applies to, in the format projects/{project_id}/{kind}/{id}.
|
|
62
|
+
* Wildcards are supported.
|
|
63
|
+
*/
|
|
64
|
+
resource: string;
|
|
65
|
+
/**
|
|
66
|
+
* A condition narrows a policy statement to requests matching its constraint: the
|
|
67
|
+
* request attribute, a comparison operator, and that operator's values.
|
|
68
|
+
*/
|
|
69
|
+
condition?: Statement.Condition;
|
|
70
|
+
}
|
|
71
|
+
namespace Statement {
|
|
72
|
+
/**
|
|
73
|
+
* A condition narrows a policy statement to requests matching its constraint: the
|
|
74
|
+
* request attribute, a comparison operator, and that operator's values.
|
|
75
|
+
*/
|
|
76
|
+
interface Condition {
|
|
77
|
+
/**
|
|
78
|
+
* Request attribute the condition constrains. `source_ip` restricts the statement
|
|
79
|
+
* to requests whose client address falls inside one of `values`.
|
|
80
|
+
*/
|
|
81
|
+
key: 'source_ip';
|
|
82
|
+
/**
|
|
83
|
+
* Comparison the condition applies between the request attribute and values.
|
|
84
|
+
*/
|
|
85
|
+
operator: 'in';
|
|
86
|
+
/**
|
|
87
|
+
* Values the request attribute must match. For `source_ip`, CIDR networks: a bare
|
|
88
|
+
* address without a mask is rejected, and so are an entry with host bits set and
|
|
89
|
+
* an IPv4 network written in IPv6 notation.
|
|
90
|
+
*/
|
|
91
|
+
values: Array<string>;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
export interface WorkloadIdentityFederationRule {
|
|
97
|
+
id: string;
|
|
98
|
+
archived_at: string | null;
|
|
99
|
+
authorization: WorkloadIdentityAuthorization;
|
|
100
|
+
created_at: string;
|
|
101
|
+
created_by_user_id: string | null;
|
|
102
|
+
description: string;
|
|
103
|
+
enabled: boolean;
|
|
104
|
+
expected_audience: string;
|
|
105
|
+
issuer_id: string;
|
|
106
|
+
last_exchange_at: string | null;
|
|
107
|
+
match: WorkloadIdentityMatch;
|
|
108
|
+
name: string;
|
|
109
|
+
org_id: string;
|
|
110
|
+
/**
|
|
111
|
+
* Authority revision. Cosmetic updates do not widen permissions.
|
|
112
|
+
*/
|
|
113
|
+
security_version: number;
|
|
114
|
+
target: WorkloadIdentityTarget;
|
|
115
|
+
updated_at: string;
|
|
116
|
+
}
|
|
117
|
+
export interface WorkloadIdentityFederationRuleConfig {
|
|
118
|
+
authorization: WorkloadIdentityAuthorization;
|
|
119
|
+
expected_audience: string;
|
|
120
|
+
issuer_id: string;
|
|
121
|
+
match: WorkloadIdentityMatch;
|
|
122
|
+
name: string;
|
|
123
|
+
target: WorkloadIdentityTarget;
|
|
124
|
+
description?: string;
|
|
125
|
+
enabled?: boolean;
|
|
126
|
+
}
|
|
127
|
+
export interface WorkloadIdentityMatch {
|
|
128
|
+
/**
|
|
129
|
+
* Must be the issuer's preset_type.
|
|
130
|
+
*/
|
|
131
|
+
type: 'github_actions' | 'aws' | 'google_cloud' | 'microsoft_entra' | 'kubernetes' | 'custom_oidc';
|
|
132
|
+
/**
|
|
133
|
+
* Exact string conditions keyed by RFC 6901 JSON Pointers. All conditions are
|
|
134
|
+
* ANDed.
|
|
135
|
+
*/
|
|
136
|
+
claims?: {
|
|
137
|
+
[key: string]: string;
|
|
138
|
+
};
|
|
139
|
+
environment?: string;
|
|
140
|
+
event_names?: Array<string>;
|
|
141
|
+
job_workflow_ref?: string;
|
|
142
|
+
namespace?: string;
|
|
143
|
+
ref?: string;
|
|
144
|
+
/**
|
|
145
|
+
* Friendly display name. Immutable IDs define the repository identity.
|
|
146
|
+
*/
|
|
147
|
+
repository?: string;
|
|
148
|
+
repository_id?: string;
|
|
149
|
+
repository_owner_id?: string;
|
|
150
|
+
service_account?: string;
|
|
151
|
+
subject?: string;
|
|
152
|
+
subject_prefix?: string;
|
|
153
|
+
workflow?: string;
|
|
154
|
+
workflow_ref?: string;
|
|
155
|
+
}
|
|
156
|
+
export interface WorkloadIdentityTarget {
|
|
157
|
+
service_account_id: string;
|
|
158
|
+
type: 'service_account';
|
|
159
|
+
}
|
|
160
|
+
export interface WorkloadIdentityFederationRuleCreateParams {
|
|
161
|
+
authorization: WorkloadIdentityAuthorization;
|
|
162
|
+
expected_audience: string;
|
|
163
|
+
issuer_id: string;
|
|
164
|
+
match: WorkloadIdentityMatch;
|
|
165
|
+
name: string;
|
|
166
|
+
target: WorkloadIdentityTarget;
|
|
167
|
+
description?: string;
|
|
168
|
+
enabled?: boolean;
|
|
169
|
+
}
|
|
170
|
+
export interface WorkloadIdentityFederationRuleUpdateParams {
|
|
171
|
+
expected_version: number;
|
|
172
|
+
authorization?: WorkloadIdentityAuthorization;
|
|
173
|
+
description?: string;
|
|
174
|
+
enabled?: boolean;
|
|
175
|
+
expected_audience?: string;
|
|
176
|
+
issuer_id?: string;
|
|
177
|
+
match?: WorkloadIdentityMatch;
|
|
178
|
+
name?: string;
|
|
179
|
+
target?: WorkloadIdentityTarget;
|
|
180
|
+
}
|
|
181
|
+
export interface WorkloadIdentityFederationRuleListParams extends OffsetPaginationParams {
|
|
182
|
+
issuer_id?: string;
|
|
183
|
+
project_id?: string;
|
|
184
|
+
/**
|
|
185
|
+
* Case-insensitive substring match against name or description; exact ID match.
|
|
186
|
+
*/
|
|
187
|
+
query?: string;
|
|
188
|
+
service_account_id?: string;
|
|
189
|
+
status?: 'active' | 'archived' | 'all';
|
|
190
|
+
}
|
|
191
|
+
export declare namespace WorkloadIdentityFederationRules {
|
|
192
|
+
export { type WorkloadIdentityAuthorization as WorkloadIdentityAuthorization, type WorkloadIdentityFederationRule as WorkloadIdentityFederationRule, type WorkloadIdentityFederationRuleConfig as WorkloadIdentityFederationRuleConfig, type WorkloadIdentityMatch as WorkloadIdentityMatch, type WorkloadIdentityTarget as WorkloadIdentityTarget, type WorkloadIdentityFederationRulesOffsetPagination as WorkloadIdentityFederationRulesOffsetPagination, type WorkloadIdentityFederationRuleCreateParams as WorkloadIdentityFederationRuleCreateParams, type WorkloadIdentityFederationRuleUpdateParams as WorkloadIdentityFederationRuleUpdateParams, type WorkloadIdentityFederationRuleListParams as WorkloadIdentityFederationRuleListParams, };
|
|
193
|
+
}
|
|
194
|
+
//# sourceMappingURL=workload-identity-federation-rules.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workload-identity-federation-rules.d.mts","sourceRoot":"","sources":["../src/resources/workload-identity-federation-rules.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE,+BAA2B;AAEhG,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D,qBAAa,+BAAgC,SAAQ,WAAW;IAC9D;;;OAGG;IACH,MAAM,CACJ,IAAI,EAAE,0CAA0C,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,8BAA8B,CAAC;IAI7C;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,8BAA8B,CAAC;IAI1F;;OAEG;IACH,MA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AAC,EAAE,MAAM,CAAC;IAEnB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B,MAAM,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,KAAK,CAAC;CACxC;AAED,MAAM,CAAC,OAAO,WAAW,+BAA+B,CAAC;IACvD,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,+CAA+C,IAAI,+CAA+C,EACvG,KAAK,0CAA0C,IAAI,0CAA0C,EAC7F,KAAK,0CAA0C,IAAI,0CAA0C,EAC7F,KAAK,wCAAwC,IAAI,wCAAwC,GAC1F,CAAC;CACH"}
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { OffsetPagination, type OffsetPaginationParams, PagePromise } from "../core/pagination.js";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
5
|
+
export declare class WorkloadIdentityFederationRules extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Organization credential administrators only. No external namespace-ownership or
|
|
8
|
+
* staff approval is required. New trust resources default disabled.
|
|
9
|
+
*/
|
|
10
|
+
create(body: WorkloadIdentityFederationRuleCreateParams, options?: RequestOptions): APIPromise<WorkloadIdentityFederationRule>;
|
|
11
|
+
/**
|
|
12
|
+
* Any signed-in member of the organization can read this. API keys cannot.
|
|
13
|
+
*/
|
|
14
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<WorkloadIdentityFederationRule>;
|
|
15
|
+
/**
|
|
16
|
+
* Update a workload identity federation rule
|
|
17
|
+
*/
|
|
18
|
+
update(id: string, body: WorkloadIdentityFederationRuleUpdateParams, options?: RequestOptions): APIPromise<WorkloadIdentityFederationRule>;
|
|
19
|
+
/**
|
|
20
|
+
* Any signed-in member of the organization can read this. API keys cannot.
|
|
21
|
+
*/
|
|
22
|
+
list(query?: WorkloadIdentityFederationRuleListParams | null | undefined, options?: RequestOptions): PagePromise<WorkloadIdentityFederationRulesOffsetPagination, WorkloadIdentityFederationRule>;
|
|
23
|
+
/**
|
|
24
|
+
* Retains history and invalidates associated authority within the documented
|
|
25
|
+
* status bound. Does not delete created browser resources.
|
|
26
|
+
*/
|
|
27
|
+
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
28
|
+
}
|
|
29
|
+
export type WorkloadIdentityFederationRulesOffsetPagination = OffsetPagination<WorkloadIdentityFederationRule>;
|
|
30
|
+
export interface WorkloadIdentityAuthorization {
|
|
31
|
+
/**
|
|
32
|
+
* Allow statements for resources in this rule's project, in the same format as a
|
|
33
|
+
* scoped API key policy. API key actions are not allowed.
|
|
34
|
+
*/
|
|
35
|
+
policy: WorkloadIdentityAuthorization.Policy;
|
|
36
|
+
/**
|
|
37
|
+
* The one project credentials from this rule are limited to.
|
|
38
|
+
*/
|
|
39
|
+
project_id: string;
|
|
40
|
+
token_audience: string;
|
|
41
|
+
max_token_ttl_seconds?: number;
|
|
42
|
+
}
|
|
43
|
+
export declare namespace WorkloadIdentityAuthorization {
|
|
44
|
+
/**
|
|
45
|
+
* Allow statements for resources in this rule's project, in the same format as a
|
|
46
|
+
* scoped API key policy. API key actions are not allowed.
|
|
47
|
+
*/
|
|
48
|
+
interface Policy {
|
|
49
|
+
/**
|
|
50
|
+
* Allow statements. Every action and resource not listed is denied.
|
|
51
|
+
*/
|
|
52
|
+
statements: Array<Policy.Statement>;
|
|
53
|
+
}
|
|
54
|
+
namespace Policy {
|
|
55
|
+
interface Statement {
|
|
56
|
+
/**
|
|
57
|
+
* Permitted action, such as browsers:use or vaults:read.
|
|
58
|
+
*/
|
|
59
|
+
action: string;
|
|
60
|
+
/**
|
|
61
|
+
* Resource the action applies to, in the format projects/{project_id}/{kind}/{id}.
|
|
62
|
+
* Wildcards are supported.
|
|
63
|
+
*/
|
|
64
|
+
resource: string;
|
|
65
|
+
/**
|
|
66
|
+
* A condition narrows a policy statement to requests matching its constraint: the
|
|
67
|
+
* request attribute, a comparison operator, and that operator's values.
|
|
68
|
+
*/
|
|
69
|
+
condition?: Statement.Condition;
|
|
70
|
+
}
|
|
71
|
+
namespace Statement {
|
|
72
|
+
/**
|
|
73
|
+
* A condition narrows a policy statement to requests matching its constraint: the
|
|
74
|
+
* request attribute, a comparison operator, and that operator's values.
|
|
75
|
+
*/
|
|
76
|
+
interface Condition {
|
|
77
|
+
/**
|
|
78
|
+
* Request attribute the condition constrains. `source_ip` restricts the statement
|
|
79
|
+
* to requests whose client address falls inside one of `values`.
|
|
80
|
+
*/
|
|
81
|
+
key: 'source_ip';
|
|
82
|
+
/**
|
|
83
|
+
* Comparison the condition applies between the request attribute and values.
|
|
84
|
+
*/
|
|
85
|
+
operator: 'in';
|
|
86
|
+
/**
|
|
87
|
+
* Values the request attribute must match. For `source_ip`, CIDR networks: a bare
|
|
88
|
+
* address without a mask is rejected, and so are an entry with host bits set and
|
|
89
|
+
* an IPv4 network written in IPv6 notation.
|
|
90
|
+
*/
|
|
91
|
+
values: Array<string>;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
export interface WorkloadIdentityFederationRule {
|
|
97
|
+
id: string;
|
|
98
|
+
archived_at: string | null;
|
|
99
|
+
authorization: WorkloadIdentityAuthorization;
|
|
100
|
+
created_at: string;
|
|
101
|
+
created_by_user_id: string | null;
|
|
102
|
+
description: string;
|
|
103
|
+
enabled: boolean;
|
|
104
|
+
expected_audience: string;
|
|
105
|
+
issuer_id: string;
|
|
106
|
+
last_exchange_at: string | null;
|
|
107
|
+
match: WorkloadIdentityMatch;
|
|
108
|
+
name: string;
|
|
109
|
+
org_id: string;
|
|
110
|
+
/**
|
|
111
|
+
* Authority revision. Cosmetic updates do not widen permissions.
|
|
112
|
+
*/
|
|
113
|
+
security_version: number;
|
|
114
|
+
target: WorkloadIdentityTarget;
|
|
115
|
+
updated_at: string;
|
|
116
|
+
}
|
|
117
|
+
export interface WorkloadIdentityFederationRuleConfig {
|
|
118
|
+
authorization: WorkloadIdentityAuthorization;
|
|
119
|
+
expected_audience: string;
|
|
120
|
+
issuer_id: string;
|
|
121
|
+
match: WorkloadIdentityMatch;
|
|
122
|
+
name: string;
|
|
123
|
+
target: WorkloadIdentityTarget;
|
|
124
|
+
description?: string;
|
|
125
|
+
enabled?: boolean;
|
|
126
|
+
}
|
|
127
|
+
export interface WorkloadIdentityMatch {
|
|
128
|
+
/**
|
|
129
|
+
* Must be the issuer's preset_type.
|
|
130
|
+
*/
|
|
131
|
+
type: 'github_actions' | 'aws' | 'google_cloud' | 'microsoft_entra' | 'kubernetes' | 'custom_oidc';
|
|
132
|
+
/**
|
|
133
|
+
* Exact string conditions keyed by RFC 6901 JSON Pointers. All conditions are
|
|
134
|
+
* ANDed.
|
|
135
|
+
*/
|
|
136
|
+
claims?: {
|
|
137
|
+
[key: string]: string;
|
|
138
|
+
};
|
|
139
|
+
environment?: string;
|
|
140
|
+
event_names?: Array<string>;
|
|
141
|
+
job_workflow_ref?: string;
|
|
142
|
+
namespace?: string;
|
|
143
|
+
ref?: string;
|
|
144
|
+
/**
|
|
145
|
+
* Friendly display name. Immutable IDs define the repository identity.
|
|
146
|
+
*/
|
|
147
|
+
repository?: string;
|
|
148
|
+
repository_id?: string;
|
|
149
|
+
repository_owner_id?: string;
|
|
150
|
+
service_account?: string;
|
|
151
|
+
subject?: string;
|
|
152
|
+
subject_prefix?: string;
|
|
153
|
+
workflow?: string;
|
|
154
|
+
workflow_ref?: string;
|
|
155
|
+
}
|
|
156
|
+
export interface WorkloadIdentityTarget {
|
|
157
|
+
service_account_id: string;
|
|
158
|
+
type: 'service_account';
|
|
159
|
+
}
|
|
160
|
+
export interface WorkloadIdentityFederationRuleCreateParams {
|
|
161
|
+
authorization: WorkloadIdentityAuthorization;
|
|
162
|
+
expected_audience: string;
|
|
163
|
+
issuer_id: string;
|
|
164
|
+
match: WorkloadIdentityMatch;
|
|
165
|
+
name: string;
|
|
166
|
+
target: WorkloadIdentityTarget;
|
|
167
|
+
description?: string;
|
|
168
|
+
enabled?: boolean;
|
|
169
|
+
}
|
|
170
|
+
export interface WorkloadIdentityFederationRuleUpdateParams {
|
|
171
|
+
expected_version: number;
|
|
172
|
+
authorization?: WorkloadIdentityAuthorization;
|
|
173
|
+
description?: string;
|
|
174
|
+
enabled?: boolean;
|
|
175
|
+
expected_audience?: string;
|
|
176
|
+
issuer_id?: string;
|
|
177
|
+
match?: WorkloadIdentityMatch;
|
|
178
|
+
name?: string;
|
|
179
|
+
target?: WorkloadIdentityTarget;
|
|
180
|
+
}
|
|
181
|
+
export interface WorkloadIdentityFederationRuleListParams extends OffsetPaginationParams {
|
|
182
|
+
issuer_id?: string;
|
|
183
|
+
project_id?: string;
|
|
184
|
+
/**
|
|
185
|
+
* Case-insensitive substring match against name or description; exact ID match.
|
|
186
|
+
*/
|
|
187
|
+
query?: string;
|
|
188
|
+
service_account_id?: string;
|
|
189
|
+
status?: 'active' | 'archived' | 'all';
|
|
190
|
+
}
|
|
191
|
+
export declare namespace WorkloadIdentityFederationRules {
|
|
192
|
+
export { type WorkloadIdentityAuthorization as WorkloadIdentityAuthorization, type WorkloadIdentityFederationRule as WorkloadIdentityFederationRule, type WorkloadIdentityFederationRuleConfig as WorkloadIdentityFederationRuleConfig, type WorkloadIdentityMatch as WorkloadIdentityMatch, type WorkloadIdentityTarget as WorkloadIdentityTarget, type WorkloadIdentityFederationRulesOffsetPagination as WorkloadIdentityFederationRulesOffsetPagination, type WorkloadIdentityFederationRuleCreateParams as WorkloadIdentityFederationRuleCreateParams, type WorkloadIdentityFederationRuleUpdateParams as WorkloadIdentityFederationRuleUpdateParams, type WorkloadIdentityFederationRuleListParams as WorkloadIdentityFederationRuleListParams, };
|
|
193
|
+
}
|
|
194
|
+
//# sourceMappingURL=workload-identity-federation-rules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workload-identity-federation-rules.d.ts","sourceRoot":"","sources":["../src/resources/workload-identity-federation-rules.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE,8BAA2B;AAEhG,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D,qBAAa,+BAAgC,SAAQ,WAAW;IAC9D;;;OAGG;IACH,MAAM,CACJ,IAAI,EAAE,0CAA0C,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,8BAA8B,CAAC;IAI7C;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,8BAA8B,CAAC;IAI1F;;OAEG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,0CAA0C,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,8BAA8B,CAAC;IAI7C;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,wCAAwC,GAAG,IAAI,GAAG,SAAc,EACvE,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,+CAA+C,EAAE,8BAA8B,CAAC;IAQ/F;;;OAGG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAM/D;AAED,MAAM,MAAM,+CAA+C,GACzD,gBAAgB,CAAC,8BAA8B,CAAC,CAAC;AAEnD,MAAM,WAAW,6BAA6B;IAC5C;;;OAGG;IACH,MAAM,EAAE,6BAA6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7F,KAAK,0CAA0C,IAAI,0CAA0C,EAC7F,KAAK,wCAAwC,IAAI,wCAAwC,GAC1F,CAAC;CACH"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.WorkloadIdentityFederationRules = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../core/pagination.js");
|
|
7
|
+
const headers_1 = require("../internal/headers.js");
|
|
8
|
+
const path_1 = require("../internal/utils/path.js");
|
|
9
|
+
class WorkloadIdentityFederationRules extends resource_1.APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Organization credential administrators only. No external namespace-ownership or
|
|
12
|
+
* staff approval is required. New trust resources default disabled.
|
|
13
|
+
*/
|
|
14
|
+
create(body, options) {
|
|
15
|
+
return this._client.post('/org/workload_identity_federation_rules', { body, ...options });
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Any signed-in member of the organization can read this. API keys cannot.
|
|
19
|
+
*/
|
|
20
|
+
retrieve(id, options) {
|
|
21
|
+
return this._client.get((0, path_1.path) `/org/workload_identity_federation_rules/${id}`, options);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Update a workload identity federation rule
|
|
25
|
+
*/
|
|
26
|
+
update(id, body, options) {
|
|
27
|
+
return this._client.patch((0, path_1.path) `/org/workload_identity_federation_rules/${id}`, { body, ...options });
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Any signed-in member of the organization can read this. API keys cannot.
|
|
31
|
+
*/
|
|
32
|
+
list(query = {}, options) {
|
|
33
|
+
return this._client.getAPIList('/org/workload_identity_federation_rules', (pagination_1.OffsetPagination), { query, ...options });
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Retains history and invalidates associated authority within the documented
|
|
37
|
+
* status bound. Does not delete created browser resources.
|
|
38
|
+
*/
|
|
39
|
+
delete(id, options) {
|
|
40
|
+
return this._client.delete((0, path_1.path) `/org/workload_identity_federation_rules/${id}`, {
|
|
41
|
+
...options,
|
|
42
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.WorkloadIdentityFederationRules = WorkloadIdentityFederationRules;
|
|
47
|
+
//# sourceMappingURL=workload-identity-federation-rules.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workload-identity-federation-rules.js","sourceRoot":"","sources":["../src/resources/workload-identity-federation-rules.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAgG;AAChG,oDAAmD;AAEnD,oDAA8C;AAE9C,MAAa,+BAAgC,SAAQ,sBAAW;IAC9D;;;OAGG;IACH,MAAM,CACJ,IAAgD,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yCAAyC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,2CAA2C,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,IAAgD,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,2CAA2C,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAAqE,EAAE,EACvE,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,yCAAyC,EACzC,CAAA,6BAAgD,CAAA,EAChD,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,2CAA2C,EAAE,EAAE,EAAE;YAC9E,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAtDD,0EAsDC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { OffsetPagination } from "../core/pagination.mjs";
|
|
4
|
+
import { buildHeaders } from "../internal/headers.mjs";
|
|
5
|
+
import { path } from "../internal/utils/path.mjs";
|
|
6
|
+
export class WorkloadIdentityFederationRules extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Organization credential administrators only. No external namespace-ownership or
|
|
9
|
+
* staff approval is required. New trust resources default disabled.
|
|
10
|
+
*/
|
|
11
|
+
create(body, options) {
|
|
12
|
+
return this._client.post('/org/workload_identity_federation_rules', { body, ...options });
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Any signed-in member of the organization can read this. API keys cannot.
|
|
16
|
+
*/
|
|
17
|
+
retrieve(id, options) {
|
|
18
|
+
return this._client.get(path `/org/workload_identity_federation_rules/${id}`, options);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Update a workload identity federation rule
|
|
22
|
+
*/
|
|
23
|
+
update(id, body, options) {
|
|
24
|
+
return this._client.patch(path `/org/workload_identity_federation_rules/${id}`, { body, ...options });
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Any signed-in member of the organization can read this. API keys cannot.
|
|
28
|
+
*/
|
|
29
|
+
list(query = {}, options) {
|
|
30
|
+
return this._client.getAPIList('/org/workload_identity_federation_rules', (OffsetPagination), { query, ...options });
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Retains history and invalidates associated authority within the documented
|
|
34
|
+
* status bound. Does not delete created browser resources.
|
|
35
|
+
*/
|
|
36
|
+
delete(id, options) {
|
|
37
|
+
return this._client.delete(path `/org/workload_identity_federation_rules/${id}`, {
|
|
38
|
+
...options,
|
|
39
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=workload-identity-federation-rules.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workload-identity-federation-rules.mjs","sourceRoot":"","sources":["../src/resources/workload-identity-federation-rules.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAAE,gBAAgB,EAA4C,+BAA2B;AAChG,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAEnD,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,+BAAgC,SAAQ,WAAW;IAC9D;;;OAGG;IACH,MAAM,CACJ,IAAgD,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yCAAyC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,2CAA2C,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,IAAgD,EAChD,OAAwB;QAExB,OAAO,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