@onkernel/sdk 0.149.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 (191) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/client.d.mts +29 -4
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +29 -4
  5. package/client.d.ts.map +1 -1
  6. package/client.js +32 -3
  7. package/client.js.map +1 -1
  8. package/client.mjs +32 -3
  9. package/client.mjs.map +1 -1
  10. package/lib/credentials/client-auth.d.mts +88 -0
  11. package/lib/credentials/client-auth.d.mts.map +1 -0
  12. package/lib/credentials/client-auth.d.ts +88 -0
  13. package/lib/credentials/client-auth.d.ts.map +1 -0
  14. package/lib/credentials/client-auth.js +166 -0
  15. package/lib/credentials/client-auth.js.map +1 -0
  16. package/lib/credentials/client-auth.mjs +162 -0
  17. package/lib/credentials/client-auth.mjs.map +1 -0
  18. package/lib/credentials/credential-chain.d.mts +20 -0
  19. package/lib/credentials/credential-chain.d.mts.map +1 -0
  20. package/lib/credentials/credential-chain.d.ts +20 -0
  21. package/lib/credentials/credential-chain.d.ts.map +1 -0
  22. package/lib/credentials/credential-chain.js +81 -0
  23. package/lib/credentials/credential-chain.js.map +1 -0
  24. package/lib/credentials/credential-chain.mjs +77 -0
  25. package/lib/credentials/credential-chain.mjs.map +1 -0
  26. package/lib/credentials/identity-token.d.mts +59 -0
  27. package/lib/credentials/identity-token.d.mts.map +1 -0
  28. package/lib/credentials/identity-token.d.ts +59 -0
  29. package/lib/credentials/identity-token.d.ts.map +1 -0
  30. package/lib/credentials/identity-token.js +243 -0
  31. package/lib/credentials/identity-token.js.map +1 -0
  32. package/lib/credentials/identity-token.mjs +202 -0
  33. package/lib/credentials/identity-token.mjs.map +1 -0
  34. package/lib/credentials/oidc-federation.d.mts +65 -0
  35. package/lib/credentials/oidc-federation.d.mts.map +1 -0
  36. package/lib/credentials/oidc-federation.d.ts +65 -0
  37. package/lib/credentials/oidc-federation.d.ts.map +1 -0
  38. package/lib/credentials/oidc-federation.js +200 -0
  39. package/lib/credentials/oidc-federation.js.map +1 -0
  40. package/lib/credentials/oidc-federation.mjs +196 -0
  41. package/lib/credentials/oidc-federation.mjs.map +1 -0
  42. package/lib/credentials/token-cache.d.mts +64 -0
  43. package/lib/credentials/token-cache.d.mts.map +1 -0
  44. package/lib/credentials/token-cache.d.ts +64 -0
  45. package/lib/credentials/token-cache.d.ts.map +1 -0
  46. package/lib/credentials/token-cache.js +147 -0
  47. package/lib/credentials/token-cache.js.map +1 -0
  48. package/lib/credentials/token-cache.mjs +143 -0
  49. package/lib/credentials/token-cache.mjs.map +1 -0
  50. package/lib/credentials/types.d.mts +126 -0
  51. package/lib/credentials/types.d.mts.map +1 -0
  52. package/lib/credentials/types.d.ts +126 -0
  53. package/lib/credentials/types.d.ts.map +1 -0
  54. package/lib/credentials/types.js +182 -0
  55. package/lib/credentials/types.js.map +1 -0
  56. package/lib/credentials/types.mjs +169 -0
  57. package/lib/credentials/types.mjs.map +1 -0
  58. package/lib/credentials.d.mts +6 -0
  59. package/lib/credentials.d.mts.map +1 -0
  60. package/lib/credentials.d.ts +6 -0
  61. package/lib/credentials.d.ts.map +1 -0
  62. package/lib/credentials.js +19 -0
  63. package/lib/credentials.js.map +1 -0
  64. package/lib/credentials.mjs +6 -0
  65. package/lib/credentials.mjs.map +1 -0
  66. package/package.json +9 -1
  67. package/resources/api-keys.d.mts +192 -16
  68. package/resources/api-keys.d.mts.map +1 -1
  69. package/resources/api-keys.d.ts +192 -16
  70. package/resources/api-keys.d.ts.map +1 -1
  71. package/resources/api-keys.js +19 -7
  72. package/resources/api-keys.js.map +1 -1
  73. package/resources/api-keys.mjs +19 -7
  74. package/resources/api-keys.mjs.map +1 -1
  75. package/resources/auth/auth.d.mts +2 -2
  76. package/resources/auth/auth.d.mts.map +1 -1
  77. package/resources/auth/auth.d.ts +2 -2
  78. package/resources/auth/auth.d.ts.map +1 -1
  79. package/resources/auth/auth.js.map +1 -1
  80. package/resources/auth/auth.mjs.map +1 -1
  81. package/resources/auth/connections.d.mts +16 -2
  82. package/resources/auth/connections.d.mts.map +1 -1
  83. package/resources/auth/connections.d.ts +16 -2
  84. package/resources/auth/connections.d.ts.map +1 -1
  85. package/resources/auth/context.d.mts +69 -3
  86. package/resources/auth/context.d.mts.map +1 -1
  87. package/resources/auth/context.d.ts +69 -3
  88. package/resources/auth/context.d.ts.map +1 -1
  89. package/resources/auth/index.d.mts +1 -1
  90. package/resources/auth/index.d.mts.map +1 -1
  91. package/resources/auth/index.d.ts +1 -1
  92. package/resources/auth/index.d.ts.map +1 -1
  93. package/resources/auth/index.js.map +1 -1
  94. package/resources/auth/index.mjs.map +1 -1
  95. package/resources/browser-pools.d.mts +41 -6
  96. package/resources/browser-pools.d.mts.map +1 -1
  97. package/resources/browser-pools.d.ts +41 -6
  98. package/resources/browser-pools.d.ts.map +1 -1
  99. package/resources/browsers/browsers.d.mts +105 -45
  100. package/resources/browsers/browsers.d.mts.map +1 -1
  101. package/resources/browsers/browsers.d.ts +105 -45
  102. package/resources/browsers/browsers.d.ts.map +1 -1
  103. package/resources/browsers/browsers.js.map +1 -1
  104. package/resources/browsers/browsers.mjs.map +1 -1
  105. package/resources/browsers/index.d.mts +1 -1
  106. package/resources/browsers/index.d.mts.map +1 -1
  107. package/resources/browsers/index.d.ts +1 -1
  108. package/resources/browsers/index.d.ts.map +1 -1
  109. package/resources/browsers/index.js.map +1 -1
  110. package/resources/browsers/index.mjs.map +1 -1
  111. package/resources/browsers/telemetry.d.mts +4 -4
  112. package/resources/browsers/telemetry.d.mts.map +1 -1
  113. package/resources/browsers/telemetry.d.ts +4 -4
  114. package/resources/browsers/telemetry.d.ts.map +1 -1
  115. package/resources/index.d.mts +6 -2
  116. package/resources/index.d.mts.map +1 -1
  117. package/resources/index.d.ts +6 -2
  118. package/resources/index.d.ts.map +1 -1
  119. package/resources/index.js +9 -1
  120. package/resources/index.js.map +1 -1
  121. package/resources/index.mjs +4 -0
  122. package/resources/index.mjs.map +1 -1
  123. package/resources/invocations.d.mts +13 -1
  124. package/resources/invocations.d.mts.map +1 -1
  125. package/resources/invocations.d.ts +13 -1
  126. package/resources/invocations.d.ts.map +1 -1
  127. package/resources/service-accounts.d.mts +73 -0
  128. package/resources/service-accounts.d.mts.map +1 -0
  129. package/resources/service-accounts.d.ts +73 -0
  130. package/resources/service-accounts.d.ts.map +1 -0
  131. package/resources/service-accounts.js +50 -0
  132. package/resources/service-accounts.js.map +1 -0
  133. package/resources/service-accounts.mjs +46 -0
  134. package/resources/service-accounts.mjs.map +1 -0
  135. package/resources/vaults/items.d.mts +68 -2
  136. package/resources/vaults/items.d.mts.map +1 -1
  137. package/resources/vaults/items.d.ts +68 -2
  138. package/resources/vaults/items.d.ts.map +1 -1
  139. package/resources/workload-identity-authentication-events.d.mts +36 -0
  140. package/resources/workload-identity-authentication-events.d.mts.map +1 -0
  141. package/resources/workload-identity-authentication-events.d.ts +36 -0
  142. package/resources/workload-identity-authentication-events.d.ts.map +1 -0
  143. package/resources/workload-identity-authentication-events.js +16 -0
  144. package/resources/workload-identity-authentication-events.js.map +1 -0
  145. package/resources/workload-identity-authentication-events.mjs +12 -0
  146. package/resources/workload-identity-authentication-events.mjs.map +1 -0
  147. package/resources/workload-identity-federation-rules.d.mts +194 -0
  148. package/resources/workload-identity-federation-rules.d.mts.map +1 -0
  149. package/resources/workload-identity-federation-rules.d.ts +194 -0
  150. package/resources/workload-identity-federation-rules.d.ts.map +1 -0
  151. package/resources/workload-identity-federation-rules.js +47 -0
  152. package/resources/workload-identity-federation-rules.js.map +1 -0
  153. package/resources/workload-identity-federation-rules.mjs +43 -0
  154. package/resources/workload-identity-federation-rules.mjs.map +1 -0
  155. package/resources/workload-identity-issuers.d.mts +169 -0
  156. package/resources/workload-identity-issuers.d.mts.map +1 -0
  157. package/resources/workload-identity-issuers.d.ts +169 -0
  158. package/resources/workload-identity-issuers.d.ts.map +1 -0
  159. package/resources/workload-identity-issuers.js +54 -0
  160. package/resources/workload-identity-issuers.js.map +1 -0
  161. package/resources/workload-identity-issuers.mjs +50 -0
  162. package/resources/workload-identity-issuers.mjs.map +1 -0
  163. package/src/client.ts +134 -1
  164. package/src/lib/credentials/client-auth.ts +194 -0
  165. package/src/lib/credentials/credential-chain.ts +95 -0
  166. package/src/lib/credentials/identity-token.ts +284 -0
  167. package/src/lib/credentials/oidc-federation.ts +304 -0
  168. package/src/lib/credentials/token-cache.ts +172 -0
  169. package/src/lib/credentials/types.ts +267 -0
  170. package/src/lib/credentials.ts +30 -0
  171. package/src/resources/api-keys.ts +217 -15
  172. package/src/resources/auth/auth.ts +6 -2
  173. package/src/resources/auth/connections.ts +17 -2
  174. package/src/resources/auth/context.ts +81 -3
  175. package/src/resources/auth/index.ts +1 -1
  176. package/src/resources/browser-pools.ts +46 -6
  177. package/src/resources/browsers/browsers.ts +115 -44
  178. package/src/resources/browsers/index.ts +1 -0
  179. package/src/resources/browsers/telemetry.ts +4 -3
  180. package/src/resources/index.ts +42 -0
  181. package/src/resources/invocations.ts +15 -1
  182. package/src/resources/service-accounts.ts +128 -0
  183. package/src/resources/vaults/items.ts +80 -2
  184. package/src/resources/workload-identity-authentication-events.ts +72 -0
  185. package/src/resources/workload-identity-federation-rules.ts +314 -0
  186. package/src/resources/workload-identity-issuers.ts +273 -0
  187. package/src/version.ts +1 -1
  188. package/version.d.mts +1 -1
  189. package/version.d.ts +1 -1
  190. package/version.js +1 -1
  191. 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,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,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAIrC;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,gCAAgC,GAAG,IAAI,GAAG,SAAc,EAC/D,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,uCAAuC,EAAE,sBAAsB,C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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,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAIrC;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,gCAAgC,GAAG,IAAI,GAAG,SAAc,EAC/D,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,uCAAuC,EAAE,sBAAsB,CAAC;IAQ/E;;;OAGG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAO9D;;;OAGG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,8BAA8B,CAA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AE,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,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kCAAkC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,IAAwC,EACxC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,kCAAkC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA6D,EAAE,EAC/D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,gCAAgC,EAChC,CAAA,6BAAwC,CAAA,EACxC,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,kCAAkC,EAAE,EAAE,EAAE;YACrE,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;IAED;;;OAGG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,kCAAkC,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IACvF,CAAC;CACF;AA9DD,0DA8DC"}
@@ -0,0 +1,50 @@
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 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,EAAE,gCAA4B;AAEnD,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,uBAAwB,SAAQ,WAAW;IACtD;;;OAGG;IACH,MAAM,CACJ,IAAwC,EACxC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gCAAgC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kCAAkC,EAAE,EAAE,EAAE,OAAO,CAAC,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