@mindburn/helm-ai-kernel 0.5.1 → 0.5.10
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/README.md +2 -2
- package/dist/adapters/agent-frameworks.coverage.test.d.ts +1 -0
- package/dist/adapters/agent-frameworks.coverage.test.js +50 -0
- package/dist/client-coverage.test.d.ts +1 -0
- package/dist/client-coverage.test.js +152 -0
- package/dist/generated-coverage.test.d.ts +1 -0
- package/dist/generated-coverage.test.js +284 -0
- package/dist/types.gen.d.ts +5635 -823
- package/dist/types.gen.js +3194 -264
- package/package.json +3 -1
package/dist/types.gen.js
CHANGED
|
@@ -171,6 +171,139 @@ export function A2AAgentCardSkillsInnerToJSON(value) {
|
|
|
171
171
|
'output_modes': value['output_modes'],
|
|
172
172
|
};
|
|
173
173
|
}
|
|
174
|
+
/**
|
|
175
|
+
* @export
|
|
176
|
+
*/
|
|
177
|
+
export const AccountEntitlementsPlanEnum = {
|
|
178
|
+
Free: 'free',
|
|
179
|
+
Individual: 'individual',
|
|
180
|
+
Enterprise: 'enterprise'
|
|
181
|
+
};
|
|
182
|
+
/**
|
|
183
|
+
* Check if a given object implements the AccountEntitlements interface.
|
|
184
|
+
*/
|
|
185
|
+
export function instanceOfAccountEntitlements(value) {
|
|
186
|
+
return true;
|
|
187
|
+
}
|
|
188
|
+
export function AccountEntitlementsFromJSON(json) {
|
|
189
|
+
return AccountEntitlementsFromJSONTyped(json, false);
|
|
190
|
+
}
|
|
191
|
+
export function AccountEntitlementsFromJSONTyped(json, ignoreDiscriminator) {
|
|
192
|
+
if (json == null) {
|
|
193
|
+
return json;
|
|
194
|
+
}
|
|
195
|
+
return {
|
|
196
|
+
'principal_id': json['principal_id'] == null ? undefined : json['principal_id'],
|
|
197
|
+
'tenant_id': json['tenant_id'] == null ? undefined : json['tenant_id'],
|
|
198
|
+
'workspace_id': json['workspace_id'] == null ? undefined : json['workspace_id'],
|
|
199
|
+
'plan': json['plan'] == null ? undefined : json['plan'],
|
|
200
|
+
'plan_alias': json['plan_alias'] == null ? undefined : json['plan_alias'],
|
|
201
|
+
'capabilities': json['capabilities'] == null ? undefined : EntitlementCapabilitiesFromJSON(json['capabilities']),
|
|
202
|
+
'limits': json['limits'] == null ? undefined : EntitlementLimitsFromJSON(json['limits']),
|
|
203
|
+
'source': json['source'] == null ? undefined : json['source'],
|
|
204
|
+
'updated_at': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
export function AccountEntitlementsToJSON(value) {
|
|
208
|
+
if (value == null) {
|
|
209
|
+
return value;
|
|
210
|
+
}
|
|
211
|
+
return {
|
|
212
|
+
'principal_id': value['principal_id'],
|
|
213
|
+
'tenant_id': value['tenant_id'],
|
|
214
|
+
'workspace_id': value['workspace_id'],
|
|
215
|
+
'plan': value['plan'],
|
|
216
|
+
'plan_alias': value['plan_alias'],
|
|
217
|
+
'capabilities': EntitlementCapabilitiesToJSON(value['capabilities']),
|
|
218
|
+
'limits': EntitlementLimitsToJSON(value['limits']),
|
|
219
|
+
'source': value['source'],
|
|
220
|
+
'updated_at': value['updated_at'] == null ? undefined : ((value['updated_at']).toISOString()),
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* @export
|
|
225
|
+
*/
|
|
226
|
+
export const AccountSessionPlanEnum = {
|
|
227
|
+
Free: 'free',
|
|
228
|
+
Individual: 'individual',
|
|
229
|
+
Enterprise: 'enterprise'
|
|
230
|
+
};
|
|
231
|
+
/**
|
|
232
|
+
* Check if a given object implements the AccountSession interface.
|
|
233
|
+
*/
|
|
234
|
+
export function instanceOfAccountSession(value) {
|
|
235
|
+
return true;
|
|
236
|
+
}
|
|
237
|
+
export function AccountSessionFromJSON(json) {
|
|
238
|
+
return AccountSessionFromJSONTyped(json, false);
|
|
239
|
+
}
|
|
240
|
+
export function AccountSessionFromJSONTyped(json, ignoreDiscriminator) {
|
|
241
|
+
if (json == null) {
|
|
242
|
+
return json;
|
|
243
|
+
}
|
|
244
|
+
return {
|
|
245
|
+
'session_id': json['session_id'] == null ? undefined : json['session_id'],
|
|
246
|
+
'principal_id': json['principal_id'] == null ? undefined : json['principal_id'],
|
|
247
|
+
'tenant_id': json['tenant_id'] == null ? undefined : json['tenant_id'],
|
|
248
|
+
'workspace_id': json['workspace_id'] == null ? undefined : json['workspace_id'],
|
|
249
|
+
'plan': json['plan'] == null ? undefined : json['plan'],
|
|
250
|
+
'plan_alias': json['plan_alias'] == null ? undefined : json['plan_alias'],
|
|
251
|
+
'edition': json['edition'] == null ? undefined : json['edition'],
|
|
252
|
+
'deployment_mode': json['deployment_mode'] == null ? undefined : json['deployment_mode'],
|
|
253
|
+
'account_lifecycle': json['account_lifecycle'] == null ? undefined : json['account_lifecycle'],
|
|
254
|
+
'offer_code': json['offer_code'] == null ? undefined : json['offer_code'],
|
|
255
|
+
'source': json['source'] == null ? undefined : json['source'],
|
|
256
|
+
'expires_at': json['expires_at'] == null ? undefined : (new Date(json['expires_at'])),
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
export function AccountSessionToJSON(value) {
|
|
260
|
+
if (value == null) {
|
|
261
|
+
return value;
|
|
262
|
+
}
|
|
263
|
+
return {
|
|
264
|
+
'session_id': value['session_id'],
|
|
265
|
+
'principal_id': value['principal_id'],
|
|
266
|
+
'tenant_id': value['tenant_id'],
|
|
267
|
+
'workspace_id': value['workspace_id'],
|
|
268
|
+
'plan': value['plan'],
|
|
269
|
+
'plan_alias': value['plan_alias'],
|
|
270
|
+
'edition': value['edition'],
|
|
271
|
+
'deployment_mode': value['deployment_mode'],
|
|
272
|
+
'account_lifecycle': value['account_lifecycle'],
|
|
273
|
+
'offer_code': value['offer_code'],
|
|
274
|
+
'source': value['source'],
|
|
275
|
+
'expires_at': value['expires_at'] == null ? undefined : ((value['expires_at']).toISOString()),
|
|
276
|
+
};
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* Check if a given object implements the AdapterMatch interface.
|
|
280
|
+
*/
|
|
281
|
+
export function instanceOfAdapterMatch(value) {
|
|
282
|
+
return true;
|
|
283
|
+
}
|
|
284
|
+
export function AdapterMatchFromJSON(json) {
|
|
285
|
+
return AdapterMatchFromJSONTyped(json, false);
|
|
286
|
+
}
|
|
287
|
+
export function AdapterMatchFromJSONTyped(json, ignoreDiscriminator) {
|
|
288
|
+
if (json == null) {
|
|
289
|
+
return json;
|
|
290
|
+
}
|
|
291
|
+
return {
|
|
292
|
+
'adapter_id': json['adapter_id'] == null ? undefined : json['adapter_id'],
|
|
293
|
+
'confidence': json['confidence'] == null ? undefined : json['confidence'],
|
|
294
|
+
'evidence': json['evidence'] == null ? undefined : json['evidence'],
|
|
295
|
+
};
|
|
296
|
+
}
|
|
297
|
+
export function AdapterMatchToJSON(value) {
|
|
298
|
+
if (value == null) {
|
|
299
|
+
return value;
|
|
300
|
+
}
|
|
301
|
+
return {
|
|
302
|
+
'adapter_id': value['adapter_id'],
|
|
303
|
+
'confidence': value['confidence'],
|
|
304
|
+
'evidence': value['evidence'],
|
|
305
|
+
};
|
|
306
|
+
}
|
|
174
307
|
/**
|
|
175
308
|
* Check if a given object implements the AddTrustKey200Response interface.
|
|
176
309
|
*/
|
|
@@ -376,6 +509,45 @@ export function ApprovalRequestToJSON(value) {
|
|
|
376
509
|
'challenge_response': value['challenge_response'],
|
|
377
510
|
};
|
|
378
511
|
}
|
|
512
|
+
/**
|
|
513
|
+
* Check if a given object implements the ApproveLaunchpadMcpToolsRequest interface.
|
|
514
|
+
*/
|
|
515
|
+
export function instanceOfApproveLaunchpadMcpToolsRequest(value) {
|
|
516
|
+
if (!('server_id' in value))
|
|
517
|
+
return false;
|
|
518
|
+
if (!('tools' in value))
|
|
519
|
+
return false;
|
|
520
|
+
if (!('reason' in value))
|
|
521
|
+
return false;
|
|
522
|
+
return true;
|
|
523
|
+
}
|
|
524
|
+
export function ApproveLaunchpadMcpToolsRequestFromJSON(json) {
|
|
525
|
+
return ApproveLaunchpadMcpToolsRequestFromJSONTyped(json, false);
|
|
526
|
+
}
|
|
527
|
+
export function ApproveLaunchpadMcpToolsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
528
|
+
if (json == null) {
|
|
529
|
+
return json;
|
|
530
|
+
}
|
|
531
|
+
return {
|
|
532
|
+
'server_id': json['server_id'],
|
|
533
|
+
'tools': json['tools'],
|
|
534
|
+
'ttl': json['ttl'] == null ? undefined : json['ttl'],
|
|
535
|
+
'reason': json['reason'],
|
|
536
|
+
'approver': json['approver'] == null ? undefined : json['approver'],
|
|
537
|
+
};
|
|
538
|
+
}
|
|
539
|
+
export function ApproveLaunchpadMcpToolsRequestToJSON(value) {
|
|
540
|
+
if (value == null) {
|
|
541
|
+
return value;
|
|
542
|
+
}
|
|
543
|
+
return {
|
|
544
|
+
'server_id': value['server_id'],
|
|
545
|
+
'tools': value['tools'],
|
|
546
|
+
'ttl': value['ttl'],
|
|
547
|
+
'reason': value['reason'],
|
|
548
|
+
'approver': value['approver'],
|
|
549
|
+
};
|
|
550
|
+
}
|
|
379
551
|
/**
|
|
380
552
|
* Check if a given object implements the AssertApprovalWebAuthnChallengeRequest interface.
|
|
381
553
|
*/
|
|
@@ -489,6 +661,41 @@ export function AuthzSnapshotToJSON(value) {
|
|
|
489
661
|
'snapshot_hash': value['snapshot_hash'],
|
|
490
662
|
};
|
|
491
663
|
}
|
|
664
|
+
/**
|
|
665
|
+
* Check if a given object implements the BindLaunchpadSecretGrantRequest interface.
|
|
666
|
+
*/
|
|
667
|
+
export function instanceOfBindLaunchpadSecretGrantRequest(value) {
|
|
668
|
+
if (!('name' in value))
|
|
669
|
+
return false;
|
|
670
|
+
if (!('provider' in value))
|
|
671
|
+
return false;
|
|
672
|
+
if (!('value_env' in value))
|
|
673
|
+
return false;
|
|
674
|
+
return true;
|
|
675
|
+
}
|
|
676
|
+
export function BindLaunchpadSecretGrantRequestFromJSON(json) {
|
|
677
|
+
return BindLaunchpadSecretGrantRequestFromJSONTyped(json, false);
|
|
678
|
+
}
|
|
679
|
+
export function BindLaunchpadSecretGrantRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
680
|
+
if (json == null) {
|
|
681
|
+
return json;
|
|
682
|
+
}
|
|
683
|
+
return {
|
|
684
|
+
'name': json['name'],
|
|
685
|
+
'provider': json['provider'],
|
|
686
|
+
'value_env': json['value_env'],
|
|
687
|
+
};
|
|
688
|
+
}
|
|
689
|
+
export function BindLaunchpadSecretGrantRequestToJSON(value) {
|
|
690
|
+
if (value == null) {
|
|
691
|
+
return value;
|
|
692
|
+
}
|
|
693
|
+
return {
|
|
694
|
+
'name': value['name'],
|
|
695
|
+
'provider': value['provider'],
|
|
696
|
+
'value_env': value['value_env'],
|
|
697
|
+
};
|
|
698
|
+
}
|
|
492
699
|
/**
|
|
493
700
|
* Check if a given object implements the BoundaryCapabilitySummary interface.
|
|
494
701
|
*/
|
|
@@ -682,6 +889,90 @@ export function BudgetCeilingToJSON(value) {
|
|
|
682
889
|
'policy_epoch': value['policy_epoch'],
|
|
683
890
|
};
|
|
684
891
|
}
|
|
892
|
+
/**
|
|
893
|
+
* Check if a given object implements the BuildStrategy interface.
|
|
894
|
+
*/
|
|
895
|
+
export function instanceOfBuildStrategy(value) {
|
|
896
|
+
return true;
|
|
897
|
+
}
|
|
898
|
+
export function BuildStrategyFromJSON(json) {
|
|
899
|
+
return BuildStrategyFromJSONTyped(json, false);
|
|
900
|
+
}
|
|
901
|
+
export function BuildStrategyFromJSONTyped(json, ignoreDiscriminator) {
|
|
902
|
+
if (json == null) {
|
|
903
|
+
return json;
|
|
904
|
+
}
|
|
905
|
+
return {
|
|
906
|
+
'strategy': json['strategy'] == null ? undefined : json['strategy'],
|
|
907
|
+
'confidence': json['confidence'] == null ? undefined : json['confidence'],
|
|
908
|
+
'reason': json['reason'] == null ? undefined : json['reason'],
|
|
909
|
+
'commands': json['commands'] == null ? undefined : json['commands'],
|
|
910
|
+
'manifest_sources': json['manifest_sources'] == null ? undefined : json['manifest_sources'],
|
|
911
|
+
};
|
|
912
|
+
}
|
|
913
|
+
export function BuildStrategyToJSON(value) {
|
|
914
|
+
if (value == null) {
|
|
915
|
+
return value;
|
|
916
|
+
}
|
|
917
|
+
return {
|
|
918
|
+
'strategy': value['strategy'],
|
|
919
|
+
'confidence': value['confidence'],
|
|
920
|
+
'reason': value['reason'],
|
|
921
|
+
'commands': value['commands'],
|
|
922
|
+
'manifest_sources': value['manifest_sources'],
|
|
923
|
+
};
|
|
924
|
+
}
|
|
925
|
+
/**
|
|
926
|
+
* Check if a given object implements the CapabilityGraph interface.
|
|
927
|
+
*/
|
|
928
|
+
export function instanceOfCapabilityGraph(value) {
|
|
929
|
+
return true;
|
|
930
|
+
}
|
|
931
|
+
export function CapabilityGraphFromJSON(json) {
|
|
932
|
+
return CapabilityGraphFromJSONTyped(json, false);
|
|
933
|
+
}
|
|
934
|
+
export function CapabilityGraphFromJSONTyped(json, ignoreDiscriminator) {
|
|
935
|
+
if (json == null) {
|
|
936
|
+
return json;
|
|
937
|
+
}
|
|
938
|
+
return {
|
|
939
|
+
...json,
|
|
940
|
+
'capabilities': json['capabilities'] == null ? undefined : json['capabilities'],
|
|
941
|
+
'modules': json['modules'] == null ? undefined : (json['modules'].map(DetectedModuleFromJSON)),
|
|
942
|
+
'frameworks': json['frameworks'] == null ? undefined : (json['frameworks'].map(DetectedFrameworkFromJSON)),
|
|
943
|
+
'secrets': json['secrets'] == null ? undefined : (json['secrets'].map(SecretContractFromJSON)),
|
|
944
|
+
'oauth': json['oauth'] == null ? undefined : (json['oauth'].map(OAuthRequirementFromJSON)),
|
|
945
|
+
'ports': json['ports'] == null ? undefined : json['ports'],
|
|
946
|
+
'build_signals': json['build_signals'] == null ? undefined : json['build_signals'],
|
|
947
|
+
'runtime_signals': json['runtime_signals'] == null ? undefined : json['runtime_signals'],
|
|
948
|
+
'policy_signals': json['policy_signals'] == null ? undefined : json['policy_signals'],
|
|
949
|
+
'security_signals': json['security_signals'] == null ? undefined : json['security_signals'],
|
|
950
|
+
'adapter_matches': json['adapter_matches'] == null ? undefined : (json['adapter_matches'].map(AdapterMatchFromJSON)),
|
|
951
|
+
'confidence': json['confidence'] == null ? undefined : json['confidence'],
|
|
952
|
+
'confidence_reason': json['confidence_reason'] == null ? undefined : json['confidence_reason'],
|
|
953
|
+
};
|
|
954
|
+
}
|
|
955
|
+
export function CapabilityGraphToJSON(value) {
|
|
956
|
+
if (value == null) {
|
|
957
|
+
return value;
|
|
958
|
+
}
|
|
959
|
+
return {
|
|
960
|
+
...value,
|
|
961
|
+
'capabilities': value['capabilities'],
|
|
962
|
+
'modules': value['modules'] == null ? undefined : (value['modules'].map(DetectedModuleToJSON)),
|
|
963
|
+
'frameworks': value['frameworks'] == null ? undefined : (value['frameworks'].map(DetectedFrameworkToJSON)),
|
|
964
|
+
'secrets': value['secrets'] == null ? undefined : (value['secrets'].map(SecretContractToJSON)),
|
|
965
|
+
'oauth': value['oauth'] == null ? undefined : (value['oauth'].map(OAuthRequirementToJSON)),
|
|
966
|
+
'ports': value['ports'],
|
|
967
|
+
'build_signals': value['build_signals'],
|
|
968
|
+
'runtime_signals': value['runtime_signals'],
|
|
969
|
+
'policy_signals': value['policy_signals'],
|
|
970
|
+
'security_signals': value['security_signals'],
|
|
971
|
+
'adapter_matches': value['adapter_matches'] == null ? undefined : (value['adapter_matches'].map(AdapterMatchToJSON)),
|
|
972
|
+
'confidence': value['confidence'],
|
|
973
|
+
'confidence_reason': value['confidence_reason'],
|
|
974
|
+
};
|
|
975
|
+
}
|
|
685
976
|
/**
|
|
686
977
|
* Check if a given object implements the ChatCompletionRequest interface.
|
|
687
978
|
*/
|
|
@@ -1351,144 +1642,371 @@ export function ConsoleBootstrapWorkspaceToJSON(value) {
|
|
|
1351
1642
|
};
|
|
1352
1643
|
}
|
|
1353
1644
|
/**
|
|
1354
|
-
* Check if a given object implements the
|
|
1645
|
+
* Check if a given object implements the ConsoleCapabilities interface.
|
|
1355
1646
|
*/
|
|
1356
|
-
export function
|
|
1357
|
-
if (!('
|
|
1647
|
+
export function instanceOfConsoleCapabilities(value) {
|
|
1648
|
+
if (!('entitlements' in value))
|
|
1358
1649
|
return false;
|
|
1359
|
-
if (!('
|
|
1650
|
+
if (!('version' in value))
|
|
1360
1651
|
return false;
|
|
1361
1652
|
return true;
|
|
1362
1653
|
}
|
|
1363
|
-
export function
|
|
1364
|
-
return
|
|
1654
|
+
export function ConsoleCapabilitiesFromJSON(json) {
|
|
1655
|
+
return ConsoleCapabilitiesFromJSONTyped(json, false);
|
|
1365
1656
|
}
|
|
1366
|
-
export function
|
|
1657
|
+
export function ConsoleCapabilitiesFromJSONTyped(json, ignoreDiscriminator) {
|
|
1367
1658
|
if (json == null) {
|
|
1368
1659
|
return json;
|
|
1369
1660
|
}
|
|
1370
1661
|
return {
|
|
1371
|
-
|
|
1372
|
-
'
|
|
1662
|
+
...json,
|
|
1663
|
+
'entitlements': json['entitlements'],
|
|
1664
|
+
'version': json['version'],
|
|
1665
|
+
'source': json['source'] == null ? undefined : json['source'],
|
|
1666
|
+
'tier_gate': json['tier_gate'] == null ? undefined : json['tier_gate'],
|
|
1373
1667
|
};
|
|
1374
1668
|
}
|
|
1375
|
-
export function
|
|
1669
|
+
export function ConsoleCapabilitiesToJSON(value) {
|
|
1376
1670
|
if (value == null) {
|
|
1377
1671
|
return value;
|
|
1378
1672
|
}
|
|
1379
1673
|
return {
|
|
1380
|
-
|
|
1674
|
+
...value,
|
|
1675
|
+
'entitlements': value['entitlements'],
|
|
1676
|
+
'version': value['version'],
|
|
1381
1677
|
'source': value['source'],
|
|
1678
|
+
'tier_gate': value['tier_gate'],
|
|
1382
1679
|
};
|
|
1383
1680
|
}
|
|
1384
1681
|
/**
|
|
1385
|
-
* Check if a given object implements the
|
|
1682
|
+
* Check if a given object implements the ConsoleDiagnostics interface.
|
|
1386
1683
|
*/
|
|
1387
|
-
export function
|
|
1388
|
-
if (!('
|
|
1684
|
+
export function instanceOfConsoleDiagnostics(value) {
|
|
1685
|
+
if (!('generated_at' in value))
|
|
1389
1686
|
return false;
|
|
1390
|
-
if (!('
|
|
1687
|
+
if (!('runtime' in value))
|
|
1391
1688
|
return false;
|
|
1392
|
-
if (!('
|
|
1689
|
+
if (!('access' in value))
|
|
1393
1690
|
return false;
|
|
1394
|
-
if (!('
|
|
1691
|
+
if (!('stores' in value))
|
|
1692
|
+
return false;
|
|
1693
|
+
if (!('routes' in value))
|
|
1395
1694
|
return false;
|
|
1396
1695
|
return true;
|
|
1397
1696
|
}
|
|
1398
|
-
export function
|
|
1399
|
-
return
|
|
1697
|
+
export function ConsoleDiagnosticsFromJSON(json) {
|
|
1698
|
+
return ConsoleDiagnosticsFromJSONTyped(json, false);
|
|
1400
1699
|
}
|
|
1401
|
-
export function
|
|
1700
|
+
export function ConsoleDiagnosticsFromJSONTyped(json, ignoreDiscriminator) {
|
|
1402
1701
|
if (json == null) {
|
|
1403
1702
|
return json;
|
|
1404
1703
|
}
|
|
1405
1704
|
return {
|
|
1406
|
-
'id': json['id'],
|
|
1407
|
-
'status': json['status'],
|
|
1408
|
-
'source': json['source'],
|
|
1409
1705
|
'generated_at': (new Date(json['generated_at'])),
|
|
1410
|
-
'
|
|
1411
|
-
'
|
|
1706
|
+
'runtime': json['runtime'],
|
|
1707
|
+
'access': json['access'],
|
|
1708
|
+
'stores': (json['stores'].map(ConsoleStoreDiagnosticFromJSON)),
|
|
1709
|
+
'routes': (json['routes'].map(ConsoleRouteDiagnosticFromJSON)),
|
|
1412
1710
|
};
|
|
1413
1711
|
}
|
|
1414
|
-
export function
|
|
1712
|
+
export function ConsoleDiagnosticsToJSON(value) {
|
|
1415
1713
|
if (value == null) {
|
|
1416
1714
|
return value;
|
|
1417
1715
|
}
|
|
1418
1716
|
return {
|
|
1419
|
-
'id': value['id'],
|
|
1420
|
-
'status': value['status'],
|
|
1421
|
-
'source': value['source'],
|
|
1422
1717
|
'generated_at': ((value['generated_at']).toISOString()),
|
|
1423
|
-
'
|
|
1424
|
-
'
|
|
1718
|
+
'runtime': value['runtime'],
|
|
1719
|
+
'access': value['access'],
|
|
1720
|
+
'stores': (value['stores'].map(ConsoleStoreDiagnosticToJSON)),
|
|
1721
|
+
'routes': (value['routes'].map(ConsoleRouteDiagnosticToJSON)),
|
|
1425
1722
|
};
|
|
1426
1723
|
}
|
|
1427
1724
|
/**
|
|
1428
|
-
* Check if a given object implements the
|
|
1725
|
+
* Check if a given object implements the ConsoleRouteDiagnostic interface.
|
|
1429
1726
|
*/
|
|
1430
|
-
export function
|
|
1727
|
+
export function instanceOfConsoleRouteDiagnostic(value) {
|
|
1728
|
+
if (!('method' in value))
|
|
1729
|
+
return false;
|
|
1730
|
+
if (!('path' in value))
|
|
1731
|
+
return false;
|
|
1732
|
+
if (!('auth' in value))
|
|
1733
|
+
return false;
|
|
1734
|
+
if (!('contract_status' in value))
|
|
1735
|
+
return false;
|
|
1736
|
+
if (!('operation_id' in value))
|
|
1737
|
+
return false;
|
|
1738
|
+
if (!('owner' in value))
|
|
1739
|
+
return false;
|
|
1740
|
+
if (!('group' in value))
|
|
1741
|
+
return false;
|
|
1431
1742
|
return true;
|
|
1432
1743
|
}
|
|
1433
|
-
export function
|
|
1434
|
-
return
|
|
1744
|
+
export function ConsoleRouteDiagnosticFromJSON(json) {
|
|
1745
|
+
return ConsoleRouteDiagnosticFromJSONTyped(json, false);
|
|
1435
1746
|
}
|
|
1436
|
-
export function
|
|
1747
|
+
export function ConsoleRouteDiagnosticFromJSONTyped(json, ignoreDiscriminator) {
|
|
1437
1748
|
if (json == null) {
|
|
1438
1749
|
return json;
|
|
1439
1750
|
}
|
|
1440
1751
|
return {
|
|
1441
|
-
'method': json['method']
|
|
1442
|
-
'
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1752
|
+
'method': json['method'],
|
|
1753
|
+
'path': json['path'],
|
|
1754
|
+
'mux_pattern': json['mux_pattern'] == null ? undefined : json['mux_pattern'],
|
|
1755
|
+
'auth': json['auth'],
|
|
1756
|
+
'rate_limit': json['rate_limit'] == null ? undefined : json['rate_limit'],
|
|
1757
|
+
'contract_status': json['contract_status'],
|
|
1758
|
+
'operation_id': json['operation_id'],
|
|
1759
|
+
'owner': json['owner'],
|
|
1760
|
+
'group': json['group'],
|
|
1761
|
+
'ui_coverage': json['ui_coverage'] == null ? undefined : json['ui_coverage'],
|
|
1762
|
+
'unsupported_reason': json['unsupported_reason'] == null ? undefined : json['unsupported_reason'],
|
|
1763
|
+
};
|
|
1764
|
+
}
|
|
1765
|
+
export function ConsoleRouteDiagnosticToJSON(value) {
|
|
1446
1766
|
if (value == null) {
|
|
1447
1767
|
return value;
|
|
1448
1768
|
}
|
|
1449
1769
|
return {
|
|
1450
1770
|
'method': value['method'],
|
|
1451
|
-
'
|
|
1771
|
+
'path': value['path'],
|
|
1772
|
+
'mux_pattern': value['mux_pattern'],
|
|
1773
|
+
'auth': value['auth'],
|
|
1774
|
+
'rate_limit': value['rate_limit'],
|
|
1775
|
+
'contract_status': value['contract_status'],
|
|
1776
|
+
'operation_id': value['operation_id'],
|
|
1777
|
+
'owner': value['owner'],
|
|
1778
|
+
'group': value['group'],
|
|
1779
|
+
'ui_coverage': value['ui_coverage'],
|
|
1780
|
+
'unsupported_reason': value['unsupported_reason'],
|
|
1452
1781
|
};
|
|
1453
1782
|
}
|
|
1454
1783
|
/**
|
|
1455
|
-
* Check if a given object implements the
|
|
1784
|
+
* Check if a given object implements the ConsoleStoreDiagnostic interface.
|
|
1456
1785
|
*/
|
|
1457
|
-
export function
|
|
1786
|
+
export function instanceOfConsoleStoreDiagnostic(value) {
|
|
1787
|
+
if (!('id' in value))
|
|
1788
|
+
return false;
|
|
1789
|
+
if (!('label' in value))
|
|
1790
|
+
return false;
|
|
1791
|
+
if (!('status' in value))
|
|
1792
|
+
return false;
|
|
1793
|
+
if (!('backend' in value))
|
|
1794
|
+
return false;
|
|
1458
1795
|
return true;
|
|
1459
1796
|
}
|
|
1460
|
-
export function
|
|
1461
|
-
return
|
|
1797
|
+
export function ConsoleStoreDiagnosticFromJSON(json) {
|
|
1798
|
+
return ConsoleStoreDiagnosticFromJSONTyped(json, false);
|
|
1462
1799
|
}
|
|
1463
|
-
export function
|
|
1800
|
+
export function ConsoleStoreDiagnosticFromJSONTyped(json, ignoreDiscriminator) {
|
|
1464
1801
|
if (json == null) {
|
|
1465
1802
|
return json;
|
|
1466
1803
|
}
|
|
1467
1804
|
return {
|
|
1468
|
-
'
|
|
1469
|
-
'
|
|
1470
|
-
'
|
|
1471
|
-
'
|
|
1805
|
+
'id': json['id'],
|
|
1806
|
+
'label': json['label'],
|
|
1807
|
+
'status': json['status'],
|
|
1808
|
+
'backend': json['backend'],
|
|
1809
|
+
'source': json['source'] == null ? undefined : json['source'],
|
|
1810
|
+
'path': json['path'] == null ? undefined : json['path'],
|
|
1811
|
+
'detail': json['detail'] == null ? undefined : json['detail'],
|
|
1472
1812
|
};
|
|
1473
1813
|
}
|
|
1474
|
-
export function
|
|
1814
|
+
export function ConsoleStoreDiagnosticToJSON(value) {
|
|
1475
1815
|
if (value == null) {
|
|
1476
1816
|
return value;
|
|
1477
1817
|
}
|
|
1478
1818
|
return {
|
|
1479
|
-
'
|
|
1480
|
-
'
|
|
1481
|
-
'
|
|
1482
|
-
'
|
|
1819
|
+
'id': value['id'],
|
|
1820
|
+
'label': value['label'],
|
|
1821
|
+
'status': value['status'],
|
|
1822
|
+
'backend': value['backend'],
|
|
1823
|
+
'source': value['source'],
|
|
1824
|
+
'path': value['path'],
|
|
1825
|
+
'detail': value['detail'],
|
|
1483
1826
|
};
|
|
1484
1827
|
}
|
|
1485
1828
|
/**
|
|
1486
|
-
* Check if a given object implements the
|
|
1829
|
+
* Check if a given object implements the ConsoleSurfaceRef interface.
|
|
1487
1830
|
*/
|
|
1488
|
-
export function
|
|
1831
|
+
export function instanceOfConsoleSurfaceRef(value) {
|
|
1832
|
+
if (!('id' in value))
|
|
1833
|
+
return false;
|
|
1834
|
+
if (!('source' in value))
|
|
1835
|
+
return false;
|
|
1489
1836
|
return true;
|
|
1490
1837
|
}
|
|
1491
|
-
export function
|
|
1838
|
+
export function ConsoleSurfaceRefFromJSON(json) {
|
|
1839
|
+
return ConsoleSurfaceRefFromJSONTyped(json, false);
|
|
1840
|
+
}
|
|
1841
|
+
export function ConsoleSurfaceRefFromJSONTyped(json, ignoreDiscriminator) {
|
|
1842
|
+
if (json == null) {
|
|
1843
|
+
return json;
|
|
1844
|
+
}
|
|
1845
|
+
return {
|
|
1846
|
+
'id': json['id'],
|
|
1847
|
+
'label': json['label'] == null ? undefined : json['label'],
|
|
1848
|
+
'group': json['group'] == null ? undefined : json['group'],
|
|
1849
|
+
'source': json['source'],
|
|
1850
|
+
'auth': json['auth'] == null ? undefined : json['auth'],
|
|
1851
|
+
'contract_status': json['contract_status'] == null ? undefined : json['contract_status'],
|
|
1852
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
1853
|
+
'unsupported_reason': json['unsupported_reason'] == null ? undefined : json['unsupported_reason'],
|
|
1854
|
+
'routes': json['routes'] == null ? undefined : (json['routes'].map(ConsoleRouteDiagnosticFromJSON)),
|
|
1855
|
+
};
|
|
1856
|
+
}
|
|
1857
|
+
export function ConsoleSurfaceRefToJSON(value) {
|
|
1858
|
+
if (value == null) {
|
|
1859
|
+
return value;
|
|
1860
|
+
}
|
|
1861
|
+
return {
|
|
1862
|
+
'id': value['id'],
|
|
1863
|
+
'label': value['label'],
|
|
1864
|
+
'group': value['group'],
|
|
1865
|
+
'source': value['source'],
|
|
1866
|
+
'auth': value['auth'],
|
|
1867
|
+
'contract_status': value['contract_status'],
|
|
1868
|
+
'status': value['status'],
|
|
1869
|
+
'unsupported_reason': value['unsupported_reason'],
|
|
1870
|
+
'routes': value['routes'] == null ? undefined : (value['routes'].map(ConsoleRouteDiagnosticToJSON)),
|
|
1871
|
+
};
|
|
1872
|
+
}
|
|
1873
|
+
/**
|
|
1874
|
+
* Check if a given object implements the ConsoleSurfaceState interface.
|
|
1875
|
+
*/
|
|
1876
|
+
export function instanceOfConsoleSurfaceState(value) {
|
|
1877
|
+
if (!('id' in value))
|
|
1878
|
+
return false;
|
|
1879
|
+
if (!('status' in value))
|
|
1880
|
+
return false;
|
|
1881
|
+
if (!('source' in value))
|
|
1882
|
+
return false;
|
|
1883
|
+
if (!('generated_at' in value))
|
|
1884
|
+
return false;
|
|
1885
|
+
return true;
|
|
1886
|
+
}
|
|
1887
|
+
export function ConsoleSurfaceStateFromJSON(json) {
|
|
1888
|
+
return ConsoleSurfaceStateFromJSONTyped(json, false);
|
|
1889
|
+
}
|
|
1890
|
+
export function ConsoleSurfaceStateFromJSONTyped(json, ignoreDiscriminator) {
|
|
1891
|
+
if (json == null) {
|
|
1892
|
+
return json;
|
|
1893
|
+
}
|
|
1894
|
+
return {
|
|
1895
|
+
'id': json['id'],
|
|
1896
|
+
'status': json['status'],
|
|
1897
|
+
'source': json['source'],
|
|
1898
|
+
'generated_at': (new Date(json['generated_at'])),
|
|
1899
|
+
'summary': json['summary'] == null ? undefined : json['summary'],
|
|
1900
|
+
'records': json['records'] == null ? undefined : json['records'],
|
|
1901
|
+
};
|
|
1902
|
+
}
|
|
1903
|
+
export function ConsoleSurfaceStateToJSON(value) {
|
|
1904
|
+
if (value == null) {
|
|
1905
|
+
return value;
|
|
1906
|
+
}
|
|
1907
|
+
return {
|
|
1908
|
+
'id': value['id'],
|
|
1909
|
+
'status': value['status'],
|
|
1910
|
+
'source': value['source'],
|
|
1911
|
+
'generated_at': ((value['generated_at']).toISOString()),
|
|
1912
|
+
'summary': value['summary'],
|
|
1913
|
+
'records': value['records'],
|
|
1914
|
+
};
|
|
1915
|
+
}
|
|
1916
|
+
/**
|
|
1917
|
+
* Check if a given object implements the CreateApprovalWebAuthnChallengeRequest interface.
|
|
1918
|
+
*/
|
|
1919
|
+
export function instanceOfCreateApprovalWebAuthnChallengeRequest(value) {
|
|
1920
|
+
return true;
|
|
1921
|
+
}
|
|
1922
|
+
export function CreateApprovalWebAuthnChallengeRequestFromJSON(json) {
|
|
1923
|
+
return CreateApprovalWebAuthnChallengeRequestFromJSONTyped(json, false);
|
|
1924
|
+
}
|
|
1925
|
+
export function CreateApprovalWebAuthnChallengeRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
1926
|
+
if (json == null) {
|
|
1927
|
+
return json;
|
|
1928
|
+
}
|
|
1929
|
+
return {
|
|
1930
|
+
'method': json['method'] == null ? undefined : json['method'],
|
|
1931
|
+
'ttl_ms': json['ttl_ms'] == null ? undefined : json['ttl_ms'],
|
|
1932
|
+
};
|
|
1933
|
+
}
|
|
1934
|
+
export function CreateApprovalWebAuthnChallengeRequestToJSON(value) {
|
|
1935
|
+
if (value == null) {
|
|
1936
|
+
return value;
|
|
1937
|
+
}
|
|
1938
|
+
return {
|
|
1939
|
+
'method': value['method'],
|
|
1940
|
+
'ttl_ms': value['ttl_ms'],
|
|
1941
|
+
};
|
|
1942
|
+
}
|
|
1943
|
+
/**
|
|
1944
|
+
* Check if a given object implements the CreateLaunchpadImport202Response interface.
|
|
1945
|
+
*/
|
|
1946
|
+
export function instanceOfCreateLaunchpadImport202Response(value) {
|
|
1947
|
+
if (!('_import' in value))
|
|
1948
|
+
return false;
|
|
1949
|
+
return true;
|
|
1950
|
+
}
|
|
1951
|
+
export function CreateLaunchpadImport202ResponseFromJSON(json) {
|
|
1952
|
+
return CreateLaunchpadImport202ResponseFromJSONTyped(json, false);
|
|
1953
|
+
}
|
|
1954
|
+
export function CreateLaunchpadImport202ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
1955
|
+
if (json == null) {
|
|
1956
|
+
return json;
|
|
1957
|
+
}
|
|
1958
|
+
return {
|
|
1959
|
+
'_import': LaunchpadImportRecordFromJSON(json['import']),
|
|
1960
|
+
'cli_equivalent': json['cli_equivalent'] == null ? undefined : json['cli_equivalent'],
|
|
1961
|
+
};
|
|
1962
|
+
}
|
|
1963
|
+
export function CreateLaunchpadImport202ResponseToJSON(value) {
|
|
1964
|
+
if (value == null) {
|
|
1965
|
+
return value;
|
|
1966
|
+
}
|
|
1967
|
+
return {
|
|
1968
|
+
'import': LaunchpadImportRecordToJSON(value['_import']),
|
|
1969
|
+
'cli_equivalent': value['cli_equivalent'],
|
|
1970
|
+
};
|
|
1971
|
+
}
|
|
1972
|
+
/**
|
|
1973
|
+
* Check if a given object implements the CreateSandboxGrantRequest interface.
|
|
1974
|
+
*/
|
|
1975
|
+
export function instanceOfCreateSandboxGrantRequest(value) {
|
|
1976
|
+
return true;
|
|
1977
|
+
}
|
|
1978
|
+
export function CreateSandboxGrantRequestFromJSON(json) {
|
|
1979
|
+
return CreateSandboxGrantRequestFromJSONTyped(json, false);
|
|
1980
|
+
}
|
|
1981
|
+
export function CreateSandboxGrantRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
1982
|
+
if (json == null) {
|
|
1983
|
+
return json;
|
|
1984
|
+
}
|
|
1985
|
+
return {
|
|
1986
|
+
'runtime': json['runtime'] == null ? undefined : json['runtime'],
|
|
1987
|
+
'profile': json['profile'] == null ? undefined : json['profile'],
|
|
1988
|
+
'image_digest': json['image_digest'] == null ? undefined : json['image_digest'],
|
|
1989
|
+
'policy_epoch': json['policy_epoch'] == null ? undefined : json['policy_epoch'],
|
|
1990
|
+
};
|
|
1991
|
+
}
|
|
1992
|
+
export function CreateSandboxGrantRequestToJSON(value) {
|
|
1993
|
+
if (value == null) {
|
|
1994
|
+
return value;
|
|
1995
|
+
}
|
|
1996
|
+
return {
|
|
1997
|
+
'runtime': value['runtime'],
|
|
1998
|
+
'profile': value['profile'],
|
|
1999
|
+
'image_digest': value['image_digest'],
|
|
2000
|
+
'policy_epoch': value['policy_epoch'],
|
|
2001
|
+
};
|
|
2002
|
+
}
|
|
2003
|
+
/**
|
|
2004
|
+
* Check if a given object implements the DecisionRecord interface.
|
|
2005
|
+
*/
|
|
2006
|
+
export function instanceOfDecisionRecord(value) {
|
|
2007
|
+
return true;
|
|
2008
|
+
}
|
|
2009
|
+
export function DecisionRecordFromJSON(json) {
|
|
1492
2010
|
return DecisionRecordFromJSONTyped(json, false);
|
|
1493
2011
|
}
|
|
1494
2012
|
export function DecisionRecordFromJSONTyped(json, ignoreDiscriminator) {
|
|
@@ -1556,6 +2074,72 @@ export function DecisionRequestToJSON(value) {
|
|
|
1556
2074
|
'context': value['context'],
|
|
1557
2075
|
};
|
|
1558
2076
|
}
|
|
2077
|
+
/**
|
|
2078
|
+
* Check if a given object implements the DetectedFramework interface.
|
|
2079
|
+
*/
|
|
2080
|
+
export function instanceOfDetectedFramework(value) {
|
|
2081
|
+
return true;
|
|
2082
|
+
}
|
|
2083
|
+
export function DetectedFrameworkFromJSON(json) {
|
|
2084
|
+
return DetectedFrameworkFromJSONTyped(json, false);
|
|
2085
|
+
}
|
|
2086
|
+
export function DetectedFrameworkFromJSONTyped(json, ignoreDiscriminator) {
|
|
2087
|
+
if (json == null) {
|
|
2088
|
+
return json;
|
|
2089
|
+
}
|
|
2090
|
+
return {
|
|
2091
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
2092
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
2093
|
+
'confidence': json['confidence'] == null ? undefined : json['confidence'],
|
|
2094
|
+
'evidence': json['evidence'] == null ? undefined : json['evidence'],
|
|
2095
|
+
};
|
|
2096
|
+
}
|
|
2097
|
+
export function DetectedFrameworkToJSON(value) {
|
|
2098
|
+
if (value == null) {
|
|
2099
|
+
return value;
|
|
2100
|
+
}
|
|
2101
|
+
return {
|
|
2102
|
+
'id': value['id'],
|
|
2103
|
+
'name': value['name'],
|
|
2104
|
+
'confidence': value['confidence'],
|
|
2105
|
+
'evidence': value['evidence'],
|
|
2106
|
+
};
|
|
2107
|
+
}
|
|
2108
|
+
/**
|
|
2109
|
+
* Check if a given object implements the DetectedModule interface.
|
|
2110
|
+
*/
|
|
2111
|
+
export function instanceOfDetectedModule(value) {
|
|
2112
|
+
return true;
|
|
2113
|
+
}
|
|
2114
|
+
export function DetectedModuleFromJSON(json) {
|
|
2115
|
+
return DetectedModuleFromJSONTyped(json, false);
|
|
2116
|
+
}
|
|
2117
|
+
export function DetectedModuleFromJSONTyped(json, ignoreDiscriminator) {
|
|
2118
|
+
if (json == null) {
|
|
2119
|
+
return json;
|
|
2120
|
+
}
|
|
2121
|
+
return {
|
|
2122
|
+
...json,
|
|
2123
|
+
'path': json['path'] == null ? undefined : json['path'],
|
|
2124
|
+
'kind': json['kind'] == null ? undefined : json['kind'],
|
|
2125
|
+
'manifests': json['manifests'] == null ? undefined : json['manifests'],
|
|
2126
|
+
'entrypoints': json['entrypoints'] == null ? undefined : json['entrypoints'],
|
|
2127
|
+
'build_strategy': json['build_strategy'] == null ? undefined : json['build_strategy'],
|
|
2128
|
+
};
|
|
2129
|
+
}
|
|
2130
|
+
export function DetectedModuleToJSON(value) {
|
|
2131
|
+
if (value == null) {
|
|
2132
|
+
return value;
|
|
2133
|
+
}
|
|
2134
|
+
return {
|
|
2135
|
+
...value,
|
|
2136
|
+
'path': value['path'],
|
|
2137
|
+
'kind': value['kind'],
|
|
2138
|
+
'manifests': value['manifests'],
|
|
2139
|
+
'entrypoints': value['entrypoints'],
|
|
2140
|
+
'build_strategy': value['build_strategy'],
|
|
2141
|
+
};
|
|
2142
|
+
}
|
|
1559
2143
|
/**
|
|
1560
2144
|
* Check if a given object implements the Effect interface.
|
|
1561
2145
|
*/
|
|
@@ -1627,105 +2211,319 @@ export function EffectBoundaryToJSON(value) {
|
|
|
1627
2211
|
};
|
|
1628
2212
|
}
|
|
1629
2213
|
/**
|
|
1630
|
-
*
|
|
1631
|
-
*/
|
|
1632
|
-
export const EnvExposurePolicyModeEnum = {
|
|
1633
|
-
DenyAll: 'deny-all',
|
|
1634
|
-
Allowlist: 'allowlist',
|
|
1635
|
-
Redacted: 'redacted'
|
|
1636
|
-
};
|
|
1637
|
-
/**
|
|
1638
|
-
* Check if a given object implements the EnvExposurePolicy interface.
|
|
2214
|
+
* Check if a given object implements the EntitlementCapabilities interface.
|
|
1639
2215
|
*/
|
|
1640
|
-
export function
|
|
1641
|
-
if (!('mode' in value))
|
|
1642
|
-
return false;
|
|
2216
|
+
export function instanceOfEntitlementCapabilities(value) {
|
|
1643
2217
|
return true;
|
|
1644
2218
|
}
|
|
1645
|
-
export function
|
|
1646
|
-
return
|
|
2219
|
+
export function EntitlementCapabilitiesFromJSON(json) {
|
|
2220
|
+
return EntitlementCapabilitiesFromJSONTyped(json, false);
|
|
1647
2221
|
}
|
|
1648
|
-
export function
|
|
2222
|
+
export function EntitlementCapabilitiesFromJSONTyped(json, ignoreDiscriminator) {
|
|
1649
2223
|
if (json == null) {
|
|
1650
2224
|
return json;
|
|
1651
2225
|
}
|
|
1652
2226
|
return {
|
|
1653
|
-
'
|
|
1654
|
-
'
|
|
1655
|
-
'
|
|
1656
|
-
'
|
|
2227
|
+
'demo_launch': json['demo_launch'] == null ? undefined : json['demo_launch'],
|
|
2228
|
+
'local_launch': json['local_launch'] == null ? undefined : json['local_launch'],
|
|
2229
|
+
'cloud_launch': json['cloud_launch'] == null ? undefined : json['cloud_launch'],
|
|
2230
|
+
'custom_policy': json['custom_policy'] == null ? undefined : json['custom_policy'],
|
|
2231
|
+
'bring_own_secrets': json['bring_own_secrets'] == null ? undefined : json['bring_own_secrets'],
|
|
2232
|
+
'evidence_export': json['evidence_export'] == null ? undefined : json['evidence_export'],
|
|
2233
|
+
'offline_verify': json['offline_verify'] == null ? undefined : json['offline_verify'],
|
|
2234
|
+
'team_admin': json['team_admin'] == null ? undefined : json['team_admin'],
|
|
2235
|
+
'sso': json['sso'] == null ? undefined : json['sso'],
|
|
2236
|
+
'legal_hold': json['legal_hold'] == null ? undefined : json['legal_hold'],
|
|
2237
|
+
'certified_connectors': json['certified_connectors'] == null ? undefined : json['certified_connectors'],
|
|
2238
|
+
'enterprise_retention': json['enterprise_retention'] == null ? undefined : json['enterprise_retention'],
|
|
1657
2239
|
};
|
|
1658
2240
|
}
|
|
1659
|
-
export function
|
|
2241
|
+
export function EntitlementCapabilitiesToJSON(value) {
|
|
1660
2242
|
if (value == null) {
|
|
1661
2243
|
return value;
|
|
1662
2244
|
}
|
|
1663
2245
|
return {
|
|
1664
|
-
'
|
|
1665
|
-
'
|
|
1666
|
-
'
|
|
1667
|
-
'
|
|
2246
|
+
'demo_launch': value['demo_launch'],
|
|
2247
|
+
'local_launch': value['local_launch'],
|
|
2248
|
+
'cloud_launch': value['cloud_launch'],
|
|
2249
|
+
'custom_policy': value['custom_policy'],
|
|
2250
|
+
'bring_own_secrets': value['bring_own_secrets'],
|
|
2251
|
+
'evidence_export': value['evidence_export'],
|
|
2252
|
+
'offline_verify': value['offline_verify'],
|
|
2253
|
+
'team_admin': value['team_admin'],
|
|
2254
|
+
'sso': value['sso'],
|
|
2255
|
+
'legal_hold': value['legal_hold'],
|
|
2256
|
+
'certified_connectors': value['certified_connectors'],
|
|
2257
|
+
'enterprise_retention': value['enterprise_retention'],
|
|
1668
2258
|
};
|
|
1669
2259
|
}
|
|
1670
2260
|
/**
|
|
1671
2261
|
* @export
|
|
1672
2262
|
*/
|
|
1673
|
-
export const
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
Cose: 'cose'
|
|
2263
|
+
export const EntitlementDecisionUserStateEnum = {
|
|
2264
|
+
Available: 'available',
|
|
2265
|
+
NeedsSetup: 'needs_setup',
|
|
2266
|
+
UpgradeRequired: 'upgrade_required',
|
|
2267
|
+
EnterpriseControlled: 'enterprise_controlled',
|
|
2268
|
+
Blocked: 'blocked',
|
|
2269
|
+
Unsupported: 'unsupported'
|
|
1681
2270
|
};
|
|
1682
2271
|
/**
|
|
1683
|
-
* Check if a given object implements the
|
|
2272
|
+
* Check if a given object implements the EntitlementDecision interface.
|
|
1684
2273
|
*/
|
|
1685
|
-
export function
|
|
1686
|
-
if (!('manifest_id' in value))
|
|
1687
|
-
return false;
|
|
1688
|
-
if (!('envelope' in value))
|
|
1689
|
-
return false;
|
|
1690
|
-
if (!('native_evidence_hash' in value))
|
|
1691
|
-
return false;
|
|
2274
|
+
export function instanceOfEntitlementDecision(value) {
|
|
1692
2275
|
return true;
|
|
1693
2276
|
}
|
|
1694
|
-
export function
|
|
1695
|
-
return
|
|
2277
|
+
export function EntitlementDecisionFromJSON(json) {
|
|
2278
|
+
return EntitlementDecisionFromJSONTyped(json, false);
|
|
1696
2279
|
}
|
|
1697
|
-
export function
|
|
2280
|
+
export function EntitlementDecisionFromJSONTyped(json, ignoreDiscriminator) {
|
|
1698
2281
|
if (json == null) {
|
|
1699
2282
|
return json;
|
|
1700
2283
|
}
|
|
1701
2284
|
return {
|
|
1702
|
-
|
|
1703
|
-
'
|
|
1704
|
-
'
|
|
1705
|
-
'
|
|
1706
|
-
'
|
|
2285
|
+
...json,
|
|
2286
|
+
'allowed': json['allowed'] == null ? undefined : json['allowed'],
|
|
2287
|
+
'user_state': json['user_state'] == null ? undefined : json['user_state'],
|
|
2288
|
+
'required_capability': json['required_capability'] == null ? undefined : json['required_capability'],
|
|
2289
|
+
'reason_code': json['reason_code'] == null ? undefined : json['reason_code'],
|
|
2290
|
+
'reason': json['reason'] == null ? undefined : json['reason'],
|
|
2291
|
+
'upgrade_reason': json['upgrade_reason'] == null ? undefined : json['upgrade_reason'],
|
|
2292
|
+
'limit': json['limit'] == null ? undefined : json['limit'],
|
|
2293
|
+
'used': json['used'] == null ? undefined : json['used'],
|
|
2294
|
+
'remaining': json['remaining'] == null ? undefined : json['remaining'],
|
|
2295
|
+
'decision_ref': json['decision_ref'] == null ? undefined : json['decision_ref'],
|
|
2296
|
+
'source': json['source'] == null ? undefined : json['source'],
|
|
2297
|
+
'expires_at': json['expires_at'] == null ? undefined : (new Date(json['expires_at'])),
|
|
1707
2298
|
};
|
|
1708
2299
|
}
|
|
1709
|
-
export function
|
|
2300
|
+
export function EntitlementDecisionToJSON(value) {
|
|
1710
2301
|
if (value == null) {
|
|
1711
2302
|
return value;
|
|
1712
2303
|
}
|
|
1713
2304
|
return {
|
|
1714
|
-
|
|
1715
|
-
'
|
|
1716
|
-
'
|
|
1717
|
-
'
|
|
1718
|
-
'
|
|
2305
|
+
...value,
|
|
2306
|
+
'allowed': value['allowed'],
|
|
2307
|
+
'user_state': value['user_state'],
|
|
2308
|
+
'required_capability': value['required_capability'],
|
|
2309
|
+
'reason_code': value['reason_code'],
|
|
2310
|
+
'reason': value['reason'],
|
|
2311
|
+
'upgrade_reason': value['upgrade_reason'],
|
|
2312
|
+
'limit': value['limit'],
|
|
2313
|
+
'used': value['used'],
|
|
2314
|
+
'remaining': value['remaining'],
|
|
2315
|
+
'decision_ref': value['decision_ref'],
|
|
2316
|
+
'source': value['source'],
|
|
2317
|
+
'expires_at': value['expires_at'] == null ? undefined : ((value['expires_at']).toISOString()),
|
|
1719
2318
|
};
|
|
1720
2319
|
}
|
|
1721
2320
|
/**
|
|
1722
|
-
*
|
|
2321
|
+
* Check if a given object implements the EntitlementDecisionRequest interface.
|
|
1723
2322
|
*/
|
|
1724
|
-
export
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
2323
|
+
export function instanceOfEntitlementDecisionRequest(value) {
|
|
2324
|
+
if (!('action' in value))
|
|
2325
|
+
return false;
|
|
2326
|
+
return true;
|
|
2327
|
+
}
|
|
2328
|
+
export function EntitlementDecisionRequestFromJSON(json) {
|
|
2329
|
+
return EntitlementDecisionRequestFromJSONTyped(json, false);
|
|
2330
|
+
}
|
|
2331
|
+
export function EntitlementDecisionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
2332
|
+
if (json == null) {
|
|
2333
|
+
return json;
|
|
2334
|
+
}
|
|
2335
|
+
return {
|
|
2336
|
+
'principal_id': json['principal_id'] == null ? undefined : json['principal_id'],
|
|
2337
|
+
'tenant_id': json['tenant_id'] == null ? undefined : json['tenant_id'],
|
|
2338
|
+
'workspace_id': json['workspace_id'] == null ? undefined : json['workspace_id'],
|
|
2339
|
+
'action': json['action'],
|
|
2340
|
+
'app_id': json['app_id'] == null ? undefined : json['app_id'],
|
|
2341
|
+
'substrate_id': json['substrate_id'] == null ? undefined : json['substrate_id'],
|
|
2342
|
+
'target': json['target'] == null ? undefined : json['target'],
|
|
2343
|
+
'current_usage': json['current_usage'] == null ? undefined : EntitlementDecisionRequestCurrentUsageFromJSON(json['current_usage']),
|
|
2344
|
+
'run_id': json['run_id'] == null ? undefined : json['run_id'],
|
|
2345
|
+
};
|
|
2346
|
+
}
|
|
2347
|
+
export function EntitlementDecisionRequestToJSON(value) {
|
|
2348
|
+
if (value == null) {
|
|
2349
|
+
return value;
|
|
2350
|
+
}
|
|
2351
|
+
return {
|
|
2352
|
+
'principal_id': value['principal_id'],
|
|
2353
|
+
'tenant_id': value['tenant_id'],
|
|
2354
|
+
'workspace_id': value['workspace_id'],
|
|
2355
|
+
'action': value['action'],
|
|
2356
|
+
'app_id': value['app_id'],
|
|
2357
|
+
'substrate_id': value['substrate_id'],
|
|
2358
|
+
'target': value['target'],
|
|
2359
|
+
'current_usage': EntitlementDecisionRequestCurrentUsageToJSON(value['current_usage']),
|
|
2360
|
+
'run_id': value['run_id'],
|
|
2361
|
+
};
|
|
2362
|
+
}
|
|
2363
|
+
/**
|
|
2364
|
+
* Check if a given object implements the EntitlementDecisionRequestCurrentUsage interface.
|
|
2365
|
+
*/
|
|
2366
|
+
export function instanceOfEntitlementDecisionRequestCurrentUsage(value) {
|
|
2367
|
+
return true;
|
|
2368
|
+
}
|
|
2369
|
+
export function EntitlementDecisionRequestCurrentUsageFromJSON(json) {
|
|
2370
|
+
return EntitlementDecisionRequestCurrentUsageFromJSONTyped(json, false);
|
|
2371
|
+
}
|
|
2372
|
+
export function EntitlementDecisionRequestCurrentUsageFromJSONTyped(json, ignoreDiscriminator) {
|
|
2373
|
+
if (json == null) {
|
|
2374
|
+
return json;
|
|
2375
|
+
}
|
|
2376
|
+
return {
|
|
2377
|
+
'monthly_launches': json['monthly_launches'] == null ? undefined : json['monthly_launches'],
|
|
2378
|
+
'concurrent_runs': json['concurrent_runs'] == null ? undefined : json['concurrent_runs'],
|
|
2379
|
+
'cloud_targets': json['cloud_targets'] == null ? undefined : json['cloud_targets'],
|
|
2380
|
+
};
|
|
2381
|
+
}
|
|
2382
|
+
export function EntitlementDecisionRequestCurrentUsageToJSON(value) {
|
|
2383
|
+
if (value == null) {
|
|
2384
|
+
return value;
|
|
2385
|
+
}
|
|
2386
|
+
return {
|
|
2387
|
+
'monthly_launches': value['monthly_launches'],
|
|
2388
|
+
'concurrent_runs': value['concurrent_runs'],
|
|
2389
|
+
'cloud_targets': value['cloud_targets'],
|
|
2390
|
+
};
|
|
2391
|
+
}
|
|
2392
|
+
/**
|
|
2393
|
+
* Check if a given object implements the EntitlementLimits interface.
|
|
2394
|
+
*/
|
|
2395
|
+
export function instanceOfEntitlementLimits(value) {
|
|
2396
|
+
return true;
|
|
2397
|
+
}
|
|
2398
|
+
export function EntitlementLimitsFromJSON(json) {
|
|
2399
|
+
return EntitlementLimitsFromJSONTyped(json, false);
|
|
2400
|
+
}
|
|
2401
|
+
export function EntitlementLimitsFromJSONTyped(json, ignoreDiscriminator) {
|
|
2402
|
+
if (json == null) {
|
|
2403
|
+
return json;
|
|
2404
|
+
}
|
|
2405
|
+
return {
|
|
2406
|
+
'monthly_launches': json['monthly_launches'] == null ? undefined : json['monthly_launches'],
|
|
2407
|
+
'concurrent_runs': json['concurrent_runs'] == null ? undefined : json['concurrent_runs'],
|
|
2408
|
+
'retention_days': json['retention_days'] == null ? undefined : json['retention_days'],
|
|
2409
|
+
'max_cloud_targets': json['max_cloud_targets'] == null ? undefined : json['max_cloud_targets'],
|
|
2410
|
+
'evidence_export_mb': json['evidence_export_mb'] == null ? undefined : json['evidence_export_mb'],
|
|
2411
|
+
'connector_certification_scope': json['connector_certification_scope'] == null ? undefined : json['connector_certification_scope'],
|
|
2412
|
+
};
|
|
2413
|
+
}
|
|
2414
|
+
export function EntitlementLimitsToJSON(value) {
|
|
2415
|
+
if (value == null) {
|
|
2416
|
+
return value;
|
|
2417
|
+
}
|
|
2418
|
+
return {
|
|
2419
|
+
'monthly_launches': value['monthly_launches'],
|
|
2420
|
+
'concurrent_runs': value['concurrent_runs'],
|
|
2421
|
+
'retention_days': value['retention_days'],
|
|
2422
|
+
'max_cloud_targets': value['max_cloud_targets'],
|
|
2423
|
+
'evidence_export_mb': value['evidence_export_mb'],
|
|
2424
|
+
'connector_certification_scope': value['connector_certification_scope'],
|
|
2425
|
+
};
|
|
2426
|
+
}
|
|
2427
|
+
/**
|
|
2428
|
+
* @export
|
|
2429
|
+
*/
|
|
2430
|
+
export const EnvExposurePolicyModeEnum = {
|
|
2431
|
+
DenyAll: 'deny-all',
|
|
2432
|
+
Allowlist: 'allowlist',
|
|
2433
|
+
Redacted: 'redacted'
|
|
2434
|
+
};
|
|
2435
|
+
/**
|
|
2436
|
+
* Check if a given object implements the EnvExposurePolicy interface.
|
|
2437
|
+
*/
|
|
2438
|
+
export function instanceOfEnvExposurePolicy(value) {
|
|
2439
|
+
if (!('mode' in value))
|
|
2440
|
+
return false;
|
|
2441
|
+
return true;
|
|
2442
|
+
}
|
|
2443
|
+
export function EnvExposurePolicyFromJSON(json) {
|
|
2444
|
+
return EnvExposurePolicyFromJSONTyped(json, false);
|
|
2445
|
+
}
|
|
2446
|
+
export function EnvExposurePolicyFromJSONTyped(json, ignoreDiscriminator) {
|
|
2447
|
+
if (json == null) {
|
|
2448
|
+
return json;
|
|
2449
|
+
}
|
|
2450
|
+
return {
|
|
2451
|
+
'mode': json['mode'],
|
|
2452
|
+
'names': json['names'] == null ? undefined : json['names'],
|
|
2453
|
+
'names_hash': json['names_hash'] == null ? undefined : json['names_hash'],
|
|
2454
|
+
'redacted': json['redacted'] == null ? undefined : json['redacted'],
|
|
2455
|
+
};
|
|
2456
|
+
}
|
|
2457
|
+
export function EnvExposurePolicyToJSON(value) {
|
|
2458
|
+
if (value == null) {
|
|
2459
|
+
return value;
|
|
2460
|
+
}
|
|
2461
|
+
return {
|
|
2462
|
+
'mode': value['mode'],
|
|
2463
|
+
'names': value['names'],
|
|
2464
|
+
'names_hash': value['names_hash'],
|
|
2465
|
+
'redacted': value['redacted'],
|
|
2466
|
+
};
|
|
2467
|
+
}
|
|
2468
|
+
/**
|
|
2469
|
+
* @export
|
|
2470
|
+
*/
|
|
2471
|
+
export const EvidenceEnvelopeExportRequestEnvelopeEnum = {
|
|
2472
|
+
Dsse: 'dsse',
|
|
2473
|
+
Jws: 'jws',
|
|
2474
|
+
InToto: 'in-toto',
|
|
2475
|
+
Slsa: 'slsa',
|
|
2476
|
+
Sigstore: 'sigstore',
|
|
2477
|
+
Scitt: 'scitt',
|
|
2478
|
+
Cose: 'cose'
|
|
2479
|
+
};
|
|
2480
|
+
/**
|
|
2481
|
+
* Check if a given object implements the EvidenceEnvelopeExportRequest interface.
|
|
2482
|
+
*/
|
|
2483
|
+
export function instanceOfEvidenceEnvelopeExportRequest(value) {
|
|
2484
|
+
if (!('manifest_id' in value))
|
|
2485
|
+
return false;
|
|
2486
|
+
if (!('envelope' in value))
|
|
2487
|
+
return false;
|
|
2488
|
+
if (!('native_evidence_hash' in value))
|
|
2489
|
+
return false;
|
|
2490
|
+
return true;
|
|
2491
|
+
}
|
|
2492
|
+
export function EvidenceEnvelopeExportRequestFromJSON(json) {
|
|
2493
|
+
return EvidenceEnvelopeExportRequestFromJSONTyped(json, false);
|
|
2494
|
+
}
|
|
2495
|
+
export function EvidenceEnvelopeExportRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
2496
|
+
if (json == null) {
|
|
2497
|
+
return json;
|
|
2498
|
+
}
|
|
2499
|
+
return {
|
|
2500
|
+
'manifest_id': json['manifest_id'],
|
|
2501
|
+
'envelope': json['envelope'],
|
|
2502
|
+
'native_evidence_hash': json['native_evidence_hash'],
|
|
2503
|
+
'subject': json['subject'] == null ? undefined : json['subject'],
|
|
2504
|
+
'experimental': json['experimental'] == null ? undefined : json['experimental'],
|
|
2505
|
+
};
|
|
2506
|
+
}
|
|
2507
|
+
export function EvidenceEnvelopeExportRequestToJSON(value) {
|
|
2508
|
+
if (value == null) {
|
|
2509
|
+
return value;
|
|
2510
|
+
}
|
|
2511
|
+
return {
|
|
2512
|
+
'manifest_id': value['manifest_id'],
|
|
2513
|
+
'envelope': value['envelope'],
|
|
2514
|
+
'native_evidence_hash': value['native_evidence_hash'],
|
|
2515
|
+
'subject': value['subject'],
|
|
2516
|
+
'experimental': value['experimental'],
|
|
2517
|
+
};
|
|
2518
|
+
}
|
|
2519
|
+
/**
|
|
2520
|
+
* @export
|
|
2521
|
+
*/
|
|
2522
|
+
export const EvidenceEnvelopeManifestEnvelopeEnum = {
|
|
2523
|
+
Dsse: 'dsse',
|
|
2524
|
+
Jws: 'jws',
|
|
2525
|
+
InToto: 'in-toto',
|
|
2526
|
+
Slsa: 'slsa',
|
|
1729
2527
|
Sigstore: 'sigstore',
|
|
1730
2528
|
Scitt: 'scitt',
|
|
1731
2529
|
Cose: 'cose'
|
|
@@ -1953,291 +2751,1960 @@ export function FilesystemPreopenToJSON(value) {
|
|
|
1953
2751
|
};
|
|
1954
2752
|
}
|
|
1955
2753
|
/**
|
|
1956
|
-
* Check if a given object implements the
|
|
2754
|
+
* Check if a given object implements the FrameworkAdapter interface.
|
|
1957
2755
|
*/
|
|
1958
|
-
export function
|
|
1959
|
-
if (!('runtime' in value))
|
|
1960
|
-
return false;
|
|
1961
|
-
if (!('protocol' in value))
|
|
1962
|
-
return false;
|
|
1963
|
-
if (!('transport' in value))
|
|
1964
|
-
return false;
|
|
1965
|
-
if (!('tools' in value))
|
|
1966
|
-
return false;
|
|
2756
|
+
export function instanceOfFrameworkAdapter(value) {
|
|
1967
2757
|
return true;
|
|
1968
2758
|
}
|
|
1969
|
-
export function
|
|
1970
|
-
return
|
|
2759
|
+
export function FrameworkAdapterFromJSON(json) {
|
|
2760
|
+
return FrameworkAdapterFromJSONTyped(json, false);
|
|
1971
2761
|
}
|
|
1972
|
-
export function
|
|
2762
|
+
export function FrameworkAdapterFromJSONTyped(json, ignoreDiscriminator) {
|
|
1973
2763
|
if (json == null) {
|
|
1974
2764
|
return json;
|
|
1975
2765
|
}
|
|
1976
2766
|
return {
|
|
1977
|
-
'
|
|
1978
|
-
'
|
|
1979
|
-
'
|
|
1980
|
-
'
|
|
2767
|
+
'apiVersion': json['apiVersion'] == null ? undefined : json['apiVersion'],
|
|
2768
|
+
'kind': json['kind'] == null ? undefined : json['kind'],
|
|
2769
|
+
'metadata': json['metadata'] == null ? undefined : json['metadata'],
|
|
2770
|
+
'match': json['match'] == null ? undefined : json['match'],
|
|
2771
|
+
'capabilities': json['capabilities'] == null ? undefined : json['capabilities'],
|
|
2772
|
+
'entrypoints': json['entrypoints'] == null ? undefined : json['entrypoints'],
|
|
2773
|
+
'build': json['build'] == null ? undefined : json['build'],
|
|
1981
2774
|
};
|
|
1982
2775
|
}
|
|
1983
|
-
export function
|
|
2776
|
+
export function FrameworkAdapterToJSON(value) {
|
|
1984
2777
|
if (value == null) {
|
|
1985
2778
|
return value;
|
|
1986
2779
|
}
|
|
1987
2780
|
return {
|
|
1988
|
-
'
|
|
1989
|
-
'
|
|
1990
|
-
'
|
|
1991
|
-
'
|
|
2781
|
+
'apiVersion': value['apiVersion'],
|
|
2782
|
+
'kind': value['kind'],
|
|
2783
|
+
'metadata': value['metadata'],
|
|
2784
|
+
'match': value['match'],
|
|
2785
|
+
'capabilities': value['capabilities'],
|
|
2786
|
+
'entrypoints': value['entrypoints'],
|
|
2787
|
+
'build': value['build'],
|
|
1992
2788
|
};
|
|
1993
2789
|
}
|
|
1994
2790
|
/**
|
|
1995
|
-
*
|
|
2791
|
+
* @export
|
|
1996
2792
|
*/
|
|
1997
|
-
export
|
|
1998
|
-
|
|
2793
|
+
export const GUIActionReceiptActionTypeEnum = {
|
|
2794
|
+
Click: 'click',
|
|
2795
|
+
Type: 'type',
|
|
2796
|
+
Select: 'select',
|
|
2797
|
+
Submit: 'submit',
|
|
2798
|
+
Navigate: 'navigate'
|
|
2799
|
+
};
|
|
2800
|
+
/**
|
|
2801
|
+
* Check if a given object implements the GUIActionReceipt interface.
|
|
2802
|
+
*/
|
|
2803
|
+
export function instanceOfGUIActionReceipt(value) {
|
|
2804
|
+
if (!('receipt_id' in value))
|
|
1999
2805
|
return false;
|
|
2000
|
-
if (!('
|
|
2806
|
+
if (!('grounded_action_ref' in value))
|
|
2001
2807
|
return false;
|
|
2002
|
-
if (!('
|
|
2808
|
+
if (!('screenshot_hash' in value))
|
|
2003
2809
|
return false;
|
|
2004
|
-
if (!('
|
|
2810
|
+
if (!('dom_or_ax_snapshot_hash' in value))
|
|
2005
2811
|
return false;
|
|
2006
|
-
if (!('
|
|
2812
|
+
if (!('target_ref' in value))
|
|
2007
2813
|
return false;
|
|
2008
|
-
if (!('
|
|
2814
|
+
if (!('bbox_or_element_id' in value))
|
|
2009
2815
|
return false;
|
|
2010
|
-
if (!('
|
|
2816
|
+
if (!('action_type' in value))
|
|
2817
|
+
return false;
|
|
2818
|
+
if (!('precondition' in value))
|
|
2819
|
+
return false;
|
|
2820
|
+
if (!('postcondition' in value))
|
|
2821
|
+
return false;
|
|
2822
|
+
if (!('postcondition_verified' in value))
|
|
2823
|
+
return false;
|
|
2824
|
+
if (!('verification_scope_ref' in value))
|
|
2825
|
+
return false;
|
|
2826
|
+
if (!('policy_hash' in value))
|
|
2011
2827
|
return false;
|
|
2012
2828
|
return true;
|
|
2013
2829
|
}
|
|
2014
|
-
export function
|
|
2015
|
-
return
|
|
2830
|
+
export function GUIActionReceiptFromJSON(json) {
|
|
2831
|
+
return GUIActionReceiptFromJSONTyped(json, false);
|
|
2016
2832
|
}
|
|
2017
|
-
export function
|
|
2833
|
+
export function GUIActionReceiptFromJSONTyped(json, ignoreDiscriminator) {
|
|
2018
2834
|
if (json == null) {
|
|
2019
2835
|
return json;
|
|
2020
2836
|
}
|
|
2021
2837
|
return {
|
|
2022
|
-
'
|
|
2023
|
-
'
|
|
2024
|
-
'
|
|
2025
|
-
'
|
|
2026
|
-
'
|
|
2027
|
-
'
|
|
2028
|
-
'
|
|
2838
|
+
'receipt_id': json['receipt_id'],
|
|
2839
|
+
'grounded_action_ref': json['grounded_action_ref'],
|
|
2840
|
+
'screenshot_hash': json['screenshot_hash'],
|
|
2841
|
+
'dom_or_ax_snapshot_hash': json['dom_or_ax_snapshot_hash'],
|
|
2842
|
+
'target_ref': json['target_ref'],
|
|
2843
|
+
'bbox_or_element_id': json['bbox_or_element_id'],
|
|
2844
|
+
'action_type': json['action_type'],
|
|
2845
|
+
'precondition': json['precondition'],
|
|
2846
|
+
'postcondition': json['postcondition'],
|
|
2847
|
+
'postcondition_verified': json['postcondition_verified'],
|
|
2848
|
+
'verification_scope_ref': json['verification_scope_ref'],
|
|
2849
|
+
'policy_hash': json['policy_hash'],
|
|
2850
|
+
'sandbox_grant_hash': json['sandbox_grant_hash'] == null ? undefined : json['sandbox_grant_hash'],
|
|
2851
|
+
'created_at': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
|
|
2852
|
+
'receipt_hash': json['receipt_hash'] == null ? undefined : json['receipt_hash'],
|
|
2029
2853
|
};
|
|
2030
2854
|
}
|
|
2031
|
-
export function
|
|
2855
|
+
export function GUIActionReceiptToJSON(value) {
|
|
2032
2856
|
if (value == null) {
|
|
2033
2857
|
return value;
|
|
2034
2858
|
}
|
|
2035
2859
|
return {
|
|
2036
|
-
'
|
|
2037
|
-
'
|
|
2038
|
-
'
|
|
2039
|
-
'
|
|
2040
|
-
'
|
|
2041
|
-
'
|
|
2042
|
-
'
|
|
2860
|
+
'receipt_id': value['receipt_id'],
|
|
2861
|
+
'grounded_action_ref': value['grounded_action_ref'],
|
|
2862
|
+
'screenshot_hash': value['screenshot_hash'],
|
|
2863
|
+
'dom_or_ax_snapshot_hash': value['dom_or_ax_snapshot_hash'],
|
|
2864
|
+
'target_ref': value['target_ref'],
|
|
2865
|
+
'bbox_or_element_id': value['bbox_or_element_id'],
|
|
2866
|
+
'action_type': value['action_type'],
|
|
2867
|
+
'precondition': value['precondition'],
|
|
2868
|
+
'postcondition': value['postcondition'],
|
|
2869
|
+
'postcondition_verified': value['postcondition_verified'],
|
|
2870
|
+
'verification_scope_ref': value['verification_scope_ref'],
|
|
2871
|
+
'policy_hash': value['policy_hash'],
|
|
2872
|
+
'sandbox_grant_hash': value['sandbox_grant_hash'],
|
|
2873
|
+
'created_at': value['created_at'] == null ? undefined : ((value['created_at']).toISOString()),
|
|
2874
|
+
'receipt_hash': value['receipt_hash'],
|
|
2043
2875
|
};
|
|
2044
2876
|
}
|
|
2045
2877
|
/**
|
|
2046
|
-
*
|
|
2047
|
-
*/
|
|
2048
|
-
export const GovernanceDecisionVerdictEnum = {
|
|
2049
|
-
Allow: 'ALLOW',
|
|
2050
|
-
Deny: 'DENY',
|
|
2051
|
-
Escalate: 'ESCALATE'
|
|
2052
|
-
};
|
|
2053
|
-
/**
|
|
2054
|
-
* Check if a given object implements the GovernanceDecision interface.
|
|
2878
|
+
* Check if a given object implements the GeneratedAppSpecCandidate interface.
|
|
2055
2879
|
*/
|
|
2056
|
-
export function
|
|
2057
|
-
if (!('
|
|
2880
|
+
export function instanceOfGeneratedAppSpecCandidate(value) {
|
|
2881
|
+
if (!('candidate_id' in value))
|
|
2058
2882
|
return false;
|
|
2059
|
-
if (!('
|
|
2883
|
+
if (!('trusted' in value))
|
|
2060
2884
|
return false;
|
|
2061
|
-
if (!('
|
|
2885
|
+
if (!('app_spec' in value))
|
|
2886
|
+
return false;
|
|
2887
|
+
if (!('promotion_requirements' in value))
|
|
2062
2888
|
return false;
|
|
2063
2889
|
return true;
|
|
2064
2890
|
}
|
|
2065
|
-
export function
|
|
2066
|
-
return
|
|
2891
|
+
export function GeneratedAppSpecCandidateFromJSON(json) {
|
|
2892
|
+
return GeneratedAppSpecCandidateFromJSONTyped(json, false);
|
|
2067
2893
|
}
|
|
2068
|
-
export function
|
|
2894
|
+
export function GeneratedAppSpecCandidateFromJSONTyped(json, ignoreDiscriminator) {
|
|
2069
2895
|
if (json == null) {
|
|
2070
2896
|
return json;
|
|
2071
2897
|
}
|
|
2072
2898
|
return {
|
|
2073
|
-
|
|
2074
|
-
'
|
|
2075
|
-
'
|
|
2076
|
-
'
|
|
2077
|
-
'
|
|
2078
|
-
'active_packs': json['active_packs'] == null ? undefined : json['active_packs'],
|
|
2899
|
+
...json,
|
|
2900
|
+
'candidate_id': json['candidate_id'],
|
|
2901
|
+
'trusted': json['trusted'],
|
|
2902
|
+
'app_spec': LaunchpadAppFromJSON(json['app_spec']),
|
|
2903
|
+
'promotion_requirements': json['promotion_requirements'],
|
|
2079
2904
|
};
|
|
2080
2905
|
}
|
|
2081
|
-
export function
|
|
2906
|
+
export function GeneratedAppSpecCandidateToJSON(value) {
|
|
2082
2907
|
if (value == null) {
|
|
2083
2908
|
return value;
|
|
2084
2909
|
}
|
|
2085
2910
|
return {
|
|
2086
|
-
|
|
2087
|
-
'
|
|
2088
|
-
'
|
|
2089
|
-
'
|
|
2090
|
-
'
|
|
2091
|
-
'active_packs': value['active_packs'],
|
|
2911
|
+
...value,
|
|
2912
|
+
'candidate_id': value['candidate_id'],
|
|
2913
|
+
'trusted': value['trusted'],
|
|
2914
|
+
'app_spec': LaunchpadAppToJSON(value['app_spec']),
|
|
2915
|
+
'promotion_requirements': value['promotion_requirements'],
|
|
2092
2916
|
};
|
|
2093
2917
|
}
|
|
2094
2918
|
/**
|
|
2095
|
-
* Check if a given object implements the
|
|
2919
|
+
* Check if a given object implements the GetAgentUIRuntimeInfo200Response interface.
|
|
2096
2920
|
*/
|
|
2097
|
-
export function
|
|
2921
|
+
export function instanceOfGetAgentUIRuntimeInfo200Response(value) {
|
|
2922
|
+
if (!('runtime' in value))
|
|
2923
|
+
return false;
|
|
2924
|
+
if (!('protocol' in value))
|
|
2925
|
+
return false;
|
|
2926
|
+
if (!('transport' in value))
|
|
2927
|
+
return false;
|
|
2928
|
+
if (!('tools' in value))
|
|
2929
|
+
return false;
|
|
2098
2930
|
return true;
|
|
2099
2931
|
}
|
|
2100
|
-
export function
|
|
2101
|
-
return
|
|
2932
|
+
export function GetAgentUIRuntimeInfo200ResponseFromJSON(json) {
|
|
2933
|
+
return GetAgentUIRuntimeInfo200ResponseFromJSONTyped(json, false);
|
|
2102
2934
|
}
|
|
2103
|
-
export function
|
|
2935
|
+
export function GetAgentUIRuntimeInfo200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
2104
2936
|
if (json == null) {
|
|
2105
2937
|
return json;
|
|
2106
2938
|
}
|
|
2107
2939
|
return {
|
|
2108
|
-
'
|
|
2109
|
-
'
|
|
2940
|
+
'runtime': json['runtime'],
|
|
2941
|
+
'protocol': json['protocol'],
|
|
2942
|
+
'transport': json['transport'],
|
|
2943
|
+
'tools': json['tools'],
|
|
2110
2944
|
};
|
|
2111
2945
|
}
|
|
2112
|
-
export function
|
|
2946
|
+
export function GetAgentUIRuntimeInfo200ResponseToJSON(value) {
|
|
2947
|
+
if (value == null) {
|
|
2948
|
+
return value;
|
|
2949
|
+
}
|
|
2950
|
+
return {
|
|
2951
|
+
'runtime': value['runtime'],
|
|
2952
|
+
'protocol': value['protocol'],
|
|
2953
|
+
'transport': value['transport'],
|
|
2954
|
+
'tools': value['tools'],
|
|
2955
|
+
};
|
|
2956
|
+
}
|
|
2957
|
+
/**
|
|
2958
|
+
* Check if a given object implements the GetLaunchpadImport200Response interface.
|
|
2959
|
+
*/
|
|
2960
|
+
export function instanceOfGetLaunchpadImport200Response(value) {
|
|
2961
|
+
if (!('_import' in value))
|
|
2962
|
+
return false;
|
|
2963
|
+
return true;
|
|
2964
|
+
}
|
|
2965
|
+
export function GetLaunchpadImport200ResponseFromJSON(json) {
|
|
2966
|
+
return GetLaunchpadImport200ResponseFromJSONTyped(json, false);
|
|
2967
|
+
}
|
|
2968
|
+
export function GetLaunchpadImport200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
2969
|
+
if (json == null) {
|
|
2970
|
+
return json;
|
|
2971
|
+
}
|
|
2972
|
+
return {
|
|
2973
|
+
'_import': LaunchpadImportRecordFromJSON(json['import']),
|
|
2974
|
+
};
|
|
2975
|
+
}
|
|
2976
|
+
export function GetLaunchpadImport200ResponseToJSON(value) {
|
|
2977
|
+
if (value == null) {
|
|
2978
|
+
return value;
|
|
2979
|
+
}
|
|
2980
|
+
return {
|
|
2981
|
+
'import': LaunchpadImportRecordToJSON(value['_import']),
|
|
2982
|
+
};
|
|
2983
|
+
}
|
|
2984
|
+
/**
|
|
2985
|
+
* Check if a given object implements the GetLaunchpadMatrix200Response interface.
|
|
2986
|
+
*/
|
|
2987
|
+
export function instanceOfGetLaunchpadMatrix200Response(value) {
|
|
2988
|
+
if (!('matrix' in value))
|
|
2989
|
+
return false;
|
|
2990
|
+
return true;
|
|
2991
|
+
}
|
|
2992
|
+
export function GetLaunchpadMatrix200ResponseFromJSON(json) {
|
|
2993
|
+
return GetLaunchpadMatrix200ResponseFromJSONTyped(json, false);
|
|
2994
|
+
}
|
|
2995
|
+
export function GetLaunchpadMatrix200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
2996
|
+
if (json == null) {
|
|
2997
|
+
return json;
|
|
2998
|
+
}
|
|
2999
|
+
return {
|
|
3000
|
+
'matrix': (json['matrix'].map(LaunchpadMatrixCellFromJSON)),
|
|
3001
|
+
};
|
|
3002
|
+
}
|
|
3003
|
+
export function GetLaunchpadMatrix200ResponseToJSON(value) {
|
|
3004
|
+
if (value == null) {
|
|
3005
|
+
return value;
|
|
3006
|
+
}
|
|
3007
|
+
return {
|
|
3008
|
+
'matrix': (value['matrix'].map(LaunchpadMatrixCellToJSON)),
|
|
3009
|
+
};
|
|
3010
|
+
}
|
|
3011
|
+
/**
|
|
3012
|
+
* Check if a given object implements the GetPublicDemoHealth200Response interface.
|
|
3013
|
+
*/
|
|
3014
|
+
export function instanceOfGetPublicDemoHealth200Response(value) {
|
|
3015
|
+
if (!('version' in value))
|
|
3016
|
+
return false;
|
|
3017
|
+
if (!('commit' in value))
|
|
3018
|
+
return false;
|
|
3019
|
+
if (!('helm_ai_kernel_version' in value))
|
|
3020
|
+
return false;
|
|
3021
|
+
if (!('status' in value))
|
|
3022
|
+
return false;
|
|
3023
|
+
if (!('build_time' in value))
|
|
3024
|
+
return false;
|
|
3025
|
+
if (!('git_sha' in value))
|
|
3026
|
+
return false;
|
|
3027
|
+
if (!('deployment_id' in value))
|
|
3028
|
+
return false;
|
|
3029
|
+
return true;
|
|
3030
|
+
}
|
|
3031
|
+
export function GetPublicDemoHealth200ResponseFromJSON(json) {
|
|
3032
|
+
return GetPublicDemoHealth200ResponseFromJSONTyped(json, false);
|
|
3033
|
+
}
|
|
3034
|
+
export function GetPublicDemoHealth200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
3035
|
+
if (json == null) {
|
|
3036
|
+
return json;
|
|
3037
|
+
}
|
|
3038
|
+
return {
|
|
3039
|
+
'version': json['version'],
|
|
3040
|
+
'commit': json['commit'],
|
|
3041
|
+
'helm_ai_kernel_version': json['helm_ai_kernel_version'],
|
|
3042
|
+
'status': json['status'],
|
|
3043
|
+
'build_time': json['build_time'],
|
|
3044
|
+
'git_sha': json['git_sha'],
|
|
3045
|
+
'deployment_id': json['deployment_id'],
|
|
3046
|
+
};
|
|
3047
|
+
}
|
|
3048
|
+
export function GetPublicDemoHealth200ResponseToJSON(value) {
|
|
2113
3049
|
if (value == null) {
|
|
2114
3050
|
return value;
|
|
2115
3051
|
}
|
|
2116
3052
|
return {
|
|
2117
|
-
'status': value['status'],
|
|
2118
3053
|
'version': value['version'],
|
|
3054
|
+
'commit': value['commit'],
|
|
3055
|
+
'helm_ai_kernel_version': value['helm_ai_kernel_version'],
|
|
3056
|
+
'status': value['status'],
|
|
3057
|
+
'build_time': value['build_time'],
|
|
3058
|
+
'git_sha': value['git_sha'],
|
|
3059
|
+
'deployment_id': value['deployment_id'],
|
|
2119
3060
|
};
|
|
2120
3061
|
}
|
|
2121
3062
|
/**
|
|
2122
|
-
*
|
|
3063
|
+
* @export
|
|
2123
3064
|
*/
|
|
2124
|
-
export
|
|
2125
|
-
|
|
3065
|
+
export const GovernanceDecisionVerdictEnum = {
|
|
3066
|
+
Allow: 'ALLOW',
|
|
3067
|
+
Deny: 'DENY',
|
|
3068
|
+
Escalate: 'ESCALATE'
|
|
3069
|
+
};
|
|
3070
|
+
/**
|
|
3071
|
+
* Check if a given object implements the GovernanceDecision interface.
|
|
3072
|
+
*/
|
|
3073
|
+
export function instanceOfGovernanceDecision(value) {
|
|
3074
|
+
if (!('decision_id' in value))
|
|
3075
|
+
return false;
|
|
3076
|
+
if (!('effect_id' in value))
|
|
3077
|
+
return false;
|
|
3078
|
+
if (!('verdict' in value))
|
|
2126
3079
|
return false;
|
|
2127
3080
|
return true;
|
|
2128
3081
|
}
|
|
2129
|
-
export function
|
|
2130
|
-
return
|
|
3082
|
+
export function GovernanceDecisionFromJSON(json) {
|
|
3083
|
+
return GovernanceDecisionFromJSONTyped(json, false);
|
|
2131
3084
|
}
|
|
2132
|
-
export function
|
|
3085
|
+
export function GovernanceDecisionFromJSONTyped(json, ignoreDiscriminator) {
|
|
2133
3086
|
if (json == null) {
|
|
2134
3087
|
return json;
|
|
2135
3088
|
}
|
|
2136
3089
|
return {
|
|
2137
|
-
'
|
|
3090
|
+
'decision_id': json['decision_id'],
|
|
3091
|
+
'effect_id': json['effect_id'],
|
|
3092
|
+
'verdict': json['verdict'],
|
|
3093
|
+
'reason_code': json['reason_code'] == null ? undefined : json['reason_code'],
|
|
3094
|
+
'receipt': json['receipt'] == null ? undefined : ReceiptFromJSON(json['receipt']),
|
|
3095
|
+
'active_packs': json['active_packs'] == null ? undefined : json['active_packs'],
|
|
2138
3096
|
};
|
|
2139
3097
|
}
|
|
2140
|
-
export function
|
|
3098
|
+
export function GovernanceDecisionToJSON(value) {
|
|
2141
3099
|
if (value == null) {
|
|
2142
3100
|
return value;
|
|
2143
3101
|
}
|
|
2144
3102
|
return {
|
|
2145
|
-
'
|
|
3103
|
+
'decision_id': value['decision_id'],
|
|
3104
|
+
'effect_id': value['effect_id'],
|
|
3105
|
+
'verdict': value['verdict'],
|
|
3106
|
+
'reason_code': value['reason_code'],
|
|
3107
|
+
'receipt': ReceiptToJSON(value['receipt']),
|
|
3108
|
+
'active_packs': value['active_packs'],
|
|
2146
3109
|
};
|
|
2147
3110
|
}
|
|
2148
3111
|
/**
|
|
2149
3112
|
* @export
|
|
2150
3113
|
*/
|
|
2151
|
-
export const
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
3114
|
+
export const GroundedActionRefActionTypeEnum = {
|
|
3115
|
+
Click: 'click',
|
|
3116
|
+
Type: 'type',
|
|
3117
|
+
Select: 'select',
|
|
3118
|
+
Submit: 'submit',
|
|
3119
|
+
Navigate: 'navigate'
|
|
2157
3120
|
};
|
|
3121
|
+
/**
|
|
3122
|
+
* Check if a given object implements the GroundedActionRef interface.
|
|
3123
|
+
*/
|
|
3124
|
+
export function instanceOfGroundedActionRef(value) {
|
|
3125
|
+
if (!('grounded_action_id' in value))
|
|
3126
|
+
return false;
|
|
3127
|
+
if (!('screenshot_hash' in value))
|
|
3128
|
+
return false;
|
|
3129
|
+
if (!('dom_or_ax_snapshot_hash' in value))
|
|
3130
|
+
return false;
|
|
3131
|
+
if (!('target_ref' in value))
|
|
3132
|
+
return false;
|
|
3133
|
+
if (!('bbox_or_element_id' in value))
|
|
3134
|
+
return false;
|
|
3135
|
+
if (!('action_type' in value))
|
|
3136
|
+
return false;
|
|
3137
|
+
if (!('precondition' in value))
|
|
3138
|
+
return false;
|
|
3139
|
+
if (!('postcondition' in value))
|
|
3140
|
+
return false;
|
|
3141
|
+
if (!('verification_scope_ref' in value))
|
|
3142
|
+
return false;
|
|
3143
|
+
if (!('policy_hash' in value))
|
|
3144
|
+
return false;
|
|
3145
|
+
return true;
|
|
3146
|
+
}
|
|
3147
|
+
export function GroundedActionRefFromJSON(json) {
|
|
3148
|
+
return GroundedActionRefFromJSONTyped(json, false);
|
|
3149
|
+
}
|
|
3150
|
+
export function GroundedActionRefFromJSONTyped(json, ignoreDiscriminator) {
|
|
3151
|
+
if (json == null) {
|
|
3152
|
+
return json;
|
|
3153
|
+
}
|
|
3154
|
+
return {
|
|
3155
|
+
'grounded_action_id': json['grounded_action_id'],
|
|
3156
|
+
'screenshot_hash': json['screenshot_hash'],
|
|
3157
|
+
'dom_or_ax_snapshot_hash': json['dom_or_ax_snapshot_hash'],
|
|
3158
|
+
'target_ref': json['target_ref'],
|
|
3159
|
+
'bbox_or_element_id': json['bbox_or_element_id'],
|
|
3160
|
+
'action_type': json['action_type'],
|
|
3161
|
+
'precondition': json['precondition'],
|
|
3162
|
+
'postcondition': json['postcondition'],
|
|
3163
|
+
'verification_scope_ref': json['verification_scope_ref'],
|
|
3164
|
+
'policy_hash': json['policy_hash'],
|
|
3165
|
+
'sandbox_grant_hash': json['sandbox_grant_hash'] == null ? undefined : json['sandbox_grant_hash'],
|
|
3166
|
+
'created_at': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
|
|
3167
|
+
'grounding_hash': json['grounding_hash'] == null ? undefined : json['grounding_hash'],
|
|
3168
|
+
};
|
|
3169
|
+
}
|
|
3170
|
+
export function GroundedActionRefToJSON(value) {
|
|
3171
|
+
if (value == null) {
|
|
3172
|
+
return value;
|
|
3173
|
+
}
|
|
3174
|
+
return {
|
|
3175
|
+
'grounded_action_id': value['grounded_action_id'],
|
|
3176
|
+
'screenshot_hash': value['screenshot_hash'],
|
|
3177
|
+
'dom_or_ax_snapshot_hash': value['dom_or_ax_snapshot_hash'],
|
|
3178
|
+
'target_ref': value['target_ref'],
|
|
3179
|
+
'bbox_or_element_id': value['bbox_or_element_id'],
|
|
3180
|
+
'action_type': value['action_type'],
|
|
3181
|
+
'precondition': value['precondition'],
|
|
3182
|
+
'postcondition': value['postcondition'],
|
|
3183
|
+
'verification_scope_ref': value['verification_scope_ref'],
|
|
3184
|
+
'policy_hash': value['policy_hash'],
|
|
3185
|
+
'sandbox_grant_hash': value['sandbox_grant_hash'],
|
|
3186
|
+
'created_at': value['created_at'] == null ? undefined : ((value['created_at']).toISOString()),
|
|
3187
|
+
'grounding_hash': value['grounding_hash'],
|
|
3188
|
+
};
|
|
3189
|
+
}
|
|
2158
3190
|
/**
|
|
2159
3191
|
* @export
|
|
2160
3192
|
*/
|
|
2161
|
-
export const
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
DenyTimeLimit: 'DENY_TIME_LIMIT',
|
|
2171
|
-
DenyMemoryLimit: 'DENY_MEMORY_LIMIT',
|
|
2172
|
-
DenyPolicyViolation: 'DENY_POLICY_VIOLATION',
|
|
2173
|
-
DenyTrustKeyRevoked: 'DENY_TRUST_KEY_REVOKED',
|
|
2174
|
-
DenyIdempotencyDuplicate: 'DENY_IDEMPOTENCY_DUPLICATE',
|
|
2175
|
-
ErrorInternal: 'ERROR_INTERNAL'
|
|
3193
|
+
export const HarnessChangeContractComponentModifiedEnum = {
|
|
3194
|
+
ConnectorContract: 'connector_contract',
|
|
3195
|
+
ToolSchema: 'tool_schema',
|
|
3196
|
+
SandboxGrant: 'sandbox_grant',
|
|
3197
|
+
McpApproval: 'mcp_approval',
|
|
3198
|
+
PolicyOverlay: 'policy_overlay',
|
|
3199
|
+
Verifier: 'verifier',
|
|
3200
|
+
EvidenceTemplate: 'evidence_template',
|
|
3201
|
+
RoutingRule: 'routing_rule'
|
|
2176
3202
|
};
|
|
2177
3203
|
/**
|
|
2178
|
-
* Check if a given object implements the
|
|
3204
|
+
* Check if a given object implements the HarnessChangeContract interface.
|
|
2179
3205
|
*/
|
|
2180
|
-
export function
|
|
2181
|
-
if (!('
|
|
3206
|
+
export function instanceOfHarnessChangeContract(value) {
|
|
3207
|
+
if (!('change_contract_id' in value))
|
|
2182
3208
|
return false;
|
|
2183
|
-
if (!('
|
|
3209
|
+
if (!('component_modified' in value))
|
|
2184
3210
|
return false;
|
|
2185
|
-
if (!('
|
|
3211
|
+
if (!('failure_mode_targeted' in value))
|
|
2186
3212
|
return false;
|
|
2187
|
-
if (!('
|
|
3213
|
+
if (!('predicted_improvement' in value))
|
|
3214
|
+
return false;
|
|
3215
|
+
if (!('invariants_preserved' in value))
|
|
3216
|
+
return false;
|
|
3217
|
+
if (!('safety_properties' in value))
|
|
3218
|
+
return false;
|
|
3219
|
+
if (!('regression_suite_refs' in value))
|
|
3220
|
+
return false;
|
|
3221
|
+
if (!('rollback_plan' in value))
|
|
3222
|
+
return false;
|
|
3223
|
+
if (!('approval_required' in value))
|
|
3224
|
+
return false;
|
|
3225
|
+
if (!('created_at' in value))
|
|
2188
3226
|
return false;
|
|
2189
3227
|
return true;
|
|
2190
3228
|
}
|
|
2191
|
-
export function
|
|
2192
|
-
return
|
|
3229
|
+
export function HarnessChangeContractFromJSON(json) {
|
|
3230
|
+
return HarnessChangeContractFromJSONTyped(json, false);
|
|
2193
3231
|
}
|
|
2194
|
-
export function
|
|
3232
|
+
export function HarnessChangeContractFromJSONTyped(json, ignoreDiscriminator) {
|
|
2195
3233
|
if (json == null) {
|
|
2196
3234
|
return json;
|
|
2197
3235
|
}
|
|
2198
3236
|
return {
|
|
2199
|
-
'
|
|
2200
|
-
'
|
|
2201
|
-
'
|
|
2202
|
-
'
|
|
2203
|
-
'
|
|
3237
|
+
'change_contract_id': json['change_contract_id'],
|
|
3238
|
+
'component_modified': json['component_modified'],
|
|
3239
|
+
'failure_mode_targeted': json['failure_mode_targeted'],
|
|
3240
|
+
'predicted_improvement': json['predicted_improvement'],
|
|
3241
|
+
'invariants_preserved': json['invariants_preserved'],
|
|
3242
|
+
'safety_properties': json['safety_properties'],
|
|
3243
|
+
'regression_suite_refs': json['regression_suite_refs'],
|
|
3244
|
+
'simulation_evidence_refs': json['simulation_evidence_refs'] == null ? undefined : json['simulation_evidence_refs'],
|
|
3245
|
+
'canary_scope': json['canary_scope'] == null ? undefined : json['canary_scope'],
|
|
3246
|
+
'rollback_plan': json['rollback_plan'],
|
|
3247
|
+
'approval_required': json['approval_required'],
|
|
3248
|
+
'activation_receipt_ref': json['activation_receipt_ref'] == null ? undefined : json['activation_receipt_ref'],
|
|
3249
|
+
'created_at': (new Date(json['created_at'])),
|
|
3250
|
+
'contract_hash': json['contract_hash'] == null ? undefined : json['contract_hash'],
|
|
2204
3251
|
};
|
|
2205
3252
|
}
|
|
2206
|
-
export function
|
|
3253
|
+
export function HarnessChangeContractToJSON(value) {
|
|
2207
3254
|
if (value == null) {
|
|
2208
3255
|
return value;
|
|
2209
3256
|
}
|
|
2210
3257
|
return {
|
|
2211
|
-
'
|
|
2212
|
-
'
|
|
2213
|
-
'
|
|
2214
|
-
'
|
|
2215
|
-
'
|
|
3258
|
+
'change_contract_id': value['change_contract_id'],
|
|
3259
|
+
'component_modified': value['component_modified'],
|
|
3260
|
+
'failure_mode_targeted': value['failure_mode_targeted'],
|
|
3261
|
+
'predicted_improvement': value['predicted_improvement'],
|
|
3262
|
+
'invariants_preserved': value['invariants_preserved'],
|
|
3263
|
+
'safety_properties': value['safety_properties'],
|
|
3264
|
+
'regression_suite_refs': value['regression_suite_refs'],
|
|
3265
|
+
'simulation_evidence_refs': value['simulation_evidence_refs'],
|
|
3266
|
+
'canary_scope': value['canary_scope'],
|
|
3267
|
+
'rollback_plan': value['rollback_plan'],
|
|
3268
|
+
'approval_required': value['approval_required'],
|
|
3269
|
+
'activation_receipt_ref': value['activation_receipt_ref'],
|
|
3270
|
+
'created_at': ((value['created_at']).toISOString()),
|
|
3271
|
+
'contract_hash': value['contract_hash'],
|
|
2216
3272
|
};
|
|
2217
3273
|
}
|
|
2218
3274
|
/**
|
|
2219
|
-
* Check if a given object implements the
|
|
3275
|
+
* Check if a given object implements the HarnessTrace interface.
|
|
2220
3276
|
*/
|
|
2221
|
-
export function
|
|
3277
|
+
export function instanceOfHarnessTrace(value) {
|
|
3278
|
+
if (!('trace_id' in value))
|
|
3279
|
+
return false;
|
|
3280
|
+
if (!('plan_hash' in value))
|
|
3281
|
+
return false;
|
|
3282
|
+
if (!('policy_hash' in value))
|
|
3283
|
+
return false;
|
|
3284
|
+
if (!('receipt_refs' in value))
|
|
3285
|
+
return false;
|
|
3286
|
+
if (!('created_at' in value))
|
|
3287
|
+
return false;
|
|
2222
3288
|
return true;
|
|
2223
3289
|
}
|
|
2224
|
-
export function
|
|
2225
|
-
return
|
|
3290
|
+
export function HarnessTraceFromJSON(json) {
|
|
3291
|
+
return HarnessTraceFromJSONTyped(json, false);
|
|
2226
3292
|
}
|
|
2227
|
-
export function
|
|
3293
|
+
export function HarnessTraceFromJSONTyped(json, ignoreDiscriminator) {
|
|
3294
|
+
if (json == null) {
|
|
3295
|
+
return json;
|
|
3296
|
+
}
|
|
3297
|
+
return {
|
|
3298
|
+
'trace_id': json['trace_id'],
|
|
3299
|
+
'plan_hash': json['plan_hash'],
|
|
3300
|
+
'context_refs': json['context_refs'] == null ? undefined : json['context_refs'],
|
|
3301
|
+
'memory_reads': json['memory_reads'] == null ? undefined : json['memory_reads'],
|
|
3302
|
+
'memory_writes': json['memory_writes'] == null ? undefined : json['memory_writes'],
|
|
3303
|
+
'tool_schema_hashes': json['tool_schema_hashes'] == null ? undefined : json['tool_schema_hashes'],
|
|
3304
|
+
'permission_requests': json['permission_requests'] == null ? undefined : json['permission_requests'],
|
|
3305
|
+
'sandbox_grant_hash': json['sandbox_grant_hash'] == null ? undefined : json['sandbox_grant_hash'],
|
|
3306
|
+
'mcp_approval_ref': json['mcp_approval_ref'] == null ? undefined : json['mcp_approval_ref'],
|
|
3307
|
+
'connector_contract_hash': json['connector_contract_hash'] == null ? undefined : json['connector_contract_hash'],
|
|
3308
|
+
'policy_hash': json['policy_hash'],
|
|
3309
|
+
'cpi_output_hash': json['cpi_output_hash'] == null ? undefined : json['cpi_output_hash'],
|
|
3310
|
+
'verifier_outputs': json['verifier_outputs'] == null ? undefined : json['verifier_outputs'],
|
|
3311
|
+
'human_interventions': json['human_interventions'] == null ? undefined : json['human_interventions'],
|
|
3312
|
+
'state_updates': json['state_updates'] == null ? undefined : json['state_updates'],
|
|
3313
|
+
'receipt_refs': json['receipt_refs'],
|
|
3314
|
+
'created_at': (new Date(json['created_at'])),
|
|
3315
|
+
'trace_hash': json['trace_hash'] == null ? undefined : json['trace_hash'],
|
|
3316
|
+
};
|
|
3317
|
+
}
|
|
3318
|
+
export function HarnessTraceToJSON(value) {
|
|
3319
|
+
if (value == null) {
|
|
3320
|
+
return value;
|
|
3321
|
+
}
|
|
3322
|
+
return {
|
|
3323
|
+
'trace_id': value['trace_id'],
|
|
3324
|
+
'plan_hash': value['plan_hash'],
|
|
3325
|
+
'context_refs': value['context_refs'],
|
|
3326
|
+
'memory_reads': value['memory_reads'],
|
|
3327
|
+
'memory_writes': value['memory_writes'],
|
|
3328
|
+
'tool_schema_hashes': value['tool_schema_hashes'],
|
|
3329
|
+
'permission_requests': value['permission_requests'],
|
|
3330
|
+
'sandbox_grant_hash': value['sandbox_grant_hash'],
|
|
3331
|
+
'mcp_approval_ref': value['mcp_approval_ref'],
|
|
3332
|
+
'connector_contract_hash': value['connector_contract_hash'],
|
|
3333
|
+
'policy_hash': value['policy_hash'],
|
|
3334
|
+
'cpi_output_hash': value['cpi_output_hash'],
|
|
3335
|
+
'verifier_outputs': value['verifier_outputs'],
|
|
3336
|
+
'human_interventions': value['human_interventions'],
|
|
3337
|
+
'state_updates': value['state_updates'],
|
|
3338
|
+
'receipt_refs': value['receipt_refs'],
|
|
3339
|
+
'created_at': ((value['created_at']).toISOString()),
|
|
3340
|
+
'trace_hash': value['trace_hash'],
|
|
3341
|
+
};
|
|
3342
|
+
}
|
|
3343
|
+
/**
|
|
3344
|
+
* Check if a given object implements the HealthCheck200Response interface.
|
|
3345
|
+
*/
|
|
3346
|
+
export function instanceOfHealthCheck200Response(value) {
|
|
3347
|
+
return true;
|
|
3348
|
+
}
|
|
3349
|
+
export function HealthCheck200ResponseFromJSON(json) {
|
|
3350
|
+
return HealthCheck200ResponseFromJSONTyped(json, false);
|
|
3351
|
+
}
|
|
3352
|
+
export function HealthCheck200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
3353
|
+
if (json == null) {
|
|
3354
|
+
return json;
|
|
3355
|
+
}
|
|
3356
|
+
return {
|
|
3357
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
3358
|
+
'version': json['version'] == null ? undefined : json['version'],
|
|
3359
|
+
};
|
|
3360
|
+
}
|
|
3361
|
+
export function HealthCheck200ResponseToJSON(value) {
|
|
3362
|
+
if (value == null) {
|
|
3363
|
+
return value;
|
|
3364
|
+
}
|
|
3365
|
+
return {
|
|
3366
|
+
'status': value['status'],
|
|
3367
|
+
'version': value['version'],
|
|
3368
|
+
};
|
|
3369
|
+
}
|
|
3370
|
+
/**
|
|
3371
|
+
* Check if a given object implements the HelmError interface.
|
|
3372
|
+
*/
|
|
3373
|
+
export function instanceOfHelmError(value) {
|
|
3374
|
+
if (!('error' in value))
|
|
3375
|
+
return false;
|
|
3376
|
+
return true;
|
|
3377
|
+
}
|
|
3378
|
+
export function HelmErrorFromJSON(json) {
|
|
3379
|
+
return HelmErrorFromJSONTyped(json, false);
|
|
3380
|
+
}
|
|
3381
|
+
export function HelmErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
3382
|
+
if (json == null) {
|
|
3383
|
+
return json;
|
|
3384
|
+
}
|
|
3385
|
+
return {
|
|
3386
|
+
'error': HelmErrorErrorFromJSON(json['error']),
|
|
3387
|
+
};
|
|
3388
|
+
}
|
|
3389
|
+
export function HelmErrorToJSON(value) {
|
|
3390
|
+
if (value == null) {
|
|
3391
|
+
return value;
|
|
3392
|
+
}
|
|
3393
|
+
return {
|
|
3394
|
+
'error': HelmErrorErrorToJSON(value['error']),
|
|
3395
|
+
};
|
|
3396
|
+
}
|
|
3397
|
+
/**
|
|
3398
|
+
* @export
|
|
3399
|
+
*/
|
|
3400
|
+
export const HelmErrorErrorTypeEnum = {
|
|
3401
|
+
InvalidRequest: 'invalid_request',
|
|
3402
|
+
AuthenticationError: 'authentication_error',
|
|
3403
|
+
PermissionDenied: 'permission_denied',
|
|
3404
|
+
NotFound: 'not_found',
|
|
3405
|
+
InternalError: 'internal_error'
|
|
3406
|
+
};
|
|
3407
|
+
/**
|
|
3408
|
+
* @export
|
|
3409
|
+
*/
|
|
3410
|
+
export const HelmErrorErrorReasonCodeEnum = {
|
|
3411
|
+
DenyToolNotFound: 'DENY_TOOL_NOT_FOUND',
|
|
3412
|
+
DenySchemaMismatch: 'DENY_SCHEMA_MISMATCH',
|
|
3413
|
+
DenyOutputDrift: 'DENY_OUTPUT_DRIFT',
|
|
3414
|
+
DenyBudgetExceeded: 'DENY_BUDGET_EXCEEDED',
|
|
3415
|
+
DenyApprovalRequired: 'DENY_APPROVAL_REQUIRED',
|
|
3416
|
+
DenyApprovalTimeout: 'DENY_APPROVAL_TIMEOUT',
|
|
3417
|
+
DenySandboxTrap: 'DENY_SANDBOX_TRAP',
|
|
3418
|
+
DenyGasExhaustion: 'DENY_GAS_EXHAUSTION',
|
|
3419
|
+
DenyTimeLimit: 'DENY_TIME_LIMIT',
|
|
3420
|
+
DenyMemoryLimit: 'DENY_MEMORY_LIMIT',
|
|
3421
|
+
DenyPolicyViolation: 'DENY_POLICY_VIOLATION',
|
|
3422
|
+
DenyTrustKeyRevoked: 'DENY_TRUST_KEY_REVOKED',
|
|
3423
|
+
DenyIdempotencyDuplicate: 'DENY_IDEMPOTENCY_DUPLICATE',
|
|
3424
|
+
ErrorInternal: 'ERROR_INTERNAL'
|
|
3425
|
+
};
|
|
3426
|
+
/**
|
|
3427
|
+
* Check if a given object implements the HelmErrorError interface.
|
|
3428
|
+
*/
|
|
3429
|
+
export function instanceOfHelmErrorError(value) {
|
|
3430
|
+
if (!('message' in value))
|
|
3431
|
+
return false;
|
|
3432
|
+
if (!('type' in value))
|
|
3433
|
+
return false;
|
|
3434
|
+
if (!('code' in value))
|
|
3435
|
+
return false;
|
|
3436
|
+
if (!('reason_code' in value))
|
|
3437
|
+
return false;
|
|
3438
|
+
return true;
|
|
3439
|
+
}
|
|
3440
|
+
export function HelmErrorErrorFromJSON(json) {
|
|
3441
|
+
return HelmErrorErrorFromJSONTyped(json, false);
|
|
3442
|
+
}
|
|
3443
|
+
export function HelmErrorErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
3444
|
+
if (json == null) {
|
|
3445
|
+
return json;
|
|
3446
|
+
}
|
|
3447
|
+
return {
|
|
3448
|
+
'message': json['message'],
|
|
3449
|
+
'type': json['type'],
|
|
3450
|
+
'code': json['code'],
|
|
3451
|
+
'reason_code': json['reason_code'],
|
|
3452
|
+
'details': json['details'] == null ? undefined : json['details'],
|
|
3453
|
+
};
|
|
3454
|
+
}
|
|
3455
|
+
export function HelmErrorErrorToJSON(value) {
|
|
3456
|
+
if (value == null) {
|
|
3457
|
+
return value;
|
|
3458
|
+
}
|
|
3459
|
+
return {
|
|
3460
|
+
'message': value['message'],
|
|
3461
|
+
'type': value['type'],
|
|
3462
|
+
'code': value['code'],
|
|
3463
|
+
'reason_code': value['reason_code'],
|
|
3464
|
+
'details': value['details'],
|
|
3465
|
+
};
|
|
3466
|
+
}
|
|
3467
|
+
/**
|
|
3468
|
+
* Check if a given object implements the ImportEvidenceLedger interface.
|
|
3469
|
+
*/
|
|
3470
|
+
export function instanceOfImportEvidenceLedger(value) {
|
|
3471
|
+
return true;
|
|
3472
|
+
}
|
|
3473
|
+
export function ImportEvidenceLedgerFromJSON(json) {
|
|
3474
|
+
return ImportEvidenceLedgerFromJSONTyped(json, false);
|
|
3475
|
+
}
|
|
3476
|
+
export function ImportEvidenceLedgerFromJSONTyped(json, ignoreDiscriminator) {
|
|
3477
|
+
if (json == null) {
|
|
3478
|
+
return json;
|
|
3479
|
+
}
|
|
3480
|
+
return {
|
|
3481
|
+
...json,
|
|
3482
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
3483
|
+
'receipt_refs': json['receipt_refs'] == null ? undefined : json['receipt_refs'],
|
|
3484
|
+
'evidence_pack_refs': json['evidence_pack_refs'] == null ? undefined : json['evidence_pack_refs'],
|
|
3485
|
+
'sbom_ref': json['sbom_ref'] == null ? undefined : json['sbom_ref'],
|
|
3486
|
+
'vulnerability_scan_ref': json['vulnerability_scan_ref'] == null ? undefined : json['vulnerability_scan_ref'],
|
|
3487
|
+
'provenance_ref': json['provenance_ref'] == null ? undefined : json['provenance_ref'],
|
|
3488
|
+
'license_ref': json['license_ref'] == null ? undefined : json['license_ref'],
|
|
3489
|
+
'policy_refs': json['policy_refs'] == null ? undefined : json['policy_refs'],
|
|
3490
|
+
'offline_verify_command': json['offline_verify_command'] == null ? undefined : json['offline_verify_command'],
|
|
3491
|
+
};
|
|
3492
|
+
}
|
|
3493
|
+
export function ImportEvidenceLedgerToJSON(value) {
|
|
3494
|
+
if (value == null) {
|
|
3495
|
+
return value;
|
|
3496
|
+
}
|
|
3497
|
+
return {
|
|
3498
|
+
...value,
|
|
3499
|
+
'status': value['status'],
|
|
3500
|
+
'receipt_refs': value['receipt_refs'],
|
|
3501
|
+
'evidence_pack_refs': value['evidence_pack_refs'],
|
|
3502
|
+
'sbom_ref': value['sbom_ref'],
|
|
3503
|
+
'vulnerability_scan_ref': value['vulnerability_scan_ref'],
|
|
3504
|
+
'provenance_ref': value['provenance_ref'],
|
|
3505
|
+
'license_ref': value['license_ref'],
|
|
3506
|
+
'policy_refs': value['policy_refs'],
|
|
3507
|
+
'offline_verify_command': value['offline_verify_command'],
|
|
3508
|
+
};
|
|
3509
|
+
}
|
|
3510
|
+
/**
|
|
3511
|
+
* Check if a given object implements the ImportPreflightResult interface.
|
|
3512
|
+
*/
|
|
3513
|
+
export function instanceOfImportPreflightResult(value) {
|
|
3514
|
+
if (!('import_id' in value))
|
|
3515
|
+
return false;
|
|
3516
|
+
if (!('status' in value))
|
|
3517
|
+
return false;
|
|
3518
|
+
if (!('checks' in value))
|
|
3519
|
+
return false;
|
|
3520
|
+
if (!('evidence_ledger' in value))
|
|
3521
|
+
return false;
|
|
3522
|
+
return true;
|
|
3523
|
+
}
|
|
3524
|
+
export function ImportPreflightResultFromJSON(json) {
|
|
3525
|
+
return ImportPreflightResultFromJSONTyped(json, false);
|
|
3526
|
+
}
|
|
3527
|
+
export function ImportPreflightResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
3528
|
+
if (json == null) {
|
|
3529
|
+
return json;
|
|
3530
|
+
}
|
|
3531
|
+
return {
|
|
3532
|
+
...json,
|
|
3533
|
+
'import_id': json['import_id'],
|
|
3534
|
+
'status': json['status'],
|
|
3535
|
+
'checks': (json['checks'].map(PreflightCheckFromJSON)),
|
|
3536
|
+
'blocked_reasons': json['blocked_reasons'] == null ? undefined : json['blocked_reasons'],
|
|
3537
|
+
'evidence_ledger': ImportEvidenceLedgerFromJSON(json['evidence_ledger']),
|
|
3538
|
+
};
|
|
3539
|
+
}
|
|
3540
|
+
export function ImportPreflightResultToJSON(value) {
|
|
3541
|
+
if (value == null) {
|
|
3542
|
+
return value;
|
|
3543
|
+
}
|
|
3544
|
+
return {
|
|
3545
|
+
...value,
|
|
3546
|
+
'import_id': value['import_id'],
|
|
3547
|
+
'status': value['status'],
|
|
3548
|
+
'checks': (value['checks'].map(PreflightCheckToJSON)),
|
|
3549
|
+
'blocked_reasons': value['blocked_reasons'],
|
|
3550
|
+
'evidence_ledger': ImportEvidenceLedgerToJSON(value['evidence_ledger']),
|
|
3551
|
+
};
|
|
3552
|
+
}
|
|
3553
|
+
/**
|
|
3554
|
+
* Check if a given object implements the LaunchRecipe interface.
|
|
3555
|
+
*/
|
|
3556
|
+
export function instanceOfLaunchRecipe(value) {
|
|
3557
|
+
if (!('import_id' in value))
|
|
3558
|
+
return false;
|
|
3559
|
+
if (!('detection_order' in value))
|
|
3560
|
+
return false;
|
|
3561
|
+
if (!('build_strategy' in value))
|
|
3562
|
+
return false;
|
|
3563
|
+
if (!('target_plans' in value))
|
|
3564
|
+
return false;
|
|
3565
|
+
if (!('generated_app_specs' in value))
|
|
3566
|
+
return false;
|
|
3567
|
+
if (!('promotion_state' in value))
|
|
3568
|
+
return false;
|
|
3569
|
+
return true;
|
|
3570
|
+
}
|
|
3571
|
+
export function LaunchRecipeFromJSON(json) {
|
|
3572
|
+
return LaunchRecipeFromJSONTyped(json, false);
|
|
3573
|
+
}
|
|
3574
|
+
export function LaunchRecipeFromJSONTyped(json, ignoreDiscriminator) {
|
|
3575
|
+
if (json == null) {
|
|
3576
|
+
return json;
|
|
3577
|
+
}
|
|
3578
|
+
return {
|
|
3579
|
+
...json,
|
|
3580
|
+
'import_id': json['import_id'],
|
|
3581
|
+
'generated_at': json['generated_at'] == null ? undefined : (new Date(json['generated_at'])),
|
|
3582
|
+
'detection_order': json['detection_order'],
|
|
3583
|
+
'build_strategy': BuildStrategyFromJSON(json['build_strategy']),
|
|
3584
|
+
'target_plans': (json['target_plans'].map(TargetPlanFromJSON)),
|
|
3585
|
+
'generated_app_specs': (json['generated_app_specs'].map(GeneratedAppSpecCandidateFromJSON)),
|
|
3586
|
+
'promotion_state': json['promotion_state'],
|
|
3587
|
+
'promotion_requirements': json['promotion_requirements'] == null ? undefined : json['promotion_requirements'],
|
|
3588
|
+
'cli_equivalent': json['cli_equivalent'] == null ? undefined : json['cli_equivalent'],
|
|
3589
|
+
};
|
|
3590
|
+
}
|
|
3591
|
+
export function LaunchRecipeToJSON(value) {
|
|
3592
|
+
if (value == null) {
|
|
3593
|
+
return value;
|
|
3594
|
+
}
|
|
3595
|
+
return {
|
|
3596
|
+
...value,
|
|
3597
|
+
'import_id': value['import_id'],
|
|
3598
|
+
'generated_at': value['generated_at'] == null ? undefined : ((value['generated_at']).toISOString()),
|
|
3599
|
+
'detection_order': value['detection_order'],
|
|
3600
|
+
'build_strategy': BuildStrategyToJSON(value['build_strategy']),
|
|
3601
|
+
'target_plans': (value['target_plans'].map(TargetPlanToJSON)),
|
|
3602
|
+
'generated_app_specs': (value['generated_app_specs'].map(GeneratedAppSpecCandidateToJSON)),
|
|
3603
|
+
'promotion_state': value['promotion_state'],
|
|
3604
|
+
'promotion_requirements': value['promotion_requirements'],
|
|
3605
|
+
'cli_equivalent': value['cli_equivalent'],
|
|
3606
|
+
};
|
|
3607
|
+
}
|
|
3608
|
+
/**
|
|
3609
|
+
* Check if a given object implements the LaunchpadApp interface.
|
|
3610
|
+
*/
|
|
3611
|
+
export function instanceOfLaunchpadApp(value) {
|
|
3612
|
+
if (!('id' in value))
|
|
3613
|
+
return false;
|
|
3614
|
+
if (!('name' in value))
|
|
3615
|
+
return false;
|
|
3616
|
+
return true;
|
|
3617
|
+
}
|
|
3618
|
+
export function LaunchpadAppFromJSON(json) {
|
|
3619
|
+
return LaunchpadAppFromJSONTyped(json, false);
|
|
3620
|
+
}
|
|
3621
|
+
export function LaunchpadAppFromJSONTyped(json, ignoreDiscriminator) {
|
|
3622
|
+
if (json == null) {
|
|
3623
|
+
return json;
|
|
3624
|
+
}
|
|
3625
|
+
return {
|
|
3626
|
+
...json,
|
|
3627
|
+
'id': json['id'],
|
|
3628
|
+
'app_id': json['app_id'] == null ? undefined : json['app_id'],
|
|
3629
|
+
'name': json['name'],
|
|
3630
|
+
'version': json['version'] == null ? undefined : json['version'],
|
|
3631
|
+
'oci_ref': json['oci_ref'] == null ? undefined : json['oci_ref'],
|
|
3632
|
+
'immutable_digest': json['immutable_digest'] == null ? undefined : json['immutable_digest'],
|
|
3633
|
+
'oss_supported': json['oss_supported'] == null ? undefined : json['oss_supported'],
|
|
3634
|
+
'availability': json['availability'] == null ? undefined : json['availability'],
|
|
3635
|
+
'redistribution': json['redistribution'] == null ? undefined : json['redistribution'],
|
|
3636
|
+
'install_strategy': json['install_strategy'] == null ? undefined : json['install_strategy'],
|
|
3637
|
+
'risk_class': json['risk_class'] == null ? undefined : json['risk_class'],
|
|
3638
|
+
'blocked_reason': json['blocked_reason'] == null ? undefined : json['blocked_reason'],
|
|
3639
|
+
'required_secrets': json['required_secrets'] == null ? undefined : json['required_secrets'],
|
|
3640
|
+
'model_gateway_env': json['model_gateway_env'] == null ? undefined : json['model_gateway_env'],
|
|
3641
|
+
'declared_capabilities': json['declared_capabilities'] == null ? undefined : json['declared_capabilities'],
|
|
3642
|
+
'mcp_servers': json['mcp_servers'] == null ? undefined : (json['mcp_servers'].map(LaunchpadMCPServerFromJSON)),
|
|
3643
|
+
'filesystem_needs': json['filesystem_needs'] == null ? undefined : json['filesystem_needs'],
|
|
3644
|
+
'network_needs': json['network_needs'] == null ? undefined : json['network_needs'],
|
|
3645
|
+
'healthcheck': json['healthcheck'] == null ? undefined : json['healthcheck'],
|
|
3646
|
+
'teardown_recipe': json['teardown_recipe'] == null ? undefined : json['teardown_recipe'],
|
|
3647
|
+
'evidence_profile': json['evidence_profile'] == null ? undefined : json['evidence_profile'],
|
|
3648
|
+
'policy_ref': json['policy_ref'] == null ? undefined : json['policy_ref'],
|
|
3649
|
+
'user_state': json['user_state'] == null ? undefined : json['user_state'],
|
|
3650
|
+
'required_capability': json['required_capability'] == null ? undefined : json['required_capability'],
|
|
3651
|
+
'upgrade_reason': json['upgrade_reason'] == null ? undefined : json['upgrade_reason'],
|
|
3652
|
+
'entitlement_decision': json['entitlement_decision'] == null ? undefined : EntitlementDecisionFromJSON(json['entitlement_decision']),
|
|
3653
|
+
'action_states': json['action_states'] == null ? undefined : json['action_states'],
|
|
3654
|
+
'status': json['status'] == null ? undefined : LaunchpadAppStatusFromJSON(json['status']),
|
|
3655
|
+
};
|
|
3656
|
+
}
|
|
3657
|
+
export function LaunchpadAppToJSON(value) {
|
|
3658
|
+
if (value == null) {
|
|
3659
|
+
return value;
|
|
3660
|
+
}
|
|
3661
|
+
return {
|
|
3662
|
+
...value,
|
|
3663
|
+
'id': value['id'],
|
|
3664
|
+
'app_id': value['app_id'],
|
|
3665
|
+
'name': value['name'],
|
|
3666
|
+
'version': value['version'],
|
|
3667
|
+
'oci_ref': value['oci_ref'],
|
|
3668
|
+
'immutable_digest': value['immutable_digest'],
|
|
3669
|
+
'oss_supported': value['oss_supported'],
|
|
3670
|
+
'availability': value['availability'],
|
|
3671
|
+
'redistribution': value['redistribution'],
|
|
3672
|
+
'install_strategy': value['install_strategy'],
|
|
3673
|
+
'risk_class': value['risk_class'],
|
|
3674
|
+
'blocked_reason': value['blocked_reason'],
|
|
3675
|
+
'required_secrets': value['required_secrets'],
|
|
3676
|
+
'model_gateway_env': value['model_gateway_env'],
|
|
3677
|
+
'declared_capabilities': value['declared_capabilities'],
|
|
3678
|
+
'mcp_servers': value['mcp_servers'] == null ? undefined : (value['mcp_servers'].map(LaunchpadMCPServerToJSON)),
|
|
3679
|
+
'filesystem_needs': value['filesystem_needs'],
|
|
3680
|
+
'network_needs': value['network_needs'],
|
|
3681
|
+
'healthcheck': value['healthcheck'],
|
|
3682
|
+
'teardown_recipe': value['teardown_recipe'],
|
|
3683
|
+
'evidence_profile': value['evidence_profile'],
|
|
3684
|
+
'policy_ref': value['policy_ref'],
|
|
3685
|
+
'user_state': value['user_state'],
|
|
3686
|
+
'required_capability': value['required_capability'],
|
|
3687
|
+
'upgrade_reason': value['upgrade_reason'],
|
|
3688
|
+
'entitlement_decision': EntitlementDecisionToJSON(value['entitlement_decision']),
|
|
3689
|
+
'action_states': value['action_states'],
|
|
3690
|
+
'status': LaunchpadAppStatusToJSON(value['status']),
|
|
3691
|
+
};
|
|
3692
|
+
}
|
|
3693
|
+
/**
|
|
3694
|
+
* Check if a given object implements the LaunchpadAppStatus interface.
|
|
3695
|
+
*/
|
|
3696
|
+
export function instanceOfLaunchpadAppStatus(value) {
|
|
3697
|
+
return true;
|
|
3698
|
+
}
|
|
3699
|
+
export function LaunchpadAppStatusFromJSON(json) {
|
|
3700
|
+
return LaunchpadAppStatusFromJSONTyped(json, false);
|
|
3701
|
+
}
|
|
3702
|
+
export function LaunchpadAppStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
3703
|
+
if (json == null) {
|
|
3704
|
+
return json;
|
|
3705
|
+
}
|
|
3706
|
+
return {
|
|
3707
|
+
...json,
|
|
3708
|
+
'state': json['state'] == null ? undefined : json['state'],
|
|
3709
|
+
'verdict': json['verdict'] == null ? undefined : json['verdict'],
|
|
3710
|
+
'reason_code': json['reason_code'] == null ? undefined : json['reason_code'],
|
|
3711
|
+
'human_summary': json['human_summary'] == null ? undefined : json['human_summary'],
|
|
3712
|
+
'missing_secrets': json['missing_secrets'] == null ? undefined : json['missing_secrets'],
|
|
3713
|
+
'quarantined_mcp': json['quarantined_mcp'] == null ? undefined : json['quarantined_mcp'],
|
|
3714
|
+
'last_run_id': json['last_run_id'] == null ? undefined : json['last_run_id'],
|
|
3715
|
+
'last_evidencepack_ref': json['last_evidencepack_ref'] == null ? undefined : json['last_evidencepack_ref'],
|
|
3716
|
+
'proof_status': json['proof_status'] == null ? undefined : json['proof_status'],
|
|
3717
|
+
};
|
|
3718
|
+
}
|
|
3719
|
+
export function LaunchpadAppStatusToJSON(value) {
|
|
3720
|
+
if (value == null) {
|
|
3721
|
+
return value;
|
|
3722
|
+
}
|
|
3723
|
+
return {
|
|
3724
|
+
...value,
|
|
3725
|
+
'state': value['state'],
|
|
3726
|
+
'verdict': value['verdict'],
|
|
3727
|
+
'reason_code': value['reason_code'],
|
|
3728
|
+
'human_summary': value['human_summary'],
|
|
3729
|
+
'missing_secrets': value['missing_secrets'],
|
|
3730
|
+
'quarantined_mcp': value['quarantined_mcp'],
|
|
3731
|
+
'last_run_id': value['last_run_id'],
|
|
3732
|
+
'last_evidencepack_ref': value['last_evidencepack_ref'],
|
|
3733
|
+
'proof_status': value['proof_status'],
|
|
3734
|
+
};
|
|
3735
|
+
}
|
|
3736
|
+
/**
|
|
3737
|
+
* Check if a given object implements the LaunchpadFixAction interface.
|
|
3738
|
+
*/
|
|
3739
|
+
export function instanceOfLaunchpadFixAction(value) {
|
|
3740
|
+
return true;
|
|
3741
|
+
}
|
|
3742
|
+
export function LaunchpadFixActionFromJSON(json) {
|
|
3743
|
+
return LaunchpadFixActionFromJSONTyped(json, false);
|
|
3744
|
+
}
|
|
3745
|
+
export function LaunchpadFixActionFromJSONTyped(json, ignoreDiscriminator) {
|
|
3746
|
+
if (json == null) {
|
|
3747
|
+
return json;
|
|
3748
|
+
}
|
|
3749
|
+
return {
|
|
3750
|
+
...json,
|
|
3751
|
+
'label': json['label'] == null ? undefined : json['label'],
|
|
3752
|
+
'cli': json['cli'] == null ? undefined : json['cli'],
|
|
3753
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
3754
|
+
};
|
|
3755
|
+
}
|
|
3756
|
+
export function LaunchpadFixActionToJSON(value) {
|
|
3757
|
+
if (value == null) {
|
|
3758
|
+
return value;
|
|
3759
|
+
}
|
|
3760
|
+
return {
|
|
3761
|
+
...value,
|
|
3762
|
+
'label': value['label'],
|
|
3763
|
+
'cli': value['cli'],
|
|
3764
|
+
'description': value['description'],
|
|
3765
|
+
};
|
|
3766
|
+
}
|
|
3767
|
+
/**
|
|
3768
|
+
* Check if a given object implements the LaunchpadGateResult interface.
|
|
3769
|
+
*/
|
|
3770
|
+
export function instanceOfLaunchpadGateResult(value) {
|
|
3771
|
+
if (!('id' in value))
|
|
3772
|
+
return false;
|
|
3773
|
+
if (!('group' in value))
|
|
3774
|
+
return false;
|
|
3775
|
+
if (!('label' in value))
|
|
3776
|
+
return false;
|
|
3777
|
+
if (!('verdict' in value))
|
|
3778
|
+
return false;
|
|
3779
|
+
if (!('proof_status' in value))
|
|
3780
|
+
return false;
|
|
3781
|
+
return true;
|
|
3782
|
+
}
|
|
3783
|
+
export function LaunchpadGateResultFromJSON(json) {
|
|
3784
|
+
return LaunchpadGateResultFromJSONTyped(json, false);
|
|
3785
|
+
}
|
|
3786
|
+
export function LaunchpadGateResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
3787
|
+
if (json == null) {
|
|
3788
|
+
return json;
|
|
3789
|
+
}
|
|
3790
|
+
return {
|
|
3791
|
+
...json,
|
|
3792
|
+
'id': json['id'],
|
|
3793
|
+
'group': json['group'],
|
|
3794
|
+
'label': json['label'],
|
|
3795
|
+
'verdict': json['verdict'],
|
|
3796
|
+
'reason_code': json['reason_code'] == null ? undefined : json['reason_code'],
|
|
3797
|
+
'receipt_ref': json['receipt_ref'] == null ? undefined : json['receipt_ref'],
|
|
3798
|
+
'proofgraph_node': json['proofgraph_node'] == null ? undefined : json['proofgraph_node'],
|
|
3799
|
+
'evidence_refs': json['evidence_refs'] == null ? undefined : json['evidence_refs'],
|
|
3800
|
+
'summary': json['summary'] == null ? undefined : json['summary'],
|
|
3801
|
+
'why': json['why'] == null ? undefined : json['why'],
|
|
3802
|
+
'proof_status': json['proof_status'],
|
|
3803
|
+
'raw_detail_ref': json['raw_detail_ref'] == null ? undefined : json['raw_detail_ref'],
|
|
3804
|
+
'raw_proof_ref': json['raw_proof_ref'] == null ? undefined : json['raw_proof_ref'],
|
|
3805
|
+
'receipt_required': json['receipt_required'] == null ? undefined : json['receipt_required'],
|
|
3806
|
+
'cli_equivalent': json['cli_equivalent'] == null ? undefined : json['cli_equivalent'],
|
|
3807
|
+
'fix_actions': json['fix_actions'] == null ? undefined : (json['fix_actions'].map(LaunchpadFixActionFromJSON)),
|
|
3808
|
+
};
|
|
3809
|
+
}
|
|
3810
|
+
export function LaunchpadGateResultToJSON(value) {
|
|
3811
|
+
if (value == null) {
|
|
3812
|
+
return value;
|
|
3813
|
+
}
|
|
3814
|
+
return {
|
|
3815
|
+
...value,
|
|
3816
|
+
'id': value['id'],
|
|
3817
|
+
'group': value['group'],
|
|
3818
|
+
'label': value['label'],
|
|
3819
|
+
'verdict': value['verdict'],
|
|
3820
|
+
'reason_code': value['reason_code'],
|
|
3821
|
+
'receipt_ref': value['receipt_ref'],
|
|
3822
|
+
'proofgraph_node': value['proofgraph_node'],
|
|
3823
|
+
'evidence_refs': value['evidence_refs'],
|
|
3824
|
+
'summary': value['summary'],
|
|
3825
|
+
'why': value['why'],
|
|
3826
|
+
'proof_status': value['proof_status'],
|
|
3827
|
+
'raw_detail_ref': value['raw_detail_ref'],
|
|
3828
|
+
'raw_proof_ref': value['raw_proof_ref'],
|
|
3829
|
+
'receipt_required': value['receipt_required'],
|
|
3830
|
+
'cli_equivalent': value['cli_equivalent'],
|
|
3831
|
+
'fix_actions': value['fix_actions'] == null ? undefined : (value['fix_actions'].map(LaunchpadFixActionToJSON)),
|
|
3832
|
+
};
|
|
3833
|
+
}
|
|
3834
|
+
/**
|
|
3835
|
+
* @export
|
|
3836
|
+
*/
|
|
3837
|
+
export const LaunchpadImportRecordStateEnum = {
|
|
3838
|
+
Imported: 'IMPORTED',
|
|
3839
|
+
Preflighted: 'PREFLIGHTED',
|
|
3840
|
+
Promotable: 'PROMOTABLE',
|
|
3841
|
+
Blocked: 'BLOCKED',
|
|
3842
|
+
Launched: 'LAUNCHED',
|
|
3843
|
+
TornDown: 'TORN_DOWN'
|
|
3844
|
+
};
|
|
3845
|
+
/**
|
|
3846
|
+
* Check if a given object implements the LaunchpadImportRecord interface.
|
|
3847
|
+
*/
|
|
3848
|
+
export function instanceOfLaunchpadImportRecord(value) {
|
|
3849
|
+
if (!('id' in value))
|
|
3850
|
+
return false;
|
|
3851
|
+
if (!('state' in value))
|
|
3852
|
+
return false;
|
|
3853
|
+
if (!('request' in value))
|
|
3854
|
+
return false;
|
|
3855
|
+
if (!('source_snapshot' in value))
|
|
3856
|
+
return false;
|
|
3857
|
+
if (!('capability_graph' in value))
|
|
3858
|
+
return false;
|
|
3859
|
+
if (!('launch_recipe' in value))
|
|
3860
|
+
return false;
|
|
3861
|
+
if (!('evidence_ledger' in value))
|
|
3862
|
+
return false;
|
|
3863
|
+
return true;
|
|
3864
|
+
}
|
|
3865
|
+
export function LaunchpadImportRecordFromJSON(json) {
|
|
3866
|
+
return LaunchpadImportRecordFromJSONTyped(json, false);
|
|
3867
|
+
}
|
|
3868
|
+
export function LaunchpadImportRecordFromJSONTyped(json, ignoreDiscriminator) {
|
|
3869
|
+
if (json == null) {
|
|
3870
|
+
return json;
|
|
3871
|
+
}
|
|
3872
|
+
return {
|
|
3873
|
+
...json,
|
|
3874
|
+
'id': json['id'],
|
|
3875
|
+
'state': json['state'],
|
|
3876
|
+
'created_at': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
|
|
3877
|
+
'updated_at': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
|
|
3878
|
+
'request': LaunchpadImportRequestFromJSON(json['request']),
|
|
3879
|
+
'source_snapshot': SourceSnapshotFromJSON(json['source_snapshot']),
|
|
3880
|
+
'capability_graph': CapabilityGraphFromJSON(json['capability_graph']),
|
|
3881
|
+
'launch_recipe': LaunchRecipeFromJSON(json['launch_recipe']),
|
|
3882
|
+
'preflight': json['preflight'] == null ? undefined : ImportPreflightResultFromJSON(json['preflight']),
|
|
3883
|
+
'evidence_ledger': ImportEvidenceLedgerFromJSON(json['evidence_ledger']),
|
|
3884
|
+
};
|
|
3885
|
+
}
|
|
3886
|
+
export function LaunchpadImportRecordToJSON(value) {
|
|
3887
|
+
if (value == null) {
|
|
3888
|
+
return value;
|
|
3889
|
+
}
|
|
3890
|
+
return {
|
|
3891
|
+
...value,
|
|
3892
|
+
'id': value['id'],
|
|
3893
|
+
'state': value['state'],
|
|
3894
|
+
'created_at': value['created_at'] == null ? undefined : ((value['created_at']).toISOString()),
|
|
3895
|
+
'updated_at': value['updated_at'] == null ? undefined : ((value['updated_at']).toISOString()),
|
|
3896
|
+
'request': LaunchpadImportRequestToJSON(value['request']),
|
|
3897
|
+
'source_snapshot': SourceSnapshotToJSON(value['source_snapshot']),
|
|
3898
|
+
'capability_graph': CapabilityGraphToJSON(value['capability_graph']),
|
|
3899
|
+
'launch_recipe': LaunchRecipeToJSON(value['launch_recipe']),
|
|
3900
|
+
'preflight': ImportPreflightResultToJSON(value['preflight']),
|
|
3901
|
+
'evidence_ledger': ImportEvidenceLedgerToJSON(value['evidence_ledger']),
|
|
3902
|
+
};
|
|
3903
|
+
}
|
|
3904
|
+
/**
|
|
3905
|
+
* Check if a given object implements the LaunchpadImportRequest interface.
|
|
3906
|
+
*/
|
|
3907
|
+
export function instanceOfLaunchpadImportRequest(value) {
|
|
3908
|
+
if (!('repo_url' in value))
|
|
3909
|
+
return false;
|
|
3910
|
+
return true;
|
|
3911
|
+
}
|
|
3912
|
+
export function LaunchpadImportRequestFromJSON(json) {
|
|
3913
|
+
return LaunchpadImportRequestFromJSONTyped(json, false);
|
|
3914
|
+
}
|
|
3915
|
+
export function LaunchpadImportRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
3916
|
+
if (json == null) {
|
|
3917
|
+
return json;
|
|
3918
|
+
}
|
|
3919
|
+
return {
|
|
3920
|
+
'repo_url': json['repo_url'],
|
|
3921
|
+
'ref': json['ref'] == null ? undefined : json['ref'],
|
|
3922
|
+
'desired_target': json['desired_target'] == null ? undefined : json['desired_target'],
|
|
3923
|
+
};
|
|
3924
|
+
}
|
|
3925
|
+
export function LaunchpadImportRequestToJSON(value) {
|
|
3926
|
+
if (value == null) {
|
|
3927
|
+
return value;
|
|
3928
|
+
}
|
|
3929
|
+
return {
|
|
3930
|
+
'repo_url': value['repo_url'],
|
|
3931
|
+
'ref': value['ref'],
|
|
3932
|
+
'desired_target': value['desired_target'],
|
|
3933
|
+
};
|
|
3934
|
+
}
|
|
3935
|
+
/**
|
|
3936
|
+
* Check if a given object implements the LaunchpadMCPServer interface.
|
|
3937
|
+
*/
|
|
3938
|
+
export function instanceOfLaunchpadMCPServer(value) {
|
|
3939
|
+
return true;
|
|
3940
|
+
}
|
|
3941
|
+
export function LaunchpadMCPServerFromJSON(json) {
|
|
3942
|
+
return LaunchpadMCPServerFromJSONTyped(json, false);
|
|
3943
|
+
}
|
|
3944
|
+
export function LaunchpadMCPServerFromJSONTyped(json, ignoreDiscriminator) {
|
|
3945
|
+
if (json == null) {
|
|
3946
|
+
return json;
|
|
3947
|
+
}
|
|
3948
|
+
return {
|
|
3949
|
+
...json,
|
|
3950
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
3951
|
+
'endpoint': json['endpoint'] == null ? undefined : json['endpoint'],
|
|
3952
|
+
'transport': json['transport'] == null ? undefined : json['transport'],
|
|
3953
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
3954
|
+
'risk_class': json['risk_class'] == null ? undefined : json['risk_class'],
|
|
3955
|
+
'tools': json['tools'] == null ? undefined : json['tools'],
|
|
3956
|
+
'receipt_ref': json['receipt_ref'] == null ? undefined : json['receipt_ref'],
|
|
3957
|
+
};
|
|
3958
|
+
}
|
|
3959
|
+
export function LaunchpadMCPServerToJSON(value) {
|
|
3960
|
+
if (value == null) {
|
|
3961
|
+
return value;
|
|
3962
|
+
}
|
|
3963
|
+
return {
|
|
3964
|
+
...value,
|
|
3965
|
+
'id': value['id'],
|
|
3966
|
+
'endpoint': value['endpoint'],
|
|
3967
|
+
'transport': value['transport'],
|
|
3968
|
+
'status': value['status'],
|
|
3969
|
+
'risk_class': value['risk_class'],
|
|
3970
|
+
'tools': value['tools'],
|
|
3971
|
+
'receipt_ref': value['receipt_ref'],
|
|
3972
|
+
};
|
|
3973
|
+
}
|
|
3974
|
+
/**
|
|
3975
|
+
* Check if a given object implements the LaunchpadMatrixCell interface.
|
|
3976
|
+
*/
|
|
3977
|
+
export function instanceOfLaunchpadMatrixCell(value) {
|
|
3978
|
+
if (!('app_id' in value))
|
|
3979
|
+
return false;
|
|
3980
|
+
if (!('substrate_id' in value))
|
|
3981
|
+
return false;
|
|
3982
|
+
if (!('launchable' in value))
|
|
3983
|
+
return false;
|
|
3984
|
+
if (!('verdict' in value))
|
|
3985
|
+
return false;
|
|
3986
|
+
if (!('reason' in value))
|
|
3987
|
+
return false;
|
|
3988
|
+
if (!('availability' in value))
|
|
3989
|
+
return false;
|
|
3990
|
+
return true;
|
|
3991
|
+
}
|
|
3992
|
+
export function LaunchpadMatrixCellFromJSON(json) {
|
|
3993
|
+
return LaunchpadMatrixCellFromJSONTyped(json, false);
|
|
3994
|
+
}
|
|
3995
|
+
export function LaunchpadMatrixCellFromJSONTyped(json, ignoreDiscriminator) {
|
|
3996
|
+
if (json == null) {
|
|
3997
|
+
return json;
|
|
3998
|
+
}
|
|
3999
|
+
return {
|
|
4000
|
+
...json,
|
|
4001
|
+
'app_id': json['app_id'],
|
|
4002
|
+
'substrate_id': json['substrate_id'],
|
|
4003
|
+
'launchable': json['launchable'],
|
|
4004
|
+
'verdict': json['verdict'],
|
|
4005
|
+
'reason': json['reason'],
|
|
4006
|
+
'availability': json['availability'],
|
|
4007
|
+
'user_state': json['user_state'] == null ? undefined : json['user_state'],
|
|
4008
|
+
'required_capability': json['required_capability'] == null ? undefined : json['required_capability'],
|
|
4009
|
+
'upgrade_reason': json['upgrade_reason'] == null ? undefined : json['upgrade_reason'],
|
|
4010
|
+
'entitlement_decision': json['entitlement_decision'] == null ? undefined : EntitlementDecisionFromJSON(json['entitlement_decision']),
|
|
4011
|
+
'action_states': json['action_states'] == null ? undefined : json['action_states'],
|
|
4012
|
+
};
|
|
4013
|
+
}
|
|
4014
|
+
export function LaunchpadMatrixCellToJSON(value) {
|
|
4015
|
+
if (value == null) {
|
|
4016
|
+
return value;
|
|
4017
|
+
}
|
|
4018
|
+
return {
|
|
4019
|
+
...value,
|
|
4020
|
+
'app_id': value['app_id'],
|
|
4021
|
+
'substrate_id': value['substrate_id'],
|
|
4022
|
+
'launchable': value['launchable'],
|
|
4023
|
+
'verdict': value['verdict'],
|
|
4024
|
+
'reason': value['reason'],
|
|
4025
|
+
'availability': value['availability'],
|
|
4026
|
+
'user_state': value['user_state'],
|
|
4027
|
+
'required_capability': value['required_capability'],
|
|
4028
|
+
'upgrade_reason': value['upgrade_reason'],
|
|
4029
|
+
'entitlement_decision': EntitlementDecisionToJSON(value['entitlement_decision']),
|
|
4030
|
+
'action_states': value['action_states'],
|
|
4031
|
+
};
|
|
4032
|
+
}
|
|
4033
|
+
/**
|
|
4034
|
+
* Check if a given object implements the LaunchpadPlanRequest interface.
|
|
4035
|
+
*/
|
|
4036
|
+
export function instanceOfLaunchpadPlanRequest(value) {
|
|
4037
|
+
if (!('app_id' in value))
|
|
4038
|
+
return false;
|
|
4039
|
+
if (!('substrate_id' in value))
|
|
4040
|
+
return false;
|
|
4041
|
+
return true;
|
|
4042
|
+
}
|
|
4043
|
+
export function LaunchpadPlanRequestFromJSON(json) {
|
|
4044
|
+
return LaunchpadPlanRequestFromJSONTyped(json, false);
|
|
4045
|
+
}
|
|
4046
|
+
export function LaunchpadPlanRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
4047
|
+
if (json == null) {
|
|
4048
|
+
return json;
|
|
4049
|
+
}
|
|
4050
|
+
return {
|
|
4051
|
+
'app_id': json['app_id'],
|
|
4052
|
+
'substrate_id': json['substrate_id'],
|
|
4053
|
+
'principal': json['principal'] == null ? undefined : json['principal'],
|
|
4054
|
+
};
|
|
4055
|
+
}
|
|
4056
|
+
export function LaunchpadPlanRequestToJSON(value) {
|
|
4057
|
+
if (value == null) {
|
|
4058
|
+
return value;
|
|
4059
|
+
}
|
|
4060
|
+
return {
|
|
4061
|
+
'app_id': value['app_id'],
|
|
4062
|
+
'substrate_id': value['substrate_id'],
|
|
4063
|
+
'principal': value['principal'],
|
|
4064
|
+
};
|
|
4065
|
+
}
|
|
4066
|
+
/**
|
|
4067
|
+
* Check if a given object implements the LaunchpadPlanResponse interface.
|
|
4068
|
+
*/
|
|
4069
|
+
export function instanceOfLaunchpadPlanResponse(value) {
|
|
4070
|
+
return true;
|
|
4071
|
+
}
|
|
4072
|
+
export function LaunchpadPlanResponseFromJSON(json) {
|
|
4073
|
+
return LaunchpadPlanResponseFromJSONTyped(json, false);
|
|
4074
|
+
}
|
|
4075
|
+
export function LaunchpadPlanResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
4076
|
+
if (json == null) {
|
|
4077
|
+
return json;
|
|
4078
|
+
}
|
|
4079
|
+
return {
|
|
4080
|
+
...json,
|
|
4081
|
+
'launch_id': json['launch_id'] == null ? undefined : json['launch_id'],
|
|
4082
|
+
'app_id': json['app_id'] == null ? undefined : json['app_id'],
|
|
4083
|
+
'substrate_id': json['substrate_id'] == null ? undefined : json['substrate_id'],
|
|
4084
|
+
'state': json['state'] == null ? undefined : json['state'],
|
|
4085
|
+
'kernel_verdict': json['kernel_verdict'] == null ? undefined : json['kernel_verdict'],
|
|
4086
|
+
'reason': json['reason'] == null ? undefined : json['reason'],
|
|
4087
|
+
'reason_code': json['reason_code'] == null ? undefined : json['reason_code'],
|
|
4088
|
+
'plan_hash': json['plan_hash'] == null ? undefined : json['plan_hash'],
|
|
4089
|
+
'user_state': json['user_state'] == null ? undefined : json['user_state'],
|
|
4090
|
+
'required_capability': json['required_capability'] == null ? undefined : json['required_capability'],
|
|
4091
|
+
'upgrade_reason': json['upgrade_reason'] == null ? undefined : json['upgrade_reason'],
|
|
4092
|
+
'entitlement_decision': json['entitlement_decision'] == null ? undefined : EntitlementDecisionFromJSON(json['entitlement_decision']),
|
|
4093
|
+
'action_states': json['action_states'] == null ? undefined : json['action_states'],
|
|
4094
|
+
};
|
|
4095
|
+
}
|
|
4096
|
+
export function LaunchpadPlanResponseToJSON(value) {
|
|
4097
|
+
if (value == null) {
|
|
4098
|
+
return value;
|
|
4099
|
+
}
|
|
4100
|
+
return {
|
|
4101
|
+
...value,
|
|
4102
|
+
'launch_id': value['launch_id'],
|
|
4103
|
+
'app_id': value['app_id'],
|
|
4104
|
+
'substrate_id': value['substrate_id'],
|
|
4105
|
+
'state': value['state'],
|
|
4106
|
+
'kernel_verdict': value['kernel_verdict'],
|
|
4107
|
+
'reason': value['reason'],
|
|
4108
|
+
'reason_code': value['reason_code'],
|
|
4109
|
+
'plan_hash': value['plan_hash'],
|
|
4110
|
+
'user_state': value['user_state'],
|
|
4111
|
+
'required_capability': value['required_capability'],
|
|
4112
|
+
'upgrade_reason': value['upgrade_reason'],
|
|
4113
|
+
'entitlement_decision': EntitlementDecisionToJSON(value['entitlement_decision']),
|
|
4114
|
+
'action_states': value['action_states'],
|
|
4115
|
+
};
|
|
4116
|
+
}
|
|
4117
|
+
/**
|
|
4118
|
+
* Check if a given object implements the LaunchpadPolicySimulation interface.
|
|
4119
|
+
*/
|
|
4120
|
+
export function instanceOfLaunchpadPolicySimulation(value) {
|
|
4121
|
+
return true;
|
|
4122
|
+
}
|
|
4123
|
+
export function LaunchpadPolicySimulationFromJSON(json) {
|
|
4124
|
+
return LaunchpadPolicySimulationFromJSONTyped(json, false);
|
|
4125
|
+
}
|
|
4126
|
+
export function LaunchpadPolicySimulationFromJSONTyped(json, ignoreDiscriminator) {
|
|
4127
|
+
if (json == null) {
|
|
4128
|
+
return json;
|
|
4129
|
+
}
|
|
4130
|
+
return {
|
|
4131
|
+
...json,
|
|
4132
|
+
'app_id': json['app_id'] == null ? undefined : json['app_id'],
|
|
4133
|
+
'verdict': json['verdict'] == null ? undefined : json['verdict'],
|
|
4134
|
+
'reason_code': json['reason_code'] == null ? undefined : json['reason_code'],
|
|
4135
|
+
'plain_english': json['plain_english'] == null ? undefined : json['plain_english'],
|
|
4136
|
+
'structured': json['structured'] == null ? undefined : json['structured'],
|
|
4137
|
+
'diff': json['diff'] == null ? undefined : json['diff'],
|
|
4138
|
+
'raw': json['raw'] == null ? undefined : json['raw'],
|
|
4139
|
+
'receipt_ref': json['receipt_ref'] == null ? undefined : json['receipt_ref'],
|
|
4140
|
+
'proof_status': json['proof_status'] == null ? undefined : json['proof_status'],
|
|
4141
|
+
'cli_equivalent': json['cli_equivalent'] == null ? undefined : json['cli_equivalent'],
|
|
4142
|
+
'fix_actions': json['fix_actions'] == null ? undefined : (json['fix_actions'].map(LaunchpadFixActionFromJSON)),
|
|
4143
|
+
};
|
|
4144
|
+
}
|
|
4145
|
+
export function LaunchpadPolicySimulationToJSON(value) {
|
|
4146
|
+
if (value == null) {
|
|
4147
|
+
return value;
|
|
4148
|
+
}
|
|
4149
|
+
return {
|
|
4150
|
+
...value,
|
|
4151
|
+
'app_id': value['app_id'],
|
|
4152
|
+
'verdict': value['verdict'],
|
|
4153
|
+
'reason_code': value['reason_code'],
|
|
4154
|
+
'plain_english': value['plain_english'],
|
|
4155
|
+
'structured': value['structured'],
|
|
4156
|
+
'diff': value['diff'],
|
|
4157
|
+
'raw': value['raw'],
|
|
4158
|
+
'receipt_ref': value['receipt_ref'],
|
|
4159
|
+
'proof_status': value['proof_status'],
|
|
4160
|
+
'cli_equivalent': value['cli_equivalent'],
|
|
4161
|
+
'fix_actions': value['fix_actions'] == null ? undefined : (value['fix_actions'].map(LaunchpadFixActionToJSON)),
|
|
4162
|
+
};
|
|
4163
|
+
}
|
|
4164
|
+
/**
|
|
4165
|
+
* Check if a given object implements the LaunchpadRun interface.
|
|
4166
|
+
*/
|
|
4167
|
+
export function instanceOfLaunchpadRun(value) {
|
|
4168
|
+
return true;
|
|
4169
|
+
}
|
|
4170
|
+
export function LaunchpadRunFromJSON(json) {
|
|
4171
|
+
return LaunchpadRunFromJSONTyped(json, false);
|
|
4172
|
+
}
|
|
4173
|
+
export function LaunchpadRunFromJSONTyped(json, ignoreDiscriminator) {
|
|
4174
|
+
if (json == null) {
|
|
4175
|
+
return json;
|
|
4176
|
+
}
|
|
4177
|
+
return {
|
|
4178
|
+
...json,
|
|
4179
|
+
'launch_id': json['launch_id'] == null ? undefined : json['launch_id'],
|
|
4180
|
+
'run_id': json['run_id'] == null ? undefined : json['run_id'],
|
|
4181
|
+
'app_id': json['app_id'] == null ? undefined : json['app_id'],
|
|
4182
|
+
'substrate_id': json['substrate_id'] == null ? undefined : json['substrate_id'],
|
|
4183
|
+
'state': json['state'] == null ? undefined : json['state'],
|
|
4184
|
+
'kernel_verdict': json['kernel_verdict'] == null ? undefined : json['kernel_verdict'],
|
|
4185
|
+
'reason': json['reason'] == null ? undefined : json['reason'],
|
|
4186
|
+
'reason_code': json['reason_code'] == null ? undefined : json['reason_code'],
|
|
4187
|
+
'plan_hash': json['plan_hash'] == null ? undefined : json['plan_hash'],
|
|
4188
|
+
'launchplan_hash': json['launchplan_hash'] == null ? undefined : json['launchplan_hash'],
|
|
4189
|
+
'install_receipt_ref': json['install_receipt_ref'] == null ? undefined : json['install_receipt_ref'],
|
|
4190
|
+
'launch_receipt_ref': json['launch_receipt_ref'] == null ? undefined : json['launch_receipt_ref'],
|
|
4191
|
+
'health_receipt_ref': json['health_receipt_ref'] == null ? undefined : json['health_receipt_ref'],
|
|
4192
|
+
'teardown_receipt_ref': json['teardown_receipt_ref'] == null ? undefined : json['teardown_receipt_ref'],
|
|
4193
|
+
'evidence_pack_refs': json['evidence_pack_refs'] == null ? undefined : json['evidence_pack_refs'],
|
|
4194
|
+
'secret_grant_refs': json['secret_grant_refs'] == null ? undefined : json['secret_grant_refs'],
|
|
4195
|
+
'start_receipt_refs': json['start_receipt_refs'] == null ? undefined : json['start_receipt_refs'],
|
|
4196
|
+
'verification_command': json['verification_command'] == null ? undefined : json['verification_command'],
|
|
4197
|
+
'teardown_command': json['teardown_command'] == null ? undefined : json['teardown_command'],
|
|
4198
|
+
'runtime_handles': json['runtime_handles'] == null ? undefined : json['runtime_handles'],
|
|
4199
|
+
};
|
|
4200
|
+
}
|
|
4201
|
+
export function LaunchpadRunToJSON(value) {
|
|
4202
|
+
if (value == null) {
|
|
4203
|
+
return value;
|
|
4204
|
+
}
|
|
4205
|
+
return {
|
|
4206
|
+
...value,
|
|
4207
|
+
'launch_id': value['launch_id'],
|
|
4208
|
+
'run_id': value['run_id'],
|
|
4209
|
+
'app_id': value['app_id'],
|
|
4210
|
+
'substrate_id': value['substrate_id'],
|
|
4211
|
+
'state': value['state'],
|
|
4212
|
+
'kernel_verdict': value['kernel_verdict'],
|
|
4213
|
+
'reason': value['reason'],
|
|
4214
|
+
'reason_code': value['reason_code'],
|
|
4215
|
+
'plan_hash': value['plan_hash'],
|
|
4216
|
+
'launchplan_hash': value['launchplan_hash'],
|
|
4217
|
+
'install_receipt_ref': value['install_receipt_ref'],
|
|
4218
|
+
'launch_receipt_ref': value['launch_receipt_ref'],
|
|
4219
|
+
'health_receipt_ref': value['health_receipt_ref'],
|
|
4220
|
+
'teardown_receipt_ref': value['teardown_receipt_ref'],
|
|
4221
|
+
'evidence_pack_refs': value['evidence_pack_refs'],
|
|
4222
|
+
'secret_grant_refs': value['secret_grant_refs'],
|
|
4223
|
+
'start_receipt_refs': value['start_receipt_refs'],
|
|
4224
|
+
'verification_command': value['verification_command'],
|
|
4225
|
+
'teardown_command': value['teardown_command'],
|
|
4226
|
+
'runtime_handles': value['runtime_handles'],
|
|
4227
|
+
};
|
|
4228
|
+
}
|
|
4229
|
+
/**
|
|
4230
|
+
* Check if a given object implements the LaunchpadRunDetail interface.
|
|
4231
|
+
*/
|
|
4232
|
+
export function instanceOfLaunchpadRunDetail(value) {
|
|
4233
|
+
if (!('run' in value))
|
|
4234
|
+
return false;
|
|
4235
|
+
if (!('instance' in value))
|
|
4236
|
+
return false;
|
|
4237
|
+
if (!('gates' in value))
|
|
4238
|
+
return false;
|
|
4239
|
+
if (!('events' in value))
|
|
4240
|
+
return false;
|
|
4241
|
+
return true;
|
|
4242
|
+
}
|
|
4243
|
+
export function LaunchpadRunDetailFromJSON(json) {
|
|
4244
|
+
return LaunchpadRunDetailFromJSONTyped(json, false);
|
|
4245
|
+
}
|
|
4246
|
+
export function LaunchpadRunDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
4247
|
+
if (json == null) {
|
|
4248
|
+
return json;
|
|
4249
|
+
}
|
|
4250
|
+
return {
|
|
4251
|
+
...json,
|
|
4252
|
+
'run': LaunchpadRunFromJSON(json['run']),
|
|
4253
|
+
'app': json['app'] == null ? undefined : LaunchpadAppFromJSON(json['app']),
|
|
4254
|
+
'instance': LaunchpadRuntimeInstanceFromJSON(json['instance']),
|
|
4255
|
+
'gates': (json['gates'].map(LaunchpadGateResultFromJSON)),
|
|
4256
|
+
'events': (json['events'].map(LaunchpadRunEventFromJSON)),
|
|
4257
|
+
'offline_verification': json['offline_verification'] == null ? undefined : json['offline_verification'],
|
|
4258
|
+
};
|
|
4259
|
+
}
|
|
4260
|
+
export function LaunchpadRunDetailToJSON(value) {
|
|
4261
|
+
if (value == null) {
|
|
4262
|
+
return value;
|
|
4263
|
+
}
|
|
4264
|
+
return {
|
|
4265
|
+
...value,
|
|
4266
|
+
'run': LaunchpadRunToJSON(value['run']),
|
|
4267
|
+
'app': LaunchpadAppToJSON(value['app']),
|
|
4268
|
+
'instance': LaunchpadRuntimeInstanceToJSON(value['instance']),
|
|
4269
|
+
'gates': (value['gates'].map(LaunchpadGateResultToJSON)),
|
|
4270
|
+
'events': (value['events'].map(LaunchpadRunEventToJSON)),
|
|
4271
|
+
'offline_verification': value['offline_verification'],
|
|
4272
|
+
};
|
|
4273
|
+
}
|
|
4274
|
+
/**
|
|
4275
|
+
* Check if a given object implements the LaunchpadRunEvent interface.
|
|
4276
|
+
*/
|
|
4277
|
+
export function instanceOfLaunchpadRunEvent(value) {
|
|
4278
|
+
if (!('run_id' in value))
|
|
4279
|
+
return false;
|
|
4280
|
+
if (!('stage' in value))
|
|
4281
|
+
return false;
|
|
4282
|
+
if (!('verdict' in value))
|
|
4283
|
+
return false;
|
|
4284
|
+
if (!('proof_status' in value))
|
|
4285
|
+
return false;
|
|
4286
|
+
return true;
|
|
4287
|
+
}
|
|
4288
|
+
export function LaunchpadRunEventFromJSON(json) {
|
|
4289
|
+
return LaunchpadRunEventFromJSONTyped(json, false);
|
|
4290
|
+
}
|
|
4291
|
+
export function LaunchpadRunEventFromJSONTyped(json, ignoreDiscriminator) {
|
|
4292
|
+
if (json == null) {
|
|
4293
|
+
return json;
|
|
4294
|
+
}
|
|
4295
|
+
return {
|
|
4296
|
+
...json,
|
|
4297
|
+
'run_id': json['run_id'],
|
|
4298
|
+
'stage': json['stage'],
|
|
4299
|
+
'verdict': json['verdict'],
|
|
4300
|
+
'reason_code': json['reason_code'] == null ? undefined : json['reason_code'],
|
|
4301
|
+
'receipt_ref': json['receipt_ref'] == null ? undefined : json['receipt_ref'],
|
|
4302
|
+
'proofgraph_node': json['proofgraph_node'] == null ? undefined : json['proofgraph_node'],
|
|
4303
|
+
'evidence_refs': json['evidence_refs'] == null ? undefined : json['evidence_refs'],
|
|
4304
|
+
'raw_payload_ref': json['raw_payload_ref'] == null ? undefined : json['raw_payload_ref'],
|
|
4305
|
+
'human_summary': json['human_summary'] == null ? undefined : json['human_summary'],
|
|
4306
|
+
'why': json['why'] == null ? undefined : json['why'],
|
|
4307
|
+
'proof_status': json['proof_status'],
|
|
4308
|
+
'receipt_required': json['receipt_required'] == null ? undefined : json['receipt_required'],
|
|
4309
|
+
'cli_equivalent': json['cli_equivalent'] == null ? undefined : json['cli_equivalent'],
|
|
4310
|
+
'fix_actions': json['fix_actions'] == null ? undefined : (json['fix_actions'].map(LaunchpadFixActionFromJSON)),
|
|
4311
|
+
'created_at': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
|
|
4312
|
+
};
|
|
4313
|
+
}
|
|
4314
|
+
export function LaunchpadRunEventToJSON(value) {
|
|
4315
|
+
if (value == null) {
|
|
4316
|
+
return value;
|
|
4317
|
+
}
|
|
4318
|
+
return {
|
|
4319
|
+
...value,
|
|
4320
|
+
'run_id': value['run_id'],
|
|
4321
|
+
'stage': value['stage'],
|
|
4322
|
+
'verdict': value['verdict'],
|
|
4323
|
+
'reason_code': value['reason_code'],
|
|
4324
|
+
'receipt_ref': value['receipt_ref'],
|
|
4325
|
+
'proofgraph_node': value['proofgraph_node'],
|
|
4326
|
+
'evidence_refs': value['evidence_refs'],
|
|
4327
|
+
'raw_payload_ref': value['raw_payload_ref'],
|
|
4328
|
+
'human_summary': value['human_summary'],
|
|
4329
|
+
'why': value['why'],
|
|
4330
|
+
'proof_status': value['proof_status'],
|
|
4331
|
+
'receipt_required': value['receipt_required'],
|
|
4332
|
+
'cli_equivalent': value['cli_equivalent'],
|
|
4333
|
+
'fix_actions': value['fix_actions'] == null ? undefined : (value['fix_actions'].map(LaunchpadFixActionToJSON)),
|
|
4334
|
+
'created_at': value['created_at'] == null ? undefined : ((value['created_at']).toISOString()),
|
|
4335
|
+
};
|
|
4336
|
+
}
|
|
4337
|
+
/**
|
|
4338
|
+
* Check if a given object implements the LaunchpadRuntimeInstance interface.
|
|
4339
|
+
*/
|
|
4340
|
+
export function instanceOfLaunchpadRuntimeInstance(value) {
|
|
4341
|
+
if (!('run_id' in value))
|
|
4342
|
+
return false;
|
|
4343
|
+
if (!('state' in value))
|
|
4344
|
+
return false;
|
|
4345
|
+
return true;
|
|
4346
|
+
}
|
|
4347
|
+
export function LaunchpadRuntimeInstanceFromJSON(json) {
|
|
4348
|
+
return LaunchpadRuntimeInstanceFromJSONTyped(json, false);
|
|
4349
|
+
}
|
|
4350
|
+
export function LaunchpadRuntimeInstanceFromJSONTyped(json, ignoreDiscriminator) {
|
|
4351
|
+
if (json == null) {
|
|
4352
|
+
return json;
|
|
4353
|
+
}
|
|
4354
|
+
return {
|
|
4355
|
+
...json,
|
|
4356
|
+
'run_id': json['run_id'],
|
|
4357
|
+
'container_id': json['container_id'] == null ? undefined : json['container_id'],
|
|
4358
|
+
'launchplan_hash': json['launchplan_hash'] == null ? undefined : json['launchplan_hash'],
|
|
4359
|
+
'state': json['state'],
|
|
4360
|
+
'verdict': json['verdict'] == null ? undefined : json['verdict'],
|
|
4361
|
+
'active_grants': json['active_grants'] == null ? undefined : json['active_grants'],
|
|
4362
|
+
'receipt_refs': json['receipt_refs'] == null ? undefined : json['receipt_refs'],
|
|
4363
|
+
'evidencepack_ref': json['evidencepack_ref'] == null ? undefined : json['evidencepack_ref'],
|
|
4364
|
+
'offline_verify_command': json['offline_verify_command'] == null ? undefined : json['offline_verify_command'],
|
|
4365
|
+
'teardown_command': json['teardown_command'] == null ? undefined : json['teardown_command'],
|
|
4366
|
+
'sandbox_grant': json['sandbox_grant'] == null ? undefined : LaunchpadSandboxGrantFromJSON(json['sandbox_grant']),
|
|
4367
|
+
'cli_equivalent': json['cli_equivalent'] == null ? undefined : json['cli_equivalent'],
|
|
4368
|
+
};
|
|
4369
|
+
}
|
|
4370
|
+
export function LaunchpadRuntimeInstanceToJSON(value) {
|
|
4371
|
+
if (value == null) {
|
|
4372
|
+
return value;
|
|
4373
|
+
}
|
|
4374
|
+
return {
|
|
4375
|
+
...value,
|
|
4376
|
+
'run_id': value['run_id'],
|
|
4377
|
+
'container_id': value['container_id'],
|
|
4378
|
+
'launchplan_hash': value['launchplan_hash'],
|
|
4379
|
+
'state': value['state'],
|
|
4380
|
+
'verdict': value['verdict'],
|
|
4381
|
+
'active_grants': value['active_grants'],
|
|
4382
|
+
'receipt_refs': value['receipt_refs'],
|
|
4383
|
+
'evidencepack_ref': value['evidencepack_ref'],
|
|
4384
|
+
'offline_verify_command': value['offline_verify_command'],
|
|
4385
|
+
'teardown_command': value['teardown_command'],
|
|
4386
|
+
'sandbox_grant': LaunchpadSandboxGrantToJSON(value['sandbox_grant']),
|
|
4387
|
+
'cli_equivalent': value['cli_equivalent'],
|
|
4388
|
+
};
|
|
4389
|
+
}
|
|
4390
|
+
/**
|
|
4391
|
+
* Check if a given object implements the LaunchpadSandboxGrant interface.
|
|
4392
|
+
*/
|
|
4393
|
+
export function instanceOfLaunchpadSandboxGrant(value) {
|
|
4394
|
+
return true;
|
|
4395
|
+
}
|
|
4396
|
+
export function LaunchpadSandboxGrantFromJSON(json) {
|
|
4397
|
+
return LaunchpadSandboxGrantFromJSONTyped(json, false);
|
|
4398
|
+
}
|
|
4399
|
+
export function LaunchpadSandboxGrantFromJSONTyped(json, ignoreDiscriminator) {
|
|
4400
|
+
if (json == null) {
|
|
4401
|
+
return json;
|
|
4402
|
+
}
|
|
4403
|
+
return {
|
|
4404
|
+
...json,
|
|
4405
|
+
'backend_profile': json['backend_profile'] == null ? undefined : json['backend_profile'],
|
|
4406
|
+
'runtime': json['runtime'] == null ? undefined : json['runtime'],
|
|
4407
|
+
'runtime_version': json['runtime_version'] == null ? undefined : json['runtime_version'],
|
|
4408
|
+
'image_digest': json['image_digest'] == null ? undefined : json['image_digest'],
|
|
4409
|
+
'filesystem_preopens': json['filesystem_preopens'] == null ? undefined : json['filesystem_preopens'],
|
|
4410
|
+
'network_policy': json['network_policy'] == null ? undefined : json['network_policy'],
|
|
4411
|
+
'env': json['env'] == null ? undefined : json['env'],
|
|
4412
|
+
'resource_limits': json['resource_limits'] == null ? undefined : json['resource_limits'],
|
|
4413
|
+
'policy_epoch': json['policy_epoch'] == null ? undefined : json['policy_epoch'],
|
|
4414
|
+
'grant_hash': json['grant_hash'] == null ? undefined : json['grant_hash'],
|
|
4415
|
+
'proof_status': json['proof_status'] == null ? undefined : json['proof_status'],
|
|
4416
|
+
};
|
|
4417
|
+
}
|
|
4418
|
+
export function LaunchpadSandboxGrantToJSON(value) {
|
|
4419
|
+
if (value == null) {
|
|
4420
|
+
return value;
|
|
4421
|
+
}
|
|
4422
|
+
return {
|
|
4423
|
+
...value,
|
|
4424
|
+
'backend_profile': value['backend_profile'],
|
|
4425
|
+
'runtime': value['runtime'],
|
|
4426
|
+
'runtime_version': value['runtime_version'],
|
|
4427
|
+
'image_digest': value['image_digest'],
|
|
4428
|
+
'filesystem_preopens': value['filesystem_preopens'],
|
|
4429
|
+
'network_policy': value['network_policy'],
|
|
4430
|
+
'env': value['env'],
|
|
4431
|
+
'resource_limits': value['resource_limits'],
|
|
4432
|
+
'policy_epoch': value['policy_epoch'],
|
|
4433
|
+
'grant_hash': value['grant_hash'],
|
|
4434
|
+
'proof_status': value['proof_status'],
|
|
4435
|
+
};
|
|
4436
|
+
}
|
|
4437
|
+
/**
|
|
4438
|
+
* Check if a given object implements the LaunchpadSecretGrant interface.
|
|
4439
|
+
*/
|
|
4440
|
+
export function instanceOfLaunchpadSecretGrant(value) {
|
|
4441
|
+
if (!('name' in value))
|
|
4442
|
+
return false;
|
|
4443
|
+
if (!('status' in value))
|
|
4444
|
+
return false;
|
|
4445
|
+
return true;
|
|
4446
|
+
}
|
|
4447
|
+
export function LaunchpadSecretGrantFromJSON(json) {
|
|
4448
|
+
return LaunchpadSecretGrantFromJSONTyped(json, false);
|
|
4449
|
+
}
|
|
4450
|
+
export function LaunchpadSecretGrantFromJSONTyped(json, ignoreDiscriminator) {
|
|
4451
|
+
if (json == null) {
|
|
4452
|
+
return json;
|
|
4453
|
+
}
|
|
4454
|
+
return {
|
|
4455
|
+
...json,
|
|
4456
|
+
'name': json['name'],
|
|
4457
|
+
'required': json['required'] == null ? undefined : json['required'],
|
|
4458
|
+
'provider': json['provider'] == null ? undefined : json['provider'],
|
|
4459
|
+
'scope': json['scope'] == null ? undefined : json['scope'],
|
|
4460
|
+
'status': json['status'],
|
|
4461
|
+
'launch_impact': json['launch_impact'] == null ? undefined : json['launch_impact'],
|
|
4462
|
+
'grant_ref': json['grant_ref'] == null ? undefined : json['grant_ref'],
|
|
4463
|
+
'receipt_ref': json['receipt_ref'] == null ? undefined : json['receipt_ref'],
|
|
4464
|
+
'value_env': json['value_env'] == null ? undefined : json['value_env'],
|
|
4465
|
+
};
|
|
4466
|
+
}
|
|
4467
|
+
export function LaunchpadSecretGrantToJSON(value) {
|
|
4468
|
+
if (value == null) {
|
|
4469
|
+
return value;
|
|
4470
|
+
}
|
|
4471
|
+
return {
|
|
4472
|
+
...value,
|
|
4473
|
+
'name': value['name'],
|
|
4474
|
+
'required': value['required'],
|
|
4475
|
+
'provider': value['provider'],
|
|
4476
|
+
'scope': value['scope'],
|
|
4477
|
+
'status': value['status'],
|
|
4478
|
+
'launch_impact': value['launch_impact'],
|
|
4479
|
+
'grant_ref': value['grant_ref'],
|
|
4480
|
+
'receipt_ref': value['receipt_ref'],
|
|
4481
|
+
'value_env': value['value_env'],
|
|
4482
|
+
};
|
|
4483
|
+
}
|
|
4484
|
+
/**
|
|
4485
|
+
* Check if a given object implements the LaunchpadSubstrate interface.
|
|
4486
|
+
*/
|
|
4487
|
+
export function instanceOfLaunchpadSubstrate(value) {
|
|
4488
|
+
if (!('id' in value))
|
|
4489
|
+
return false;
|
|
4490
|
+
if (!('name' in value))
|
|
4491
|
+
return false;
|
|
4492
|
+
return true;
|
|
4493
|
+
}
|
|
4494
|
+
export function LaunchpadSubstrateFromJSON(json) {
|
|
4495
|
+
return LaunchpadSubstrateFromJSONTyped(json, false);
|
|
4496
|
+
}
|
|
4497
|
+
export function LaunchpadSubstrateFromJSONTyped(json, ignoreDiscriminator) {
|
|
4498
|
+
if (json == null) {
|
|
4499
|
+
return json;
|
|
4500
|
+
}
|
|
4501
|
+
return {
|
|
4502
|
+
...json,
|
|
4503
|
+
'id': json['id'],
|
|
4504
|
+
'name': json['name'],
|
|
4505
|
+
'kind': json['kind'] == null ? undefined : json['kind'],
|
|
4506
|
+
'availability': json['availability'] == null ? undefined : json['availability'],
|
|
4507
|
+
'default_dry_run': json['default_dry_run'] == null ? undefined : json['default_dry_run'],
|
|
4508
|
+
'blocked_reason': json['blocked_reason'] == null ? undefined : json['blocked_reason'],
|
|
4509
|
+
};
|
|
4510
|
+
}
|
|
4511
|
+
export function LaunchpadSubstrateToJSON(value) {
|
|
4512
|
+
if (value == null) {
|
|
4513
|
+
return value;
|
|
4514
|
+
}
|
|
4515
|
+
return {
|
|
4516
|
+
...value,
|
|
4517
|
+
'id': value['id'],
|
|
4518
|
+
'name': value['name'],
|
|
4519
|
+
'kind': value['kind'],
|
|
4520
|
+
'availability': value['availability'],
|
|
4521
|
+
'default_dry_run': value['default_dry_run'],
|
|
4522
|
+
'blocked_reason': value['blocked_reason'],
|
|
4523
|
+
};
|
|
4524
|
+
}
|
|
4525
|
+
/**
|
|
4526
|
+
* Check if a given object implements the ListConsoleSurfaces200Response interface.
|
|
4527
|
+
*/
|
|
4528
|
+
export function instanceOfListConsoleSurfaces200Response(value) {
|
|
4529
|
+
return true;
|
|
4530
|
+
}
|
|
4531
|
+
export function ListConsoleSurfaces200ResponseFromJSON(json) {
|
|
4532
|
+
return ListConsoleSurfaces200ResponseFromJSONTyped(json, false);
|
|
4533
|
+
}
|
|
4534
|
+
export function ListConsoleSurfaces200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
4535
|
+
if (json == null) {
|
|
4536
|
+
return json;
|
|
4537
|
+
}
|
|
4538
|
+
return {
|
|
4539
|
+
'surfaces': json['surfaces'] == null ? undefined : (json['surfaces'].map(ConsoleSurfaceRefFromJSON)),
|
|
4540
|
+
};
|
|
4541
|
+
}
|
|
4542
|
+
export function ListConsoleSurfaces200ResponseToJSON(value) {
|
|
4543
|
+
if (value == null) {
|
|
4544
|
+
return value;
|
|
4545
|
+
}
|
|
4546
|
+
return {
|
|
4547
|
+
'surfaces': value['surfaces'] == null ? undefined : (value['surfaces'].map(ConsoleSurfaceRefToJSON)),
|
|
4548
|
+
};
|
|
4549
|
+
}
|
|
4550
|
+
/**
|
|
4551
|
+
* Check if a given object implements the ListLaunchpadApps200Response interface.
|
|
4552
|
+
*/
|
|
4553
|
+
export function instanceOfListLaunchpadApps200Response(value) {
|
|
4554
|
+
if (!('apps' in value))
|
|
4555
|
+
return false;
|
|
4556
|
+
return true;
|
|
4557
|
+
}
|
|
4558
|
+
export function ListLaunchpadApps200ResponseFromJSON(json) {
|
|
4559
|
+
return ListLaunchpadApps200ResponseFromJSONTyped(json, false);
|
|
4560
|
+
}
|
|
4561
|
+
export function ListLaunchpadApps200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
4562
|
+
if (json == null) {
|
|
4563
|
+
return json;
|
|
4564
|
+
}
|
|
4565
|
+
return {
|
|
4566
|
+
'apps': (json['apps'].map(LaunchpadAppFromJSON)),
|
|
4567
|
+
};
|
|
4568
|
+
}
|
|
4569
|
+
export function ListLaunchpadApps200ResponseToJSON(value) {
|
|
4570
|
+
if (value == null) {
|
|
4571
|
+
return value;
|
|
4572
|
+
}
|
|
4573
|
+
return {
|
|
4574
|
+
'apps': (value['apps'].map(LaunchpadAppToJSON)),
|
|
4575
|
+
};
|
|
4576
|
+
}
|
|
4577
|
+
/**
|
|
4578
|
+
* Check if a given object implements the ListLaunchpadImports200Response interface.
|
|
4579
|
+
*/
|
|
4580
|
+
export function instanceOfListLaunchpadImports200Response(value) {
|
|
4581
|
+
if (!('imports' in value))
|
|
4582
|
+
return false;
|
|
4583
|
+
return true;
|
|
4584
|
+
}
|
|
4585
|
+
export function ListLaunchpadImports200ResponseFromJSON(json) {
|
|
4586
|
+
return ListLaunchpadImports200ResponseFromJSONTyped(json, false);
|
|
4587
|
+
}
|
|
4588
|
+
export function ListLaunchpadImports200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
4589
|
+
if (json == null) {
|
|
4590
|
+
return json;
|
|
4591
|
+
}
|
|
4592
|
+
return {
|
|
4593
|
+
'imports': (json['imports'].map(LaunchpadImportRecordFromJSON)),
|
|
4594
|
+
'cli_equivalent': json['cli_equivalent'] == null ? undefined : json['cli_equivalent'],
|
|
4595
|
+
};
|
|
4596
|
+
}
|
|
4597
|
+
export function ListLaunchpadImports200ResponseToJSON(value) {
|
|
4598
|
+
if (value == null) {
|
|
4599
|
+
return value;
|
|
4600
|
+
}
|
|
4601
|
+
return {
|
|
4602
|
+
'imports': (value['imports'].map(LaunchpadImportRecordToJSON)),
|
|
4603
|
+
'cli_equivalent': value['cli_equivalent'],
|
|
4604
|
+
};
|
|
4605
|
+
}
|
|
4606
|
+
/**
|
|
4607
|
+
* Check if a given object implements the ListLaunchpadRunEvents200Response interface.
|
|
4608
|
+
*/
|
|
4609
|
+
export function instanceOfListLaunchpadRunEvents200Response(value) {
|
|
4610
|
+
return true;
|
|
4611
|
+
}
|
|
4612
|
+
export function ListLaunchpadRunEvents200ResponseFromJSON(json) {
|
|
4613
|
+
return ListLaunchpadRunEvents200ResponseFromJSONTyped(json, false);
|
|
4614
|
+
}
|
|
4615
|
+
export function ListLaunchpadRunEvents200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
4616
|
+
if (json == null) {
|
|
4617
|
+
return json;
|
|
4618
|
+
}
|
|
4619
|
+
return {
|
|
4620
|
+
'events': json['events'] == null ? undefined : (json['events'].map(LaunchpadRunEventFromJSON)),
|
|
4621
|
+
};
|
|
4622
|
+
}
|
|
4623
|
+
export function ListLaunchpadRunEvents200ResponseToJSON(value) {
|
|
4624
|
+
if (value == null) {
|
|
4625
|
+
return value;
|
|
4626
|
+
}
|
|
4627
|
+
return {
|
|
4628
|
+
'events': value['events'] == null ? undefined : (value['events'].map(LaunchpadRunEventToJSON)),
|
|
4629
|
+
};
|
|
4630
|
+
}
|
|
4631
|
+
/**
|
|
4632
|
+
* Check if a given object implements the ListLaunchpadRuns200Response interface.
|
|
4633
|
+
*/
|
|
4634
|
+
export function instanceOfListLaunchpadRuns200Response(value) {
|
|
4635
|
+
return true;
|
|
4636
|
+
}
|
|
4637
|
+
export function ListLaunchpadRuns200ResponseFromJSON(json) {
|
|
4638
|
+
return ListLaunchpadRuns200ResponseFromJSONTyped(json, false);
|
|
4639
|
+
}
|
|
4640
|
+
export function ListLaunchpadRuns200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
4641
|
+
if (json == null) {
|
|
4642
|
+
return json;
|
|
4643
|
+
}
|
|
4644
|
+
return {
|
|
4645
|
+
'runs': json['runs'] == null ? undefined : (json['runs'].map(LaunchpadRunFromJSON)),
|
|
4646
|
+
'instances': json['instances'] == null ? undefined : (json['instances'].map(LaunchpadRuntimeInstanceFromJSON)),
|
|
4647
|
+
};
|
|
4648
|
+
}
|
|
4649
|
+
export function ListLaunchpadRuns200ResponseToJSON(value) {
|
|
4650
|
+
if (value == null) {
|
|
4651
|
+
return value;
|
|
4652
|
+
}
|
|
4653
|
+
return {
|
|
4654
|
+
'runs': value['runs'] == null ? undefined : (value['runs'].map(LaunchpadRunToJSON)),
|
|
4655
|
+
'instances': value['instances'] == null ? undefined : (value['instances'].map(LaunchpadRuntimeInstanceToJSON)),
|
|
4656
|
+
};
|
|
4657
|
+
}
|
|
4658
|
+
/**
|
|
4659
|
+
* Check if a given object implements the ListLaunchpadSecretGrants200Response interface.
|
|
4660
|
+
*/
|
|
4661
|
+
export function instanceOfListLaunchpadSecretGrants200Response(value) {
|
|
4662
|
+
return true;
|
|
4663
|
+
}
|
|
4664
|
+
export function ListLaunchpadSecretGrants200ResponseFromJSON(json) {
|
|
4665
|
+
return ListLaunchpadSecretGrants200ResponseFromJSONTyped(json, false);
|
|
4666
|
+
}
|
|
4667
|
+
export function ListLaunchpadSecretGrants200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
4668
|
+
if (json == null) {
|
|
4669
|
+
return json;
|
|
4670
|
+
}
|
|
4671
|
+
return {
|
|
4672
|
+
'secrets': json['secrets'] == null ? undefined : (json['secrets'].map(LaunchpadSecretGrantFromJSON)),
|
|
4673
|
+
};
|
|
4674
|
+
}
|
|
4675
|
+
export function ListLaunchpadSecretGrants200ResponseToJSON(value) {
|
|
4676
|
+
if (value == null) {
|
|
4677
|
+
return value;
|
|
4678
|
+
}
|
|
4679
|
+
return {
|
|
4680
|
+
'secrets': value['secrets'] == null ? undefined : (value['secrets'].map(LaunchpadSecretGrantToJSON)),
|
|
4681
|
+
};
|
|
4682
|
+
}
|
|
4683
|
+
/**
|
|
4684
|
+
* Check if a given object implements the ListLaunchpadSubstrates200Response interface.
|
|
4685
|
+
*/
|
|
4686
|
+
export function instanceOfListLaunchpadSubstrates200Response(value) {
|
|
4687
|
+
if (!('substrates' in value))
|
|
4688
|
+
return false;
|
|
4689
|
+
return true;
|
|
4690
|
+
}
|
|
4691
|
+
export function ListLaunchpadSubstrates200ResponseFromJSON(json) {
|
|
4692
|
+
return ListLaunchpadSubstrates200ResponseFromJSONTyped(json, false);
|
|
4693
|
+
}
|
|
4694
|
+
export function ListLaunchpadSubstrates200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
2228
4695
|
if (json == null) {
|
|
2229
4696
|
return json;
|
|
2230
4697
|
}
|
|
2231
4698
|
return {
|
|
2232
|
-
'
|
|
4699
|
+
'substrates': (json['substrates'].map(LaunchpadSubstrateFromJSON)),
|
|
2233
4700
|
};
|
|
2234
4701
|
}
|
|
2235
|
-
export function
|
|
4702
|
+
export function ListLaunchpadSubstrates200ResponseToJSON(value) {
|
|
2236
4703
|
if (value == null) {
|
|
2237
4704
|
return value;
|
|
2238
4705
|
}
|
|
2239
4706
|
return {
|
|
2240
|
-
'
|
|
4707
|
+
'substrates': (value['substrates'].map(LaunchpadSubstrateToJSON)),
|
|
2241
4708
|
};
|
|
2242
4709
|
}
|
|
2243
4710
|
/**
|
|
@@ -3020,6 +5487,35 @@ export function NetworkGrantToJSON(value) {
|
|
|
3020
5487
|
'cidrs': value['cidrs'],
|
|
3021
5488
|
};
|
|
3022
5489
|
}
|
|
5490
|
+
/**
|
|
5491
|
+
* Check if a given object implements the OAuthRequirement interface.
|
|
5492
|
+
*/
|
|
5493
|
+
export function instanceOfOAuthRequirement(value) {
|
|
5494
|
+
return true;
|
|
5495
|
+
}
|
|
5496
|
+
export function OAuthRequirementFromJSON(json) {
|
|
5497
|
+
return OAuthRequirementFromJSONTyped(json, false);
|
|
5498
|
+
}
|
|
5499
|
+
export function OAuthRequirementFromJSONTyped(json, ignoreDiscriminator) {
|
|
5500
|
+
if (json == null) {
|
|
5501
|
+
return json;
|
|
5502
|
+
}
|
|
5503
|
+
return {
|
|
5504
|
+
'provider': json['provider'] == null ? undefined : json['provider'],
|
|
5505
|
+
'scopes': json['scopes'] == null ? undefined : json['scopes'],
|
|
5506
|
+
'source': json['source'] == null ? undefined : json['source'],
|
|
5507
|
+
};
|
|
5508
|
+
}
|
|
5509
|
+
export function OAuthRequirementToJSON(value) {
|
|
5510
|
+
if (value == null) {
|
|
5511
|
+
return value;
|
|
5512
|
+
}
|
|
5513
|
+
return {
|
|
5514
|
+
'provider': value['provider'],
|
|
5515
|
+
'scopes': value['scopes'],
|
|
5516
|
+
'source': value['source'],
|
|
5517
|
+
};
|
|
5518
|
+
}
|
|
3023
5519
|
/**
|
|
3024
5520
|
* Check if a given object implements the PDPRequest interface.
|
|
3025
5521
|
*/
|
|
@@ -3074,6 +5570,87 @@ export function PDPResponseToJSON(value) {
|
|
|
3074
5570
|
'decision': GovernanceDecisionToJSON(value['decision']),
|
|
3075
5571
|
};
|
|
3076
5572
|
}
|
|
5573
|
+
/**
|
|
5574
|
+
* @export
|
|
5575
|
+
*/
|
|
5576
|
+
export const PlanTransactionConflictPolicyEnum = {
|
|
5577
|
+
Deny: 'deny',
|
|
5578
|
+
Escalate: 'escalate',
|
|
5579
|
+
LastWriterForbidden: 'last_writer_forbidden'
|
|
5580
|
+
};
|
|
5581
|
+
/**
|
|
5582
|
+
* @export
|
|
5583
|
+
*/
|
|
5584
|
+
export const PlanTransactionApprovalStateEnum = {
|
|
5585
|
+
None: 'none',
|
|
5586
|
+
Required: 'required',
|
|
5587
|
+
Approved: 'approved',
|
|
5588
|
+
Denied: 'denied',
|
|
5589
|
+
Expired: 'expired'
|
|
5590
|
+
};
|
|
5591
|
+
/**
|
|
5592
|
+
* Check if a given object implements the PlanTransaction interface.
|
|
5593
|
+
*/
|
|
5594
|
+
export function instanceOfPlanTransaction(value) {
|
|
5595
|
+
if (!('plan_transaction_id' in value))
|
|
5596
|
+
return false;
|
|
5597
|
+
if (!('plan_hash' in value))
|
|
5598
|
+
return false;
|
|
5599
|
+
if (!('read_set' in value))
|
|
5600
|
+
return false;
|
|
5601
|
+
if (!('write_set' in value))
|
|
5602
|
+
return false;
|
|
5603
|
+
if (!('assumption_set' in value))
|
|
5604
|
+
return false;
|
|
5605
|
+
if (!('verification_obligations' in value))
|
|
5606
|
+
return false;
|
|
5607
|
+
if (!('conflict_policy' in value))
|
|
5608
|
+
return false;
|
|
5609
|
+
return true;
|
|
5610
|
+
}
|
|
5611
|
+
export function PlanTransactionFromJSON(json) {
|
|
5612
|
+
return PlanTransactionFromJSONTyped(json, false);
|
|
5613
|
+
}
|
|
5614
|
+
export function PlanTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
5615
|
+
if (json == null) {
|
|
5616
|
+
return json;
|
|
5617
|
+
}
|
|
5618
|
+
return {
|
|
5619
|
+
'plan_transaction_id': json['plan_transaction_id'],
|
|
5620
|
+
'plan_hash': json['plan_hash'],
|
|
5621
|
+
'read_set': json['read_set'],
|
|
5622
|
+
'write_set': json['write_set'],
|
|
5623
|
+
'assumption_set': json['assumption_set'],
|
|
5624
|
+
'version_dependencies': json['version_dependencies'] == null ? undefined : json['version_dependencies'],
|
|
5625
|
+
'verification_obligations': json['verification_obligations'],
|
|
5626
|
+
'conflict_policy': json['conflict_policy'],
|
|
5627
|
+
'rollback_policy': json['rollback_policy'] == null ? undefined : json['rollback_policy'],
|
|
5628
|
+
'rollback_or_compensation_policy': json['rollback_or_compensation_policy'] == null ? undefined : json['rollback_or_compensation_policy'],
|
|
5629
|
+
'approval_state': json['approval_state'] == null ? undefined : json['approval_state'],
|
|
5630
|
+
'human_review_state': json['human_review_state'] == null ? undefined : json['human_review_state'],
|
|
5631
|
+
'transaction_hash': json['transaction_hash'] == null ? undefined : json['transaction_hash'],
|
|
5632
|
+
};
|
|
5633
|
+
}
|
|
5634
|
+
export function PlanTransactionToJSON(value) {
|
|
5635
|
+
if (value == null) {
|
|
5636
|
+
return value;
|
|
5637
|
+
}
|
|
5638
|
+
return {
|
|
5639
|
+
'plan_transaction_id': value['plan_transaction_id'],
|
|
5640
|
+
'plan_hash': value['plan_hash'],
|
|
5641
|
+
'read_set': value['read_set'],
|
|
5642
|
+
'write_set': value['write_set'],
|
|
5643
|
+
'assumption_set': value['assumption_set'],
|
|
5644
|
+
'version_dependencies': value['version_dependencies'],
|
|
5645
|
+
'verification_obligations': value['verification_obligations'],
|
|
5646
|
+
'conflict_policy': value['conflict_policy'],
|
|
5647
|
+
'rollback_policy': value['rollback_policy'],
|
|
5648
|
+
'rollback_or_compensation_policy': value['rollback_or_compensation_policy'],
|
|
5649
|
+
'approval_state': value['approval_state'],
|
|
5650
|
+
'human_review_state': value['human_review_state'],
|
|
5651
|
+
'transaction_hash': value['transaction_hash'],
|
|
5652
|
+
};
|
|
5653
|
+
}
|
|
3077
5654
|
/**
|
|
3078
5655
|
* @export
|
|
3079
5656
|
*/
|
|
@@ -3122,6 +5699,78 @@ export function PolicyBundleToJSON(value) {
|
|
|
3122
5699
|
'pack_type': value['pack_type'],
|
|
3123
5700
|
};
|
|
3124
5701
|
}
|
|
5702
|
+
/**
|
|
5703
|
+
* Check if a given object implements the PreflightCheck interface.
|
|
5704
|
+
*/
|
|
5705
|
+
export function instanceOfPreflightCheck(value) {
|
|
5706
|
+
if (!('id' in value))
|
|
5707
|
+
return false;
|
|
5708
|
+
if (!('status' in value))
|
|
5709
|
+
return false;
|
|
5710
|
+
if (!('summary' in value))
|
|
5711
|
+
return false;
|
|
5712
|
+
return true;
|
|
5713
|
+
}
|
|
5714
|
+
export function PreflightCheckFromJSON(json) {
|
|
5715
|
+
return PreflightCheckFromJSONTyped(json, false);
|
|
5716
|
+
}
|
|
5717
|
+
export function PreflightCheckFromJSONTyped(json, ignoreDiscriminator) {
|
|
5718
|
+
if (json == null) {
|
|
5719
|
+
return json;
|
|
5720
|
+
}
|
|
5721
|
+
return {
|
|
5722
|
+
'id': json['id'],
|
|
5723
|
+
'status': json['status'],
|
|
5724
|
+
'summary': json['summary'],
|
|
5725
|
+
'evidence_ref': json['evidence_ref'] == null ? undefined : json['evidence_ref'],
|
|
5726
|
+
'fix_actions': json['fix_actions'] == null ? undefined : json['fix_actions'],
|
|
5727
|
+
};
|
|
5728
|
+
}
|
|
5729
|
+
export function PreflightCheckToJSON(value) {
|
|
5730
|
+
if (value == null) {
|
|
5731
|
+
return value;
|
|
5732
|
+
}
|
|
5733
|
+
return {
|
|
5734
|
+
'id': value['id'],
|
|
5735
|
+
'status': value['status'],
|
|
5736
|
+
'summary': value['summary'],
|
|
5737
|
+
'evidence_ref': value['evidence_ref'],
|
|
5738
|
+
'fix_actions': value['fix_actions'],
|
|
5739
|
+
};
|
|
5740
|
+
}
|
|
5741
|
+
/**
|
|
5742
|
+
* Check if a given object implements the PreflightLaunchpadImport202Response interface.
|
|
5743
|
+
*/
|
|
5744
|
+
export function instanceOfPreflightLaunchpadImport202Response(value) {
|
|
5745
|
+
if (!('_import' in value))
|
|
5746
|
+
return false;
|
|
5747
|
+
if (!('preflight' in value))
|
|
5748
|
+
return false;
|
|
5749
|
+
return true;
|
|
5750
|
+
}
|
|
5751
|
+
export function PreflightLaunchpadImport202ResponseFromJSON(json) {
|
|
5752
|
+
return PreflightLaunchpadImport202ResponseFromJSONTyped(json, false);
|
|
5753
|
+
}
|
|
5754
|
+
export function PreflightLaunchpadImport202ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
5755
|
+
if (json == null) {
|
|
5756
|
+
return json;
|
|
5757
|
+
}
|
|
5758
|
+
return {
|
|
5759
|
+
'_import': LaunchpadImportRecordFromJSON(json['import']),
|
|
5760
|
+
'preflight': ImportPreflightResultFromJSON(json['preflight']),
|
|
5761
|
+
'cli_equivalent': json['cli_equivalent'] == null ? undefined : json['cli_equivalent'],
|
|
5762
|
+
};
|
|
5763
|
+
}
|
|
5764
|
+
export function PreflightLaunchpadImport202ResponseToJSON(value) {
|
|
5765
|
+
if (value == null) {
|
|
5766
|
+
return value;
|
|
5767
|
+
}
|
|
5768
|
+
return {
|
|
5769
|
+
'import': LaunchpadImportRecordToJSON(value['_import']),
|
|
5770
|
+
'preflight': ImportPreflightResultToJSON(value['preflight']),
|
|
5771
|
+
'cli_equivalent': value['cli_equivalent'],
|
|
5772
|
+
};
|
|
5773
|
+
}
|
|
3125
5774
|
/**
|
|
3126
5775
|
* Check if a given object implements the Receipt interface.
|
|
3127
5776
|
*/
|
|
@@ -3687,6 +6336,39 @@ export function SandboxPreflightResultToJSON(value) {
|
|
|
3687
6336
|
'checked_at': value['checked_at'] == null ? undefined : ((value['checked_at']).toISOString()),
|
|
3688
6337
|
};
|
|
3689
6338
|
}
|
|
6339
|
+
/**
|
|
6340
|
+
* Check if a given object implements the SecretContract interface.
|
|
6341
|
+
*/
|
|
6342
|
+
export function instanceOfSecretContract(value) {
|
|
6343
|
+
return true;
|
|
6344
|
+
}
|
|
6345
|
+
export function SecretContractFromJSON(json) {
|
|
6346
|
+
return SecretContractFromJSONTyped(json, false);
|
|
6347
|
+
}
|
|
6348
|
+
export function SecretContractFromJSONTyped(json, ignoreDiscriminator) {
|
|
6349
|
+
if (json == null) {
|
|
6350
|
+
return json;
|
|
6351
|
+
}
|
|
6352
|
+
return {
|
|
6353
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
6354
|
+
'source': json['source'] == null ? undefined : json['source'],
|
|
6355
|
+
'required': json['required'] == null ? undefined : json['required'],
|
|
6356
|
+
'reason': json['reason'] == null ? undefined : json['reason'],
|
|
6357
|
+
'targets': json['targets'] == null ? undefined : json['targets'],
|
|
6358
|
+
};
|
|
6359
|
+
}
|
|
6360
|
+
export function SecretContractToJSON(value) {
|
|
6361
|
+
if (value == null) {
|
|
6362
|
+
return value;
|
|
6363
|
+
}
|
|
6364
|
+
return {
|
|
6365
|
+
'name': value['name'],
|
|
6366
|
+
'source': value['source'],
|
|
6367
|
+
'required': value['required'],
|
|
6368
|
+
'reason': value['reason'],
|
|
6369
|
+
'targets': value['targets'],
|
|
6370
|
+
};
|
|
6371
|
+
}
|
|
3690
6372
|
/**
|
|
3691
6373
|
* Check if a given object implements the Session interface.
|
|
3692
6374
|
*/
|
|
@@ -3718,6 +6400,100 @@ export function SessionToJSON(value) {
|
|
|
3718
6400
|
'last_lamport_clock': value['last_lamport_clock'],
|
|
3719
6401
|
};
|
|
3720
6402
|
}
|
|
6403
|
+
/**
|
|
6404
|
+
* Check if a given object implements the SourceFileSummary interface.
|
|
6405
|
+
*/
|
|
6406
|
+
export function instanceOfSourceFileSummary(value) {
|
|
6407
|
+
if (!('path' in value))
|
|
6408
|
+
return false;
|
|
6409
|
+
if (!('kind' in value))
|
|
6410
|
+
return false;
|
|
6411
|
+
return true;
|
|
6412
|
+
}
|
|
6413
|
+
export function SourceFileSummaryFromJSON(json) {
|
|
6414
|
+
return SourceFileSummaryFromJSONTyped(json, false);
|
|
6415
|
+
}
|
|
6416
|
+
export function SourceFileSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
6417
|
+
if (json == null) {
|
|
6418
|
+
return json;
|
|
6419
|
+
}
|
|
6420
|
+
return {
|
|
6421
|
+
'path': json['path'],
|
|
6422
|
+
'kind': json['kind'],
|
|
6423
|
+
'size': json['size'] == null ? undefined : json['size'],
|
|
6424
|
+
'sha': json['sha'] == null ? undefined : json['sha'],
|
|
6425
|
+
'language': json['language'] == null ? undefined : json['language'],
|
|
6426
|
+
'content': json['content'] == null ? undefined : json['content'],
|
|
6427
|
+
};
|
|
6428
|
+
}
|
|
6429
|
+
export function SourceFileSummaryToJSON(value) {
|
|
6430
|
+
if (value == null) {
|
|
6431
|
+
return value;
|
|
6432
|
+
}
|
|
6433
|
+
return {
|
|
6434
|
+
'path': value['path'],
|
|
6435
|
+
'kind': value['kind'],
|
|
6436
|
+
'size': value['size'],
|
|
6437
|
+
'sha': value['sha'],
|
|
6438
|
+
'language': value['language'],
|
|
6439
|
+
'content': value['content'],
|
|
6440
|
+
};
|
|
6441
|
+
}
|
|
6442
|
+
/**
|
|
6443
|
+
* Check if a given object implements the SourceSnapshot interface.
|
|
6444
|
+
*/
|
|
6445
|
+
export function instanceOfSourceSnapshot(value) {
|
|
6446
|
+
if (!('repo_url' in value))
|
|
6447
|
+
return false;
|
|
6448
|
+
if (!('provider' in value))
|
|
6449
|
+
return false;
|
|
6450
|
+
if (!('license_state' in value))
|
|
6451
|
+
return false;
|
|
6452
|
+
if (!('files' in value))
|
|
6453
|
+
return false;
|
|
6454
|
+
return true;
|
|
6455
|
+
}
|
|
6456
|
+
export function SourceSnapshotFromJSON(json) {
|
|
6457
|
+
return SourceSnapshotFromJSONTyped(json, false);
|
|
6458
|
+
}
|
|
6459
|
+
export function SourceSnapshotFromJSONTyped(json, ignoreDiscriminator) {
|
|
6460
|
+
if (json == null) {
|
|
6461
|
+
return json;
|
|
6462
|
+
}
|
|
6463
|
+
return {
|
|
6464
|
+
...json,
|
|
6465
|
+
'repo_url': json['repo_url'],
|
|
6466
|
+
'provider': json['provider'],
|
|
6467
|
+
'owner': json['owner'] == null ? undefined : json['owner'],
|
|
6468
|
+
'repo': json['repo'] == null ? undefined : json['repo'],
|
|
6469
|
+
'ref': json['ref'] == null ? undefined : json['ref'],
|
|
6470
|
+
'commit': json['commit'] == null ? undefined : json['commit'],
|
|
6471
|
+
'license_spdx': json['license_spdx'] == null ? undefined : json['license_spdx'],
|
|
6472
|
+
'license_state': json['license_state'],
|
|
6473
|
+
'fetched_at': json['fetched_at'] == null ? undefined : (new Date(json['fetched_at'])),
|
|
6474
|
+
'files': (json['files'].map(SourceFileSummaryFromJSON)),
|
|
6475
|
+
'api_source': json['api_source'] == null ? undefined : json['api_source'],
|
|
6476
|
+
};
|
|
6477
|
+
}
|
|
6478
|
+
export function SourceSnapshotToJSON(value) {
|
|
6479
|
+
if (value == null) {
|
|
6480
|
+
return value;
|
|
6481
|
+
}
|
|
6482
|
+
return {
|
|
6483
|
+
...value,
|
|
6484
|
+
'repo_url': value['repo_url'],
|
|
6485
|
+
'provider': value['provider'],
|
|
6486
|
+
'owner': value['owner'],
|
|
6487
|
+
'repo': value['repo'],
|
|
6488
|
+
'ref': value['ref'],
|
|
6489
|
+
'commit': value['commit'],
|
|
6490
|
+
'license_spdx': value['license_spdx'],
|
|
6491
|
+
'license_state': value['license_state'],
|
|
6492
|
+
'fetched_at': value['fetched_at'] == null ? undefined : ((value['fetched_at']).toISOString()),
|
|
6493
|
+
'files': (value['files'].map(SourceFileSummaryToJSON)),
|
|
6494
|
+
'api_source': value['api_source'],
|
|
6495
|
+
};
|
|
6496
|
+
}
|
|
3721
6497
|
/**
|
|
3722
6498
|
* Check if a given object implements the TamperPublicDemoReceipt200Response interface.
|
|
3723
6499
|
*/
|
|
@@ -3806,6 +6582,90 @@ export function TamperPublicDemoReceiptRequestToJSON(value) {
|
|
|
3806
6582
|
'mutation': value['mutation'],
|
|
3807
6583
|
};
|
|
3808
6584
|
}
|
|
6585
|
+
/**
|
|
6586
|
+
* Check if a given object implements the TargetPlan interface.
|
|
6587
|
+
*/
|
|
6588
|
+
export function instanceOfTargetPlan(value) {
|
|
6589
|
+
if (!('target_id' in value))
|
|
6590
|
+
return false;
|
|
6591
|
+
if (!('kind' in value))
|
|
6592
|
+
return false;
|
|
6593
|
+
if (!('deployable' in value))
|
|
6594
|
+
return false;
|
|
6595
|
+
if (!('risk' in value))
|
|
6596
|
+
return false;
|
|
6597
|
+
if (!('reason' in value))
|
|
6598
|
+
return false;
|
|
6599
|
+
return true;
|
|
6600
|
+
}
|
|
6601
|
+
export function TargetPlanFromJSON(json) {
|
|
6602
|
+
return TargetPlanFromJSONTyped(json, false);
|
|
6603
|
+
}
|
|
6604
|
+
export function TargetPlanFromJSONTyped(json, ignoreDiscriminator) {
|
|
6605
|
+
if (json == null) {
|
|
6606
|
+
return json;
|
|
6607
|
+
}
|
|
6608
|
+
return {
|
|
6609
|
+
...json,
|
|
6610
|
+
'target_id': json['target_id'],
|
|
6611
|
+
'kind': json['kind'],
|
|
6612
|
+
'substrate_id': json['substrate_id'] == null ? undefined : json['substrate_id'],
|
|
6613
|
+
'deployable': json['deployable'],
|
|
6614
|
+
'requires_approval': json['requires_approval'] == null ? undefined : json['requires_approval'],
|
|
6615
|
+
'commands': json['commands'] == null ? undefined : json['commands'],
|
|
6616
|
+
'artifacts': json['artifacts'] == null ? undefined : json['artifacts'],
|
|
6617
|
+
'secrets_backend': json['secrets_backend'] == null ? undefined : json['secrets_backend'],
|
|
6618
|
+
'healthcheck': json['healthcheck'] == null ? undefined : json['healthcheck'],
|
|
6619
|
+
'rollback': json['rollback'] == null ? undefined : json['rollback'],
|
|
6620
|
+
'risk': json['risk'],
|
|
6621
|
+
'reason': json['reason'],
|
|
6622
|
+
};
|
|
6623
|
+
}
|
|
6624
|
+
export function TargetPlanToJSON(value) {
|
|
6625
|
+
if (value == null) {
|
|
6626
|
+
return value;
|
|
6627
|
+
}
|
|
6628
|
+
return {
|
|
6629
|
+
...value,
|
|
6630
|
+
'target_id': value['target_id'],
|
|
6631
|
+
'kind': value['kind'],
|
|
6632
|
+
'substrate_id': value['substrate_id'],
|
|
6633
|
+
'deployable': value['deployable'],
|
|
6634
|
+
'requires_approval': value['requires_approval'],
|
|
6635
|
+
'commands': value['commands'],
|
|
6636
|
+
'artifacts': value['artifacts'],
|
|
6637
|
+
'secrets_backend': value['secrets_backend'],
|
|
6638
|
+
'healthcheck': value['healthcheck'],
|
|
6639
|
+
'rollback': value['rollback'],
|
|
6640
|
+
'risk': value['risk'],
|
|
6641
|
+
'reason': value['reason'],
|
|
6642
|
+
};
|
|
6643
|
+
}
|
|
6644
|
+
/**
|
|
6645
|
+
* Check if a given object implements the TeardownLaunchpadRuntimeRunRequest interface.
|
|
6646
|
+
*/
|
|
6647
|
+
export function instanceOfTeardownLaunchpadRuntimeRunRequest(value) {
|
|
6648
|
+
return true;
|
|
6649
|
+
}
|
|
6650
|
+
export function TeardownLaunchpadRuntimeRunRequestFromJSON(json) {
|
|
6651
|
+
return TeardownLaunchpadRuntimeRunRequestFromJSONTyped(json, false);
|
|
6652
|
+
}
|
|
6653
|
+
export function TeardownLaunchpadRuntimeRunRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
6654
|
+
if (json == null) {
|
|
6655
|
+
return json;
|
|
6656
|
+
}
|
|
6657
|
+
return {
|
|
6658
|
+
'cascade': json['cascade'] == null ? undefined : json['cascade'],
|
|
6659
|
+
};
|
|
6660
|
+
}
|
|
6661
|
+
export function TeardownLaunchpadRuntimeRunRequestToJSON(value) {
|
|
6662
|
+
if (value == null) {
|
|
6663
|
+
return value;
|
|
6664
|
+
}
|
|
6665
|
+
return {
|
|
6666
|
+
'cascade': value['cascade'],
|
|
6667
|
+
};
|
|
6668
|
+
}
|
|
3809
6669
|
/**
|
|
3810
6670
|
* Check if a given object implements the TelemetryExportRequest interface.
|
|
3811
6671
|
*/
|
|
@@ -4059,6 +6919,76 @@ export function VerificationResultRootsToJSON(value) {
|
|
|
4059
6919
|
'entry_count': value['entry_count'],
|
|
4060
6920
|
};
|
|
4061
6921
|
}
|
|
6922
|
+
/**
|
|
6923
|
+
* @export
|
|
6924
|
+
*/
|
|
6925
|
+
export const VerificationScopeRiskClassEnum = {
|
|
6926
|
+
T0: 'T0',
|
|
6927
|
+
T1: 'T1',
|
|
6928
|
+
T2: 'T2',
|
|
6929
|
+
T3: 'T3'
|
|
6930
|
+
};
|
|
6931
|
+
/**
|
|
6932
|
+
* Check if a given object implements the VerificationScope interface.
|
|
6933
|
+
*/
|
|
6934
|
+
export function instanceOfVerificationScope(value) {
|
|
6935
|
+
if (!('verification_scope_id' in value))
|
|
6936
|
+
return false;
|
|
6937
|
+
if (!('subject_hash' in value))
|
|
6938
|
+
return false;
|
|
6939
|
+
if (!('checks_performed' in value))
|
|
6940
|
+
return false;
|
|
6941
|
+
if (!('verifier_hash' in value))
|
|
6942
|
+
return false;
|
|
6943
|
+
if (!('policy_hash' in value))
|
|
6944
|
+
return false;
|
|
6945
|
+
if (!('created_at' in value))
|
|
6946
|
+
return false;
|
|
6947
|
+
return true;
|
|
6948
|
+
}
|
|
6949
|
+
export function VerificationScopeFromJSON(json) {
|
|
6950
|
+
return VerificationScopeFromJSONTyped(json, false);
|
|
6951
|
+
}
|
|
6952
|
+
export function VerificationScopeFromJSONTyped(json, ignoreDiscriminator) {
|
|
6953
|
+
if (json == null) {
|
|
6954
|
+
return json;
|
|
6955
|
+
}
|
|
6956
|
+
return {
|
|
6957
|
+
'verification_scope_id': json['verification_scope_id'],
|
|
6958
|
+
'subject_hash': json['subject_hash'],
|
|
6959
|
+
'risk_class': json['risk_class'] == null ? undefined : json['risk_class'],
|
|
6960
|
+
'checks_performed': json['checks_performed'],
|
|
6961
|
+
'assumptions': json['assumptions'] == null ? undefined : json['assumptions'],
|
|
6962
|
+
'untested_regions': json['untested_regions'] == null ? undefined : json['untested_regions'],
|
|
6963
|
+
'known_limits': json['known_limits'] == null ? undefined : json['known_limits'],
|
|
6964
|
+
'remaining_risks': json['remaining_risks'] == null ? undefined : json['remaining_risks'],
|
|
6965
|
+
'required_followup': json['required_followup'] == null ? undefined : json['required_followup'],
|
|
6966
|
+
'verifier_hash': json['verifier_hash'],
|
|
6967
|
+
'policy_hash': json['policy_hash'],
|
|
6968
|
+
'created_at': (new Date(json['created_at'])),
|
|
6969
|
+
'scope_hash': json['scope_hash'] == null ? undefined : json['scope_hash'],
|
|
6970
|
+
};
|
|
6971
|
+
}
|
|
6972
|
+
export function VerificationScopeToJSON(value) {
|
|
6973
|
+
if (value == null) {
|
|
6974
|
+
return value;
|
|
6975
|
+
}
|
|
6976
|
+
return {
|
|
6977
|
+
'verification_scope_id': value['verification_scope_id'],
|
|
6978
|
+
'subject_hash': value['subject_hash'],
|
|
6979
|
+
'risk_class': value['risk_class'],
|
|
6980
|
+
'checks_performed': value['checks_performed'],
|
|
6981
|
+
'assumptions': value['assumptions'],
|
|
6982
|
+
'untested_regions': value['untested_regions'],
|
|
6983
|
+
'known_limits': value['known_limits'],
|
|
6984
|
+
'remaining_risks': value['remaining_risks'],
|
|
6985
|
+
'required_followup': value['required_followup'],
|
|
6986
|
+
'verifier_hash': value['verifier_hash'],
|
|
6987
|
+
'policy_hash': value['policy_hash'],
|
|
6988
|
+
'created_at': ((value['created_at']).toISOString()),
|
|
6989
|
+
'scope_hash': value['scope_hash'],
|
|
6990
|
+
};
|
|
6991
|
+
}
|
|
4062
6992
|
/**
|
|
4063
6993
|
* Check if a given object implements the VerifyPublicDemoReceipt200Response interface.
|
|
4064
6994
|
*/
|