@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.
Files changed (85) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/client.d.mts +14 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +14 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js +12 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +12 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/api-keys.d.mts +28 -10
  12. package/resources/api-keys.d.mts.map +1 -1
  13. package/resources/api-keys.d.ts +28 -10
  14. package/resources/api-keys.d.ts.map +1 -1
  15. package/resources/auth/auth.d.mts +2 -2
  16. package/resources/auth/auth.d.mts.map +1 -1
  17. package/resources/auth/auth.d.ts +2 -2
  18. package/resources/auth/auth.d.ts.map +1 -1
  19. package/resources/auth/auth.js.map +1 -1
  20. package/resources/auth/auth.mjs.map +1 -1
  21. package/resources/auth/context.d.mts +11 -11
  22. package/resources/auth/context.d.mts.map +1 -1
  23. package/resources/auth/context.d.ts +11 -11
  24. package/resources/auth/context.d.ts.map +1 -1
  25. package/resources/auth/index.d.mts +1 -1
  26. package/resources/auth/index.d.mts.map +1 -1
  27. package/resources/auth/index.d.ts +1 -1
  28. package/resources/auth/index.d.ts.map +1 -1
  29. package/resources/auth/index.js.map +1 -1
  30. package/resources/auth/index.mjs.map +1 -1
  31. package/resources/index.d.mts +5 -1
  32. package/resources/index.d.mts.map +1 -1
  33. package/resources/index.d.ts +5 -1
  34. package/resources/index.d.ts.map +1 -1
  35. package/resources/index.js +9 -1
  36. package/resources/index.js.map +1 -1
  37. package/resources/index.mjs +4 -0
  38. package/resources/index.mjs.map +1 -1
  39. package/resources/service-accounts.d.mts +73 -0
  40. package/resources/service-accounts.d.mts.map +1 -0
  41. package/resources/service-accounts.d.ts +73 -0
  42. package/resources/service-accounts.d.ts.map +1 -0
  43. package/resources/service-accounts.js +50 -0
  44. package/resources/service-accounts.js.map +1 -0
  45. package/resources/service-accounts.mjs +46 -0
  46. package/resources/service-accounts.mjs.map +1 -0
  47. package/resources/workload-identity-authentication-events.d.mts +36 -0
  48. package/resources/workload-identity-authentication-events.d.mts.map +1 -0
  49. package/resources/workload-identity-authentication-events.d.ts +36 -0
  50. package/resources/workload-identity-authentication-events.d.ts.map +1 -0
  51. package/resources/workload-identity-authentication-events.js +16 -0
  52. package/resources/workload-identity-authentication-events.js.map +1 -0
  53. package/resources/workload-identity-authentication-events.mjs +12 -0
  54. package/resources/workload-identity-authentication-events.mjs.map +1 -0
  55. package/resources/workload-identity-federation-rules.d.mts +194 -0
  56. package/resources/workload-identity-federation-rules.d.mts.map +1 -0
  57. package/resources/workload-identity-federation-rules.d.ts +194 -0
  58. package/resources/workload-identity-federation-rules.d.ts.map +1 -0
  59. package/resources/workload-identity-federation-rules.js +47 -0
  60. package/resources/workload-identity-federation-rules.js.map +1 -0
  61. package/resources/workload-identity-federation-rules.mjs +43 -0
  62. package/resources/workload-identity-federation-rules.mjs.map +1 -0
  63. package/resources/workload-identity-issuers.d.mts +169 -0
  64. package/resources/workload-identity-issuers.d.mts.map +1 -0
  65. package/resources/workload-identity-issuers.d.ts +169 -0
  66. package/resources/workload-identity-issuers.d.ts.map +1 -0
  67. package/resources/workload-identity-issuers.js +54 -0
  68. package/resources/workload-identity-issuers.js.map +1 -0
  69. package/resources/workload-identity-issuers.mjs +50 -0
  70. package/resources/workload-identity-issuers.mjs.map +1 -0
  71. package/src/client.ts +96 -0
  72. package/src/resources/api-keys.ts +32 -9
  73. package/src/resources/auth/auth.ts +6 -2
  74. package/src/resources/auth/context.ts +11 -11
  75. package/src/resources/auth/index.ts +1 -1
  76. package/src/resources/index.ts +41 -0
  77. package/src/resources/service-accounts.ts +128 -0
  78. package/src/resources/workload-identity-authentication-events.ts +72 -0
  79. package/src/resources/workload-identity-federation-rules.ts +314 -0
  80. package/src/resources/workload-identity-issuers.ts +273 -0
  81. package/src/version.ts +1 -1
  82. package/version.d.mts +1 -1
  83. package/version.d.ts +1 -1
  84. package/version.js +1 -1
  85. package/version.mjs +1 -1
@@ -0,0 +1,169 @@
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 WorkloadIdentityIssuers 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: WorkloadIdentityIssuerCreateParams, options?: RequestOptions): APIPromise<WorkloadIdentityIssuer>;
11
+ /**
12
+ * Any signed-in member of the organization can read this. API keys cannot.
13
+ */
14
+ retrieve(id: string, options?: RequestOptions): APIPromise<WorkloadIdentityIssuer>;
15
+ /**
16
+ * Update a workload identity issuer
17
+ */
18
+ update(id: string, body: WorkloadIdentityIssuerUpdateParams, options?: RequestOptions): APIPromise<WorkloadIdentityIssuer>;
19
+ /**
20
+ * Any signed-in member of the organization can read this. API keys cannot.
21
+ */
22
+ list(query?: WorkloadIdentityIssuerListParams | null | undefined, options?: RequestOptions): PagePromise<WorkloadIdentityIssuersOffsetPagination, WorkloadIdentityIssuer>;
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
+ * Read-only. Does not enable trust, approve namespace ownership, create a grant or
30
+ * issue credentials.
31
+ */
32
+ verify(id: string, options?: RequestOptions): APIPromise<WorkloadIdentityIssuerKeyCheck>;
33
+ }
34
+ export type WorkloadIdentityIssuersOffsetPagination = OffsetPagination<WorkloadIdentityIssuer>;
35
+ export interface WorkloadIdentityIssuer {
36
+ id: string;
37
+ archived_at: string | null;
38
+ created_at: string;
39
+ created_by_user_id: string | null;
40
+ description: string;
41
+ enabled: boolean;
42
+ /**
43
+ * Exact expected signed issuer. Optional for github_actions and google_cloud,
44
+ * which each have one fixed issuer.
45
+ */
46
+ issuer_url: string;
47
+ jwks: WorkloadIdentityKeySource;
48
+ name: string;
49
+ org_id: string;
50
+ /**
51
+ * The kind of identity provider. GitHub Actions, Google Cloud and Microsoft Entra
52
+ * issuers are recognized by their issuer URL and must use their own type. Defaults
53
+ * to the type the issuer URL belongs to, or custom_oidc.
54
+ */
55
+ preset_type: WorkloadIdentityPresetType;
56
+ /**
57
+ * Authority revision. Cosmetic updates do not widen permissions.
58
+ */
59
+ security_version: number;
60
+ token_validation: WorkloadIdentityTokenValidation;
61
+ updated_at: string;
62
+ }
63
+ export interface WorkloadIdentityIssuerConfig {
64
+ name: string;
65
+ description?: string;
66
+ enabled?: boolean;
67
+ /**
68
+ * Exact expected signed issuer. Optional for github_actions and google_cloud,
69
+ * which each have one fixed issuer.
70
+ */
71
+ issuer_url?: string;
72
+ jwks?: WorkloadIdentityKeySource;
73
+ /**
74
+ * The kind of identity provider. GitHub Actions, Google Cloud and Microsoft Entra
75
+ * issuers are recognized by their issuer URL and must use their own type. Defaults
76
+ * to the type the issuer URL belongs to, or custom_oidc.
77
+ */
78
+ preset_type?: WorkloadIdentityPresetType;
79
+ token_validation?: WorkloadIdentityTokenValidation;
80
+ }
81
+ export interface WorkloadIdentityIssuerKeyCheck {
82
+ issuer_id: string;
83
+ key_ids: Array<string>;
84
+ }
85
+ export interface WorkloadIdentityKeySource {
86
+ type: 'discovery' | 'explicit_url' | 'inline';
87
+ /**
88
+ * Optional public CA certificates. When set, only these CAs are trusted for key
89
+ * retrieval, in place of the system roots. Private keys and private-network
90
+ * retrieval are not supported.
91
+ */
92
+ ca_cert_pem?: string;
93
+ discovery_base_url?: string;
94
+ keys?: Array<{
95
+ [key: string]: unknown;
96
+ }>;
97
+ url?: string;
98
+ }
99
+ /**
100
+ * The kind of identity provider. GitHub Actions, Google Cloud and Microsoft Entra
101
+ * issuers are recognized by their issuer URL and must use their own type. Defaults
102
+ * to the type the issuer URL belongs to, or custom_oidc.
103
+ */
104
+ export type WorkloadIdentityPresetType = 'github_actions' | 'aws' | 'google_cloud' | 'microsoft_entra' | 'kubernetes' | 'custom_oidc';
105
+ export interface WorkloadIdentityTokenValidation {
106
+ /**
107
+ * Maximum incoming signed exp minus iat, independent of outgoing token lifetime.
108
+ */
109
+ max_lifetime_seconds?: number;
110
+ /**
111
+ * Whether an incoming token can be exchanged more than once before it expires.
112
+ * Defaults to single_use for github_actions, aws, microsoft_entra and custom_oidc,
113
+ * and to allow_reuse for kubernetes, because a pod reads the same projected token
114
+ * until it is rotated. google_cloud is always allow_reuse because Google identity
115
+ * tokens carry no token ID. allow_reuse can be set on microsoft_entra and
116
+ * custom_oidc, and single_use on kubernetes. github_actions and aws are always
117
+ * single_use.
118
+ */
119
+ replay_protection?: 'single_use' | 'allow_reuse';
120
+ }
121
+ export interface WorkloadIdentityIssuerCreateParams {
122
+ name: string;
123
+ description?: string;
124
+ enabled?: boolean;
125
+ /**
126
+ * Exact expected signed issuer. Optional for github_actions and google_cloud,
127
+ * which each have one fixed issuer.
128
+ */
129
+ issuer_url?: string;
130
+ jwks?: WorkloadIdentityKeySource;
131
+ /**
132
+ * The kind of identity provider. GitHub Actions, Google Cloud and Microsoft Entra
133
+ * issuers are recognized by their issuer URL and must use their own type. Defaults
134
+ * to the type the issuer URL belongs to, or custom_oidc.
135
+ */
136
+ preset_type?: WorkloadIdentityPresetType;
137
+ token_validation?: WorkloadIdentityTokenValidation;
138
+ }
139
+ export interface WorkloadIdentityIssuerUpdateParams {
140
+ expected_version: number;
141
+ description?: string;
142
+ enabled?: boolean;
143
+ /**
144
+ * Exact expected signed issuer. Optional for github_actions and google_cloud,
145
+ * which each have one fixed issuer.
146
+ */
147
+ issuer_url?: string;
148
+ jwks?: WorkloadIdentityKeySource;
149
+ name?: string;
150
+ /**
151
+ * The kind of identity provider. GitHub Actions, Google Cloud and Microsoft Entra
152
+ * issuers are recognized by their issuer URL and must use their own type. Defaults
153
+ * to the type the issuer URL belongs to, or custom_oidc.
154
+ */
155
+ preset_type?: WorkloadIdentityPresetType;
156
+ token_validation?: WorkloadIdentityTokenValidation;
157
+ }
158
+ export interface WorkloadIdentityIssuerListParams extends OffsetPaginationParams {
159
+ enabled?: boolean;
160
+ /**
161
+ * Case-insensitive substring match against name or description; exact ID match.
162
+ */
163
+ query?: string;
164
+ status?: 'active' | 'archived' | 'all';
165
+ }
166
+ export declare namespace WorkloadIdentityIssuers {
167
+ export { type WorkloadIdentityIssuer as WorkloadIdentityIssuer, type WorkloadIdentityIssuerConfig as WorkloadIdentityIssuerConfig, type WorkloadIdentityIssuerKeyCheck as WorkloadIdentityIssuerKeyCheck, type WorkloadIdentityKeySource as WorkloadIdentityKeySource, type WorkloadIdentityPresetType as WorkloadIdentityPresetType, type WorkloadIdentityTokenValidation as WorkloadIdentityTokenValidation, type WorkloadIdentityIssuersOffsetPagination as WorkloadIdentityIssuersOffsetPagination, type WorkloadIdentityIssuerCreateParams as WorkloadIdentityIssuerCreateParams, type WorkloadIdentityIssuerUpdateParams as WorkloadIdentityIssuerUpdateParams, type WorkloadIdentityIssuerListParams as WorkloadIdentityIssuerListParams, };
168
+ }
169
+ //# sourceMappingURL=workload-identity-issuers.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workload-identity-issuers.d.mts","sourceRoot":"","sources":["../src/resources/workload-identity-issuers.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,uBAAwB,SAAQ,WAAW;IACtD;;;OAGG;IACH,MAAM,CACJ,IAAI,EAAE,kCAAkC,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAA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B,IAAI,CAAC,EAAE,yBAAyB,CAAC;IAEjC;;;;OAIG;IACH,WAAW,CAAC,EAAE,0BAA0B,CAAC;IAEzC,gBAAgB,CAAC,EAAE,+BAA+B,CAAC;CACpD;AAED,MAAM,WAAW,kCAAkC;IACjD,gBAAgB,EAAE,MAAM,CAAC;IAEzB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,IAAI,CAAC,EAAE,yBAAyB,CAAC;IAEjC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,WAAW,CAAC,EAAE,0BAA0B,CAAC;IAEzC,gBAAgB,CAAC,EAAE,+BAA+B,CAAC;CACpD;AAED,MAAM,WAAW,gCAAiC,SAAQ,sBAAsB;IAC9E,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,KAAK,CAAC;CACxC;AAED,MAAM,CAAC,OAAO,WAAW,uBAAuB,CAAC;IAC/C,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,uCAAuC,IAAI,uCAAuC,EACvF,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;CACH"}
@@ -0,0 +1,169 @@
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 WorkloadIdentityIssuers 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: WorkloadIdentityIssuerCreateParams, options?: RequestOptions): APIPromise<WorkloadIdentityIssuer>;
11
+ /**
12
+ * Any signed-in member of the organization can read this. API keys cannot.
13
+ */
14
+ retrieve(id: string, options?: RequestOptions): APIPromise<WorkloadIdentityIssuer>;
15
+ /**
16
+ * Update a workload identity issuer
17
+ */
18
+ update(id: string, body: WorkloadIdentityIssuerUpdateParams, options?: RequestOptions): APIPromise<WorkloadIdentityIssuer>;
19
+ /**
20
+ * Any signed-in member of the organization can read this. API keys cannot.
21
+ */
22
+ list(query?: WorkloadIdentityIssuerListParams | null | undefined, options?: RequestOptions): PagePromise<WorkloadIdentityIssuersOffsetPagination, WorkloadIdentityIssuer>;
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
+ * Read-only. Does not enable trust, approve namespace ownership, create a grant or
30
+ * issue credentials.
31
+ */
32
+ verify(id: string, options?: RequestOptions): APIPromise<WorkloadIdentityIssuerKeyCheck>;
33
+ }
34
+ export type WorkloadIdentityIssuersOffsetPagination = OffsetPagination<WorkloadIdentityIssuer>;
35
+ export interface WorkloadIdentityIssuer {
36
+ id: string;
37
+ archived_at: string | null;
38
+ created_at: string;
39
+ created_by_user_id: string | null;
40
+ description: string;
41
+ enabled: boolean;
42
+ /**
43
+ * Exact expected signed issuer. Optional for github_actions and google_cloud,
44
+ * which each have one fixed issuer.
45
+ */
46
+ issuer_url: string;
47
+ jwks: WorkloadIdentityKeySource;
48
+ name: string;
49
+ org_id: string;
50
+ /**
51
+ * The kind of identity provider. GitHub Actions, Google Cloud and Microsoft Entra
52
+ * issuers are recognized by their issuer URL and must use their own type. Defaults
53
+ * to the type the issuer URL belongs to, or custom_oidc.
54
+ */
55
+ preset_type: WorkloadIdentityPresetType;
56
+ /**
57
+ * Authority revision. Cosmetic updates do not widen permissions.
58
+ */
59
+ security_version: number;
60
+ token_validation: WorkloadIdentityTokenValidation;
61
+ updated_at: string;
62
+ }
63
+ export interface WorkloadIdentityIssuerConfig {
64
+ name: string;
65
+ description?: string;
66
+ enabled?: boolean;
67
+ /**
68
+ * Exact expected signed issuer. Optional for github_actions and google_cloud,
69
+ * which each have one fixed issuer.
70
+ */
71
+ issuer_url?: string;
72
+ jwks?: WorkloadIdentityKeySource;
73
+ /**
74
+ * The kind of identity provider. GitHub Actions, Google Cloud and Microsoft Entra
75
+ * issuers are recognized by their issuer URL and must use their own type. Defaults
76
+ * to the type the issuer URL belongs to, or custom_oidc.
77
+ */
78
+ preset_type?: WorkloadIdentityPresetType;
79
+ token_validation?: WorkloadIdentityTokenValidation;
80
+ }
81
+ export interface WorkloadIdentityIssuerKeyCheck {
82
+ issuer_id: string;
83
+ key_ids: Array<string>;
84
+ }
85
+ export interface WorkloadIdentityKeySource {
86
+ type: 'discovery' | 'explicit_url' | 'inline';
87
+ /**
88
+ * Optional public CA certificates. When set, only these CAs are trusted for key
89
+ * retrieval, in place of the system roots. Private keys and private-network
90
+ * retrieval are not supported.
91
+ */
92
+ ca_cert_pem?: string;
93
+ discovery_base_url?: string;
94
+ keys?: Array<{
95
+ [key: string]: unknown;
96
+ }>;
97
+ url?: string;
98
+ }
99
+ /**
100
+ * The kind of identity provider. GitHub Actions, Google Cloud and Microsoft Entra
101
+ * issuers are recognized by their issuer URL and must use their own type. Defaults
102
+ * to the type the issuer URL belongs to, or custom_oidc.
103
+ */
104
+ export type WorkloadIdentityPresetType = 'github_actions' | 'aws' | 'google_cloud' | 'microsoft_entra' | 'kubernetes' | 'custom_oidc';
105
+ export interface WorkloadIdentityTokenValidation {
106
+ /**
107
+ * Maximum incoming signed exp minus iat, independent of outgoing token lifetime.
108
+ */
109
+ max_lifetime_seconds?: number;
110
+ /**
111
+ * Whether an incoming token can be exchanged more than once before it expires.
112
+ * Defaults to single_use for github_actions, aws, microsoft_entra and custom_oidc,
113
+ * and to allow_reuse for kubernetes, because a pod reads the same projected token
114
+ * until it is rotated. google_cloud is always allow_reuse because Google identity
115
+ * tokens carry no token ID. allow_reuse can be set on microsoft_entra and
116
+ * custom_oidc, and single_use on kubernetes. github_actions and aws are always
117
+ * single_use.
118
+ */
119
+ replay_protection?: 'single_use' | 'allow_reuse';
120
+ }
121
+ export interface WorkloadIdentityIssuerCreateParams {
122
+ name: string;
123
+ description?: string;
124
+ enabled?: boolean;
125
+ /**
126
+ * Exact expected signed issuer. Optional for github_actions and google_cloud,
127
+ * which each have one fixed issuer.
128
+ */
129
+ issuer_url?: string;
130
+ jwks?: WorkloadIdentityKeySource;
131
+ /**
132
+ * The kind of identity provider. GitHub Actions, Google Cloud and Microsoft Entra
133
+ * issuers are recognized by their issuer URL and must use their own type. Defaults
134
+ * to the type the issuer URL belongs to, or custom_oidc.
135
+ */
136
+ preset_type?: WorkloadIdentityPresetType;
137
+ token_validation?: WorkloadIdentityTokenValidation;
138
+ }
139
+ export interface WorkloadIdentityIssuerUpdateParams {
140
+ expected_version: number;
141
+ description?: string;
142
+ enabled?: boolean;
143
+ /**
144
+ * Exact expected signed issuer. Optional for github_actions and google_cloud,
145
+ * which each have one fixed issuer.
146
+ */
147
+ issuer_url?: string;
148
+ jwks?: WorkloadIdentityKeySource;
149
+ name?: string;
150
+ /**
151
+ * The kind of identity provider. GitHub Actions, Google Cloud and Microsoft Entra
152
+ * issuers are recognized by their issuer URL and must use their own type. Defaults
153
+ * to the type the issuer URL belongs to, or custom_oidc.
154
+ */
155
+ preset_type?: WorkloadIdentityPresetType;
156
+ token_validation?: WorkloadIdentityTokenValidation;
157
+ }
158
+ export interface WorkloadIdentityIssuerListParams extends OffsetPaginationParams {
159
+ enabled?: boolean;
160
+ /**
161
+ * Case-insensitive substring match against name or description; exact ID match.
162
+ */
163
+ query?: string;
164
+ status?: 'active' | 'archived' | 'all';
165
+ }
166
+ export declare namespace WorkloadIdentityIssuers {
167
+ export { type WorkloadIdentityIssuer as WorkloadIdentityIssuer, type WorkloadIdentityIssuerConfig as WorkloadIdentityIssuerConfig, type WorkloadIdentityIssuerKeyCheck as WorkloadIdentityIssuerKeyCheck, type WorkloadIdentityKeySource as WorkloadIdentityKeySource, type WorkloadIdentityPresetType as WorkloadIdentityPresetType, type WorkloadIdentityTokenValidation as WorkloadIdentityTokenValidation, type WorkloadIdentityIssuersOffsetPagination as WorkloadIdentityIssuersOffsetPagination, type WorkloadIdentityIssuerCreateParams as WorkloadIdentityIssuerCreateParams, type WorkloadIdentityIssuerUpdateParams as WorkloadIdentityIssuerUpdateParams, type WorkloadIdentityIssuerListParams as WorkloadIdentityIssuerListParams, };
168
+ }
169
+ //# sourceMappingURL=workload-identity-issuers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workload-identity-issuers.d.ts","sourceRoot":"","sources":["../src/resources/workload-identity-issuers.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,uBAAwB,SAAQ,WAAW;IACtD;;;OAGG;IACH,MAAM,CACJ,IAAI,EAAE,kCAAkC,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAIrC;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAIlF;;OAEG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,kCAAkC,EACxC,OAAO,CAAC,EAAE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AAC;IAErB,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,IAAI,CAAC,EAAE,yBAAyB,CAAC;IAEjC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,WAAW,CAAC,EAAE,0BAA0B,CAAC;IAEzC,gBAAgB,CAAC,EAAE,+BAA+B,CAAC;CACpD;AAED,MAAM,WAAW,gCAAiC,SAAQ,sBAAsB;IAC9E,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,KAAK,CAAC;CACxC;AAED,MAAM,CAAC,OAAO,WAAW,uBAAuB,CAAC;IAC/C,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,uCAAuC,IAAI,uCAAuC,EACvF,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;CACH"}
@@ -0,0 +1,54 @@
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.WorkloadIdentityIssuers = 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 WorkloadIdentityIssuers 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_issuers', { 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_issuers/${id}`, options);
22
+ }
23
+ /**
24
+ * Update a workload identity issuer
25
+ */
26
+ update(id, body, options) {
27
+ return this._client.patch((0, path_1.path) `/org/workload_identity_issuers/${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_issuers', (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_issuers/${id}`, {
41
+ ...options,
42
+ headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
43
+ });
44
+ }
45
+ /**
46
+ * Read-only. Does not enable trust, approve namespace ownership, create a grant or
47
+ * issue credentials.
48
+ */
49
+ verify(id, options) {
50
+ return this._client.post((0, path_1.path) `/org/workload_identity_issuers/${id}/verify`, options);
51
+ }
52
+ }
53
+ exports.WorkloadIdentityIssuers = WorkloadIdentityIssuers;
54
+ //# sourceMappingURL=workload-identity-issuers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workload-identity-issuers.js","sourceRoot":"","sources":["../src/resources/workload-identity-issuers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAgG;AAChG,oDAAmD;AAEnD,oDAA8C;AAE9C,MAAa,uBAAwB,SAAQ,sBAAW;IACtD;;;OAGG;IACH,MAAM,CACJ,IAAwC,EACxC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gCAAgC,EA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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 WorkloadIdentityIssuers 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_issuers', { 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_issuers/${id}`, options);
19
+ }
20
+ /**
21
+ * Update a workload identity issuer
22
+ */
23
+ update(id, body, options) {
24
+ return this._client.patch(path `/org/workload_identity_issuers/${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_issuers', (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_issuers/${id}`, {
38
+ ...options,
39
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
40
+ });
41
+ }
42
+ /**
43
+ * Read-only. Does not enable trust, approve namespace ownership, create a grant or
44
+ * issue credentials.
45
+ */
46
+ verify(id, options) {
47
+ return this._client.post(path `/org/workload_identity_issuers/${id}/verify`, options);
48
+ }
49
+ }
50
+ //# sourceMappingURL=workload-identity-issuers.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workload-identity-issuers.mjs","sourceRoot":"","sources":["../src/resources/workload-identity-issuers.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAAE,gBAAgB,EAA4C,+BAA2B;AAChG,OAAO,EAAE,YAAY,EAA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AAI,CAAA,kCAAkC,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IACvF,CAAC;CACF"}
package/src/client.ts CHANGED
@@ -29,6 +29,7 @@ import {
29
29
  APIKey,
30
30
  APIKeyCreateParams,
31
31
  APIKeyListParams,
32
+ APIKeyPrincipal,
32
33
  APIKeyRetrieveParams,
33
34
  APIKeyRotateParams,
34
35
  APIKeyUpdateParams,
@@ -150,6 +151,15 @@ import {
150
151
  Reports,
151
152
  ReportsOffsetPagination,
152
153
  } from './resources/reports';
154
+ import {
155
+ ServiceAccount,
156
+ ServiceAccountConfig,
157
+ ServiceAccountCreateParams,
158
+ ServiceAccountListParams,
159
+ ServiceAccountUpdateParams,
160
+ ServiceAccounts,
161
+ ServiceAccountsOffsetPagination,
162
+ } from './resources/service-accounts';
153
163
  import {
154
164
  Task,
155
165
  TaskCreateParams,
@@ -167,6 +177,37 @@ import {
167
177
  VaultProviderConfigs,
168
178
  VaultProviderConfigsOffsetPagination,
169
179
  } from './resources/vault-provider-configs';
180
+ import {
181
+ WorkloadIdentityAuthenticationEvent,
182
+ WorkloadIdentityAuthenticationEventListParams,
183
+ WorkloadIdentityAuthenticationEvents,
184
+ WorkloadIdentityAuthenticationEventsOffsetPagination,
185
+ } from './resources/workload-identity-authentication-events';
186
+ import {
187
+ WorkloadIdentityAuthorization,
188
+ WorkloadIdentityFederationRule,
189
+ WorkloadIdentityFederationRuleConfig,
190
+ WorkloadIdentityFederationRuleCreateParams,
191
+ WorkloadIdentityFederationRuleListParams,
192
+ WorkloadIdentityFederationRuleUpdateParams,
193
+ WorkloadIdentityFederationRules,
194
+ WorkloadIdentityFederationRulesOffsetPagination,
195
+ WorkloadIdentityMatch,
196
+ WorkloadIdentityTarget,
197
+ } from './resources/workload-identity-federation-rules';
198
+ import {
199
+ WorkloadIdentityIssuer,
200
+ WorkloadIdentityIssuerConfig,
201
+ WorkloadIdentityIssuerCreateParams,
202
+ WorkloadIdentityIssuerKeyCheck,
203
+ WorkloadIdentityIssuerListParams,
204
+ WorkloadIdentityIssuerUpdateParams,
205
+ WorkloadIdentityIssuers,
206
+ WorkloadIdentityIssuersOffsetPagination,
207
+ WorkloadIdentityKeySource,
208
+ WorkloadIdentityPresetType,
209
+ WorkloadIdentityTokenValidation,
210
+ } from './resources/workload-identity-issuers';
170
211
  import {
171
212
  AuditLogEntriesPageTokenPagination,
172
213
  AuditLogEntry,
@@ -1204,6 +1245,12 @@ export class Kernel {
1204
1245
  * Create and manage API keys for organization and project-scoped access.
1205
1246
  */
1206
1247
  apiKeys: API.APIKeys = new API.APIKeys(this);
1248
+ serviceAccounts: API.ServiceAccounts = new API.ServiceAccounts(this);
1249
+ workloadIdentityIssuers: API.WorkloadIdentityIssuers = new API.WorkloadIdentityIssuers(this);
1250
+ workloadIdentityFederationRules: API.WorkloadIdentityFederationRules =
1251
+ new API.WorkloadIdentityFederationRules(this);
1252
+ workloadIdentityAuthenticationEvents: API.WorkloadIdentityAuthenticationEvents =
1253
+ new API.WorkloadIdentityAuthenticationEvents(this);
1207
1254
  /**
1208
1255
  * Configure external credential providers like 1Password.
1209
1256
  */
@@ -1236,6 +1283,10 @@ Kernel.Projects = Projects;
1236
1283
  Kernel.Organization = Organization;
1237
1284
  Kernel.AuditLogs = AuditLogs;
1238
1285
  Kernel.APIKeys = APIKeys;
1286
+ Kernel.ServiceAccounts = ServiceAccounts;
1287
+ Kernel.WorkloadIdentityIssuers = WorkloadIdentityIssuers;
1288
+ Kernel.WorkloadIdentityFederationRules = WorkloadIdentityFederationRules;
1289
+ Kernel.WorkloadIdentityAuthenticationEvents = WorkloadIdentityAuthenticationEvents;
1239
1290
  Kernel.CredentialProviders = CredentialProviders;
1240
1291
  Kernel.SearchResource = SearchResource;
1241
1292
 
@@ -1495,6 +1546,7 @@ export declare namespace Kernel {
1495
1546
  export {
1496
1547
  APIKeys as APIKeys,
1497
1548
  type APIKey as APIKey,
1549
+ type APIKeyPrincipal as APIKeyPrincipal,
1498
1550
  type CreatedAPIKey as CreatedAPIKey,
1499
1551
  type APIKeysOffsetPagination as APIKeysOffsetPagination,
1500
1552
  type APIKeyCreateParams as APIKeyCreateParams,
@@ -1504,6 +1556,50 @@ export declare namespace Kernel {
1504
1556
  type APIKeyRotateParams as APIKeyRotateParams,
1505
1557
  };
1506
1558
 
1559
+ export {
1560
+ ServiceAccounts as ServiceAccounts,
1561
+ type ServiceAccount as ServiceAccount,
1562
+ type ServiceAccountConfig as ServiceAccountConfig,
1563
+ type ServiceAccountsOffsetPagination as ServiceAccountsOffsetPagination,
1564
+ type ServiceAccountCreateParams as ServiceAccountCreateParams,
1565
+ type ServiceAccountUpdateParams as ServiceAccountUpdateParams,
1566
+ type ServiceAccountListParams as ServiceAccountListParams,
1567
+ };
1568
+
1569
+ export {
1570
+ WorkloadIdentityIssuers as WorkloadIdentityIssuers,
1571
+ type WorkloadIdentityIssuer as WorkloadIdentityIssuer,
1572
+ type WorkloadIdentityIssuerConfig as WorkloadIdentityIssuerConfig,
1573
+ type WorkloadIdentityIssuerKeyCheck as WorkloadIdentityIssuerKeyCheck,
1574
+ type WorkloadIdentityKeySource as WorkloadIdentityKeySource,
1575
+ type WorkloadIdentityPresetType as WorkloadIdentityPresetType,
1576
+ type WorkloadIdentityTokenValidation as WorkloadIdentityTokenValidation,
1577
+ type WorkloadIdentityIssuersOffsetPagination as WorkloadIdentityIssuersOffsetPagination,
1578
+ type WorkloadIdentityIssuerCreateParams as WorkloadIdentityIssuerCreateParams,
1579
+ type WorkloadIdentityIssuerUpdateParams as WorkloadIdentityIssuerUpdateParams,
1580
+ type WorkloadIdentityIssuerListParams as WorkloadIdentityIssuerListParams,
1581
+ };
1582
+
1583
+ export {
1584
+ WorkloadIdentityFederationRules as WorkloadIdentityFederationRules,
1585
+ type WorkloadIdentityAuthorization as WorkloadIdentityAuthorization,
1586
+ type WorkloadIdentityFederationRule as WorkloadIdentityFederationRule,
1587
+ type WorkloadIdentityFederationRuleConfig as WorkloadIdentityFederationRuleConfig,
1588
+ type WorkloadIdentityMatch as WorkloadIdentityMatch,
1589
+ type WorkloadIdentityTarget as WorkloadIdentityTarget,
1590
+ type WorkloadIdentityFederationRulesOffsetPagination as WorkloadIdentityFederationRulesOffsetPagination,
1591
+ type WorkloadIdentityFederationRuleCreateParams as WorkloadIdentityFederationRuleCreateParams,
1592
+ type WorkloadIdentityFederationRuleUpdateParams as WorkloadIdentityFederationRuleUpdateParams,
1593
+ type WorkloadIdentityFederationRuleListParams as WorkloadIdentityFederationRuleListParams,
1594
+ };
1595
+
1596
+ export {
1597
+ WorkloadIdentityAuthenticationEvents as WorkloadIdentityAuthenticationEvents,
1598
+ type WorkloadIdentityAuthenticationEvent as WorkloadIdentityAuthenticationEvent,
1599
+ type WorkloadIdentityAuthenticationEventsOffsetPagination as WorkloadIdentityAuthenticationEventsOffsetPagination,
1600
+ type WorkloadIdentityAuthenticationEventListParams as WorkloadIdentityAuthenticationEventListParams,
1601
+ };
1602
+
1507
1603
  export {
1508
1604
  CredentialProviders as CredentialProviders,
1509
1605
  type CreateCredentialProviderRequest as CreateCredentialProviderRequest,