@xemahq/app-platform-internal-api-client 0.1.2 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. package/dist/custom-fetch.js +6 -2
  2. package/dist/endpoints/app-clients/app-clients.d.ts +1 -1
  3. package/dist/endpoints/app-clients/app-clients.js +4 -4
  4. package/dist/endpoints/app-releases/app-releases.d.ts +33 -0
  5. package/dist/endpoints/app-releases/app-releases.js +122 -0
  6. package/dist/endpoints/apps/apps.d.ts +1 -1
  7. package/dist/endpoints/apps/apps.js +7 -7
  8. package/dist/endpoints/audience-policies/audience-policies.d.ts +1 -1
  9. package/dist/endpoints/audience-policies/audience-policies.js +4 -4
  10. package/dist/endpoints/delegated-sessions/delegated-sessions.d.ts +1 -1
  11. package/dist/endpoints/delegated-sessions/delegated-sessions.js +1 -1
  12. package/dist/endpoints/describe-objects/describe-objects.d.ts +1 -1
  13. package/dist/endpoints/describe-objects/describe-objects.js +1 -1
  14. package/dist/endpoints/org-erasure/org-erasure.js +2 -2
  15. package/dist/index.d.ts +2 -1
  16. package/dist/index.js +1 -0
  17. package/dist/models/appClientDto.d.ts +1 -1
  18. package/dist/models/appClientDtoDataArrayEnvelope.d.ts +1 -1
  19. package/dist/models/appClientDtoDataEnvelope.d.ts +1 -1
  20. package/dist/models/appClientDtoRevokedAt.d.ts +1 -1
  21. package/dist/models/appClientDtoRevokedAt.js +1 -1
  22. package/dist/models/appDto.d.ts +1 -1
  23. package/dist/models/appDtoDataArrayEnvelope.d.ts +1 -1
  24. package/dist/models/appDtoDataEnvelope.d.ts +1 -1
  25. package/dist/models/appLockfileDto.d.ts +3 -1
  26. package/dist/models/appLockfileDtoAgents.d.ts +1 -1
  27. package/dist/models/appLockfileDtoAgents.js +1 -1
  28. package/dist/models/appLockfileDtoBiomes.d.ts +1 -1
  29. package/dist/models/appLockfileDtoBiomes.js +1 -1
  30. package/dist/models/appLockfileDtoCapabilities.d.ts +1 -1
  31. package/dist/models/appLockfileDtoCapabilities.js +1 -1
  32. package/dist/models/appLockfileDtoDeliverableSpecs.d.ts +1 -1
  33. package/dist/models/appLockfileDtoDeliverableSpecs.js +1 -1
  34. package/dist/models/appLockfileDtoFunctions.d.ts +10 -0
  35. package/dist/models/appLockfileDtoFunctions.js +9 -0
  36. package/dist/models/appLockfileDtoSkills.d.ts +1 -1
  37. package/dist/models/appLockfileDtoSkills.js +1 -1
  38. package/dist/models/appLockfileDtoWorkflows.d.ts +1 -1
  39. package/dist/models/appLockfileDtoWorkflows.js +1 -1
  40. package/dist/models/appReleaseDto.d.ts +32 -0
  41. package/dist/models/appReleaseDto.js +2 -0
  42. package/dist/models/appReleaseDtoAudienceSnapshot.d.ts +10 -0
  43. package/dist/models/appReleaseDtoAudienceSnapshot.js +9 -0
  44. package/dist/models/appReleaseDtoDataArrayEnvelope.d.ts +11 -0
  45. package/dist/models/appReleaseDtoDataArrayEnvelope.js +2 -0
  46. package/dist/models/appReleaseDtoDataEnvelope.d.ts +11 -0
  47. package/dist/models/appReleaseDtoDataEnvelope.js +2 -0
  48. package/dist/models/appReleaseDtoDefinition.d.ts +10 -0
  49. package/dist/models/appReleaseDtoDefinition.js +9 -0
  50. package/dist/models/appReleaseDtoPolicySnapshot.d.ts +10 -0
  51. package/dist/models/appReleaseDtoPolicySnapshot.js +9 -0
  52. package/dist/models/appReleaseDtoSchemaPlan.d.ts +10 -0
  53. package/dist/models/appReleaseDtoSchemaPlan.js +9 -0
  54. package/dist/models/appReleaseDtoSourceArtifacts.d.ts +10 -0
  55. package/dist/models/appReleaseDtoSourceArtifacts.js +9 -0
  56. package/dist/models/appReleaseState.d.ts +16 -0
  57. package/dist/models/appReleaseState.js +18 -0
  58. package/dist/models/appReleasesControllerGetActiveParams.d.ts +10 -0
  59. package/dist/models/appReleasesControllerGetActiveParams.js +9 -0
  60. package/dist/models/appReleasesControllerListHistoryParams.d.ts +10 -0
  61. package/dist/models/appReleasesControllerListHistoryParams.js +9 -0
  62. package/dist/models/appsControllerListParams.d.ts +1 -1
  63. package/dist/models/appsControllerListParams.js +1 -1
  64. package/dist/models/audienceKind.d.ts +2 -2
  65. package/dist/models/audienceKind.js +1 -1
  66. package/dist/models/audiencePolicyDto.d.ts +1 -1
  67. package/dist/models/audiencePolicyDtoDataArrayEnvelope.d.ts +1 -1
  68. package/dist/models/audiencePolicyDtoDataEnvelope.d.ts +1 -1
  69. package/dist/models/audiencePolicyDtoRateLimitPerHourPerSubject.d.ts +1 -1
  70. package/dist/models/audiencePolicyDtoRateLimitPerHourPerSubject.js +1 -1
  71. package/dist/models/audienceUpstreamDto.d.ts +1 -1
  72. package/dist/models/audienceUpstreamDtoMetadata.d.ts +1 -1
  73. package/dist/models/audienceUpstreamDtoMetadata.js +1 -1
  74. package/dist/models/audienceUpstreamType.d.ts +2 -2
  75. package/dist/models/audienceUpstreamType.js +1 -1
  76. package/dist/models/biomeInstallDto.d.ts +1 -1
  77. package/dist/models/biomeInstallDtoConfiguration.d.ts +1 -1
  78. package/dist/models/biomeInstallDtoConfiguration.js +1 -1
  79. package/dist/models/brandingConfigDto.d.ts +1 -1
  80. package/dist/models/brandingConfigDtoCssTokens.d.ts +1 -1
  81. package/dist/models/brandingConfigDtoCssTokens.js +1 -1
  82. package/dist/models/capabilityPolicyOverrideDto.d.ts +1 -1
  83. package/dist/models/capabilityPolicyOverrideDto.js +1 -1
  84. package/dist/models/createAppClientDto.d.ts +1 -1
  85. package/dist/models/createAppClientDto.js +1 -1
  86. package/dist/models/createAppDto.d.ts +4 -4
  87. package/dist/models/createAppDtoProjectId.d.ts +1 -1
  88. package/dist/models/createAppDtoProjectId.js +1 -1
  89. package/dist/models/createAudiencePolicyDto.d.ts +1 -1
  90. package/dist/models/createdAppClientDto.d.ts +1 -1
  91. package/dist/models/createdAppClientDtoDataEnvelope.d.ts +1 -1
  92. package/dist/models/createdAppClientDtoRevokedAt.d.ts +1 -1
  93. package/dist/models/createdAppClientDtoRevokedAt.js +1 -1
  94. package/dist/models/describeObjectsResponseDto.d.ts +1 -1
  95. package/dist/models/describeObjectsResponseDtoDataEnvelope.d.ts +1 -1
  96. package/dist/models/errorDetailsDto.d.ts +1 -1
  97. package/dist/models/errorDetailsDtoDetails.d.ts +1 -1
  98. package/dist/models/errorDetailsDtoDetails.js +1 -1
  99. package/dist/models/errorPayloadDto.d.ts +1 -1
  100. package/dist/models/errorResponseDto.d.ts +1 -1
  101. package/dist/models/index.d.ts +19 -0
  102. package/dist/models/index.js +19 -0
  103. package/dist/models/mintForInviteRequestDto.d.ts +1 -1
  104. package/dist/models/mintForInviteRequestDto.js +1 -1
  105. package/dist/models/mintForInviteResponseDto.d.ts +1 -1
  106. package/dist/models/mintForInviteResponseDto.js +1 -1
  107. package/dist/models/mintForInviteResponseDtoDataEnvelope.d.ts +1 -1
  108. package/dist/models/objectLifecycle.d.ts +2 -2
  109. package/dist/models/objectLifecycle.js +1 -1
  110. package/dist/models/prepareAppReleaseDto.d.ts +29 -0
  111. package/dist/models/prepareAppReleaseDto.js +2 -0
  112. package/dist/models/prepareAppReleaseDtoAudienceSnapshot.d.ts +10 -0
  113. package/dist/models/prepareAppReleaseDtoAudienceSnapshot.js +9 -0
  114. package/dist/models/prepareAppReleaseDtoDefinition.d.ts +10 -0
  115. package/dist/models/prepareAppReleaseDtoDefinition.js +9 -0
  116. package/dist/models/prepareAppReleaseDtoPolicySnapshot.d.ts +10 -0
  117. package/dist/models/prepareAppReleaseDtoPolicySnapshot.js +9 -0
  118. package/dist/models/prepareAppReleaseDtoSchemaPlan.d.ts +10 -0
  119. package/dist/models/prepareAppReleaseDtoSchemaPlan.js +9 -0
  120. package/dist/models/prepareAppReleaseDtoSourceArtifacts.d.ts +10 -0
  121. package/dist/models/prepareAppReleaseDtoSourceArtifacts.js +9 -0
  122. package/dist/models/releaseOrgDto.d.ts +10 -0
  123. package/dist/models/releaseOrgDto.js +9 -0
  124. package/dist/models/resourceManagedBy.d.ts +2 -2
  125. package/dist/models/resourceManagedBy.js +1 -1
  126. package/dist/models/spaceKind.d.ts +2 -2
  127. package/dist/models/spaceKind.js +1 -1
  128. package/dist/models/updateAppDto.d.ts +1 -1
  129. package/dist/models/updateAudiencePolicyDto.d.ts +1 -1
  130. package/dist/models/updateAudiencePolicyDtoRateLimitPerHourPerSubject.d.ts +1 -1
  131. package/dist/models/updateAudiencePolicyDtoRateLimitPerHourPerSubject.js +1 -1
  132. package/dist/models/xemaObjectKind.d.ts +2 -2
  133. package/dist/models/xemaObjectKind.js +1 -1
  134. package/dist/models/xemaObjectResponseDto.d.ts +1 -1
  135. package/dist/models/xemaObjectResponseDtoPayload.d.ts +1 -1
  136. package/dist/models/xemaObjectResponseDtoPayload.js +1 -1
  137. package/dist/models/xemaSpaceRefDto.d.ts +1 -1
  138. package/dist/models/xemaSubjectRefDto.d.ts +1 -1
  139. package/dist/models/xemaSubjectRefDto.js +1 -1
  140. package/package.json +1 -1
@@ -83,14 +83,18 @@ const customFetch = async (url, options) => {
83
83
  if (response.status === 401 && config.onUnauthorized && attempt === 0) {
84
84
  await config.onUnauthorized();
85
85
  const refreshedHeaders = await buildHeaders(config, options.headers);
86
- const retryResponse = await fetch(fullUrl, { ...options, headers: refreshedHeaders });
86
+ const retryResponse = await fetch(fullUrl, {
87
+ ...options,
88
+ headers: refreshedHeaders,
89
+ });
87
90
  const retryBody = await parseBody(retryResponse);
88
91
  if (retryResponse.status >= 400) {
89
92
  throw new ClientError(retryResponse.status, fullUrl, retryBody);
90
93
  }
91
94
  return retryBody;
92
95
  }
93
- if (!RETRYABLE_STATUSES.includes(response.status) || attempt >= maxRetries) {
96
+ if (!RETRYABLE_STATUSES.includes(response.status) ||
97
+ attempt >= maxRetries) {
94
98
  const body = await parseBody(response);
95
99
  if (response.status >= 400) {
96
100
  throw new ClientError(response.status, fullUrl, body);
@@ -3,7 +3,7 @@
3
3
  * Do not edit manually.
4
4
  * App Runtime API
5
5
  * App Runtime API extract (generated for client codegen).
6
- * OpenAPI spec version: 0.1.0
6
+ * OpenAPI spec version: 0.1.2
7
7
  */
8
8
  import type { AppClientDtoDataArrayEnvelope, AppClientDtoDataEnvelope, CreateAppClientDto, CreatedAppClientDtoDataEnvelope } from '../../models';
9
9
  export declare const getAppClientsControllerCreateUrl: (appId: string) => string;
@@ -14,7 +14,7 @@ const appClientsControllerCreate = async (appId, createAppClientDto, options) =>
14
14
  ...options,
15
15
  method: 'POST',
16
16
  headers: { 'Content-Type': 'application/json', ...options?.headers },
17
- body: JSON.stringify(createAppClientDto)
17
+ body: JSON.stringify(createAppClientDto),
18
18
  });
19
19
  };
20
20
  exports.appClientsControllerCreate = appClientsControllerCreate;
@@ -28,7 +28,7 @@ exports.getAppClientsControllerListUrl = getAppClientsControllerListUrl;
28
28
  const appClientsControllerList = async (appId, options) => {
29
29
  return (0, custom_fetch_1.customFetch)((0, exports.getAppClientsControllerListUrl)(appId), {
30
30
  ...options,
31
- method: 'GET'
31
+ method: 'GET',
32
32
  });
33
33
  };
34
34
  exports.appClientsControllerList = appClientsControllerList;
@@ -42,7 +42,7 @@ exports.getAppClientsControllerGetByIdUrl = getAppClientsControllerGetByIdUrl;
42
42
  const appClientsControllerGetById = async (id, options) => {
43
43
  return (0, custom_fetch_1.customFetch)((0, exports.getAppClientsControllerGetByIdUrl)(id), {
44
44
  ...options,
45
- method: 'GET'
45
+ method: 'GET',
46
46
  });
47
47
  };
48
48
  exports.appClientsControllerGetById = appClientsControllerGetById;
@@ -56,7 +56,7 @@ exports.getAppClientsControllerRevokeUrl = getAppClientsControllerRevokeUrl;
56
56
  const appClientsControllerRevoke = async (id, options) => {
57
57
  return (0, custom_fetch_1.customFetch)((0, exports.getAppClientsControllerRevokeUrl)(id), {
58
58
  ...options,
59
- method: 'POST'
59
+ method: 'POST',
60
60
  });
61
61
  };
62
62
  exports.appClientsControllerRevoke = appClientsControllerRevoke;
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Generated by orval v8.16.0 🍺
3
+ * Do not edit manually.
4
+ * App Runtime API
5
+ * App Runtime API extract (generated for client codegen).
6
+ * OpenAPI spec version: 0.1.2
7
+ */
8
+ import type { AppReleaseDtoDataArrayEnvelope, AppReleaseDtoDataEnvelope, AppReleasesControllerGetActiveParams, AppReleasesControllerListHistoryParams, PrepareAppReleaseDto, ReleaseOrgDto } from '../../models';
9
+ export declare const getAppReleasesControllerPrepareUrl: (appId: string) => string;
10
+ /**
11
+ * @summary Idempotently prepare an immutable App release from a pinned Forge source revision.
12
+ */
13
+ export declare const appReleasesControllerPrepare: (appId: string, prepareAppReleaseDto: PrepareAppReleaseDto, options?: RequestInit) => Promise<AppReleaseDtoDataEnvelope>;
14
+ export declare const getAppReleasesControllerActivateUrl: (appId: string, releaseId: string) => string;
15
+ /**
16
+ * @summary Atomically activate a prepared release. Repeating an already-successful activation is idempotent.
17
+ */
18
+ export declare const appReleasesControllerActivate: (appId: string, releaseId: string, releaseOrgDto: ReleaseOrgDto, options?: RequestInit) => Promise<AppReleaseDtoDataEnvelope>;
19
+ export declare const getAppReleasesControllerRollbackUrl: (appId: string, releaseId: string) => string;
20
+ /**
21
+ * @summary Atomically roll back to a retained superseded release.
22
+ */
23
+ export declare const appReleasesControllerRollback: (appId: string, releaseId: string, releaseOrgDto: ReleaseOrgDto, options?: RequestInit) => Promise<AppReleaseDtoDataEnvelope>;
24
+ export declare const getAppReleasesControllerGetActiveUrl: (appId: string, params: AppReleasesControllerGetActiveParams) => string;
25
+ /**
26
+ * @summary Resolve the sole production/live release. Draft, prepared, failed, and stale Forge versions are never returned.
27
+ */
28
+ export declare const appReleasesControllerGetActive: (appId: string, params: AppReleasesControllerGetActiveParams, options?: RequestInit) => Promise<AppReleaseDtoDataEnvelope>;
29
+ export declare const getAppReleasesControllerListHistoryUrl: (appId: string, params: AppReleasesControllerListHistoryParams) => string;
30
+ /**
31
+ * @summary List immutable release history newest-first.
32
+ */
33
+ export declare const appReleasesControllerListHistory: (appId: string, params: AppReleasesControllerListHistoryParams, options?: RequestInit) => Promise<AppReleaseDtoDataArrayEnvelope>;
@@ -0,0 +1,122 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.appReleasesControllerListHistory = exports.getAppReleasesControllerListHistoryUrl = exports.appReleasesControllerGetActive = exports.getAppReleasesControllerGetActiveUrl = exports.appReleasesControllerRollback = exports.getAppReleasesControllerRollbackUrl = exports.appReleasesControllerActivate = exports.getAppReleasesControllerActivateUrl = exports.appReleasesControllerPrepare = exports.getAppReleasesControllerPrepareUrl = void 0;
4
+ const custom_fetch_1 = require("../../custom-fetch");
5
+ const getAppReleasesControllerPrepareUrl = (appId) => {
6
+ return `/releases/apps/${appId}`;
7
+ };
8
+ exports.getAppReleasesControllerPrepareUrl = getAppReleasesControllerPrepareUrl;
9
+ /**
10
+ * @summary Idempotently prepare an immutable App release from a pinned Forge source revision.
11
+ */
12
+ const appReleasesControllerPrepare = async (appId, prepareAppReleaseDto, options) => {
13
+ return (0, custom_fetch_1.customFetch)((0, exports.getAppReleasesControllerPrepareUrl)(appId), {
14
+ ...options,
15
+ method: 'POST',
16
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
17
+ body: JSON.stringify(prepareAppReleaseDto),
18
+ });
19
+ };
20
+ exports.appReleasesControllerPrepare = appReleasesControllerPrepare;
21
+ const getAppReleasesControllerActivateUrl = (appId, releaseId) => {
22
+ return `/releases/apps/${appId}/${releaseId}/activate`;
23
+ };
24
+ exports.getAppReleasesControllerActivateUrl = getAppReleasesControllerActivateUrl;
25
+ /**
26
+ * @summary Atomically activate a prepared release. Repeating an already-successful activation is idempotent.
27
+ */
28
+ const appReleasesControllerActivate = async (appId, releaseId, releaseOrgDto, options) => {
29
+ return (0, custom_fetch_1.customFetch)((0, exports.getAppReleasesControllerActivateUrl)(appId, releaseId), {
30
+ ...options,
31
+ method: 'POST',
32
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
33
+ body: JSON.stringify(releaseOrgDto),
34
+ });
35
+ };
36
+ exports.appReleasesControllerActivate = appReleasesControllerActivate;
37
+ const getAppReleasesControllerRollbackUrl = (appId, releaseId) => {
38
+ return `/releases/apps/${appId}/${releaseId}/rollback`;
39
+ };
40
+ exports.getAppReleasesControllerRollbackUrl = getAppReleasesControllerRollbackUrl;
41
+ /**
42
+ * @summary Atomically roll back to a retained superseded release.
43
+ */
44
+ const appReleasesControllerRollback = async (appId, releaseId, releaseOrgDto, options) => {
45
+ return (0, custom_fetch_1.customFetch)((0, exports.getAppReleasesControllerRollbackUrl)(appId, releaseId), {
46
+ ...options,
47
+ method: 'POST',
48
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
49
+ body: JSON.stringify(releaseOrgDto),
50
+ });
51
+ };
52
+ exports.appReleasesControllerRollback = appReleasesControllerRollback;
53
+ const getAppReleasesControllerGetActiveUrl = (appId, params) => {
54
+ const normalizedParams = new URLSearchParams();
55
+ Object.entries(params || {}).forEach(([key, value]) => {
56
+ if (value === undefined)
57
+ return;
58
+ if (value === null) {
59
+ normalizedParams.append(key, 'null');
60
+ return;
61
+ }
62
+ if (Array.isArray(value)) {
63
+ for (const item of value) {
64
+ if (item === undefined || item === null)
65
+ continue;
66
+ normalizedParams.append(key, item.toString());
67
+ }
68
+ return;
69
+ }
70
+ normalizedParams.append(key, value.toString());
71
+ });
72
+ const stringifiedParams = normalizedParams.toString();
73
+ return stringifiedParams.length > 0
74
+ ? `/releases/apps/${appId}/active?${stringifiedParams}`
75
+ : `/releases/apps/${appId}/active`;
76
+ };
77
+ exports.getAppReleasesControllerGetActiveUrl = getAppReleasesControllerGetActiveUrl;
78
+ /**
79
+ * @summary Resolve the sole production/live release. Draft, prepared, failed, and stale Forge versions are never returned.
80
+ */
81
+ const appReleasesControllerGetActive = async (appId, params, options) => {
82
+ return (0, custom_fetch_1.customFetch)((0, exports.getAppReleasesControllerGetActiveUrl)(appId, params), {
83
+ ...options,
84
+ method: 'GET',
85
+ });
86
+ };
87
+ exports.appReleasesControllerGetActive = appReleasesControllerGetActive;
88
+ const getAppReleasesControllerListHistoryUrl = (appId, params) => {
89
+ const normalizedParams = new URLSearchParams();
90
+ Object.entries(params || {}).forEach(([key, value]) => {
91
+ if (value === undefined)
92
+ return;
93
+ if (value === null) {
94
+ normalizedParams.append(key, 'null');
95
+ return;
96
+ }
97
+ if (Array.isArray(value)) {
98
+ for (const item of value) {
99
+ if (item === undefined || item === null)
100
+ continue;
101
+ normalizedParams.append(key, item.toString());
102
+ }
103
+ return;
104
+ }
105
+ normalizedParams.append(key, value.toString());
106
+ });
107
+ const stringifiedParams = normalizedParams.toString();
108
+ return stringifiedParams.length > 0
109
+ ? `/releases/apps/${appId}/history?${stringifiedParams}`
110
+ : `/releases/apps/${appId}/history`;
111
+ };
112
+ exports.getAppReleasesControllerListHistoryUrl = getAppReleasesControllerListHistoryUrl;
113
+ /**
114
+ * @summary List immutable release history newest-first.
115
+ */
116
+ const appReleasesControllerListHistory = async (appId, params, options) => {
117
+ return (0, custom_fetch_1.customFetch)((0, exports.getAppReleasesControllerListHistoryUrl)(appId, params), {
118
+ ...options,
119
+ method: 'GET',
120
+ });
121
+ };
122
+ exports.appReleasesControllerListHistory = appReleasesControllerListHistory;
@@ -3,7 +3,7 @@
3
3
  * Do not edit manually.
4
4
  * App Runtime API
5
5
  * App Runtime API extract (generated for client codegen).
6
- * OpenAPI spec version: 0.1.0
6
+ * OpenAPI spec version: 0.1.2
7
7
  */
8
8
  import type { AppDtoDataArrayEnvelope, AppDtoDataEnvelope, AppsControllerListParams, CreateAppDto, UpdateAppDto } from '../../models';
9
9
  export declare const getAppsControllerCreateUrl: () => string;
@@ -14,7 +14,7 @@ const appsControllerCreate = async (createAppDto, options) => {
14
14
  ...options,
15
15
  method: 'POST',
16
16
  headers: { 'Content-Type': 'application/json', ...options?.headers },
17
- body: JSON.stringify(createAppDto)
17
+ body: JSON.stringify(createAppDto),
18
18
  });
19
19
  };
20
20
  exports.appsControllerCreate = appsControllerCreate;
@@ -47,7 +47,7 @@ exports.getAppsControllerListUrl = getAppsControllerListUrl;
47
47
  const appsControllerList = async (params, options) => {
48
48
  return (0, custom_fetch_1.customFetch)((0, exports.getAppsControllerListUrl)(params), {
49
49
  ...options,
50
- method: 'GET'
50
+ method: 'GET',
51
51
  });
52
52
  };
53
53
  exports.appsControllerList = appsControllerList;
@@ -61,7 +61,7 @@ exports.getAppsControllerGetByIdUrl = getAppsControllerGetByIdUrl;
61
61
  const appsControllerGetById = async (id, options) => {
62
62
  return (0, custom_fetch_1.customFetch)((0, exports.getAppsControllerGetByIdUrl)(id), {
63
63
  ...options,
64
- method: 'GET'
64
+ method: 'GET',
65
65
  });
66
66
  };
67
67
  exports.appsControllerGetById = appsControllerGetById;
@@ -77,7 +77,7 @@ const appsControllerUpdate = async (id, updateAppDto, options) => {
77
77
  ...options,
78
78
  method: 'PATCH',
79
79
  headers: { 'Content-Type': 'application/json', ...options?.headers },
80
- body: JSON.stringify(updateAppDto)
80
+ body: JSON.stringify(updateAppDto),
81
81
  });
82
82
  };
83
83
  exports.appsControllerUpdate = appsControllerUpdate;
@@ -91,7 +91,7 @@ exports.getAppsControllerDeleteUrl = getAppsControllerDeleteUrl;
91
91
  const appsControllerDelete = async (id, options) => {
92
92
  return (0, custom_fetch_1.customFetch)((0, exports.getAppsControllerDeleteUrl)(id), {
93
93
  ...options,
94
- method: 'DELETE'
94
+ method: 'DELETE',
95
95
  });
96
96
  };
97
97
  exports.appsControllerDelete = appsControllerDelete;
@@ -105,7 +105,7 @@ exports.getAppsControllerArchiveUrl = getAppsControllerArchiveUrl;
105
105
  const appsControllerArchive = async (id, options) => {
106
106
  return (0, custom_fetch_1.customFetch)((0, exports.getAppsControllerArchiveUrl)(id), {
107
107
  ...options,
108
- method: 'POST'
108
+ method: 'POST',
109
109
  });
110
110
  };
111
111
  exports.appsControllerArchive = appsControllerArchive;
@@ -119,7 +119,7 @@ exports.getAppsControllerRefreshLockfileUrl = getAppsControllerRefreshLockfileUr
119
119
  const appsControllerRefreshLockfile = async (id, options) => {
120
120
  return (0, custom_fetch_1.customFetch)((0, exports.getAppsControllerRefreshLockfileUrl)(id), {
121
121
  ...options,
122
- method: 'POST'
122
+ method: 'POST',
123
123
  });
124
124
  };
125
125
  exports.appsControllerRefreshLockfile = appsControllerRefreshLockfile;
@@ -3,7 +3,7 @@
3
3
  * Do not edit manually.
4
4
  * App Runtime API
5
5
  * App Runtime API extract (generated for client codegen).
6
- * OpenAPI spec version: 0.1.0
6
+ * OpenAPI spec version: 0.1.2
7
7
  */
8
8
  import type { AudiencePolicyDtoDataArrayEnvelope, AudiencePolicyDtoDataEnvelope, CreateAudiencePolicyDto, UpdateAudiencePolicyDto } from '../../models';
9
9
  export declare const getAudiencePoliciesControllerCreateUrl: (appId: string) => string;
@@ -14,7 +14,7 @@ const audiencePoliciesControllerCreate = async (appId, createAudiencePolicyDto,
14
14
  ...options,
15
15
  method: 'POST',
16
16
  headers: { 'Content-Type': 'application/json', ...options?.headers },
17
- body: JSON.stringify(createAudiencePolicyDto)
17
+ body: JSON.stringify(createAudiencePolicyDto),
18
18
  });
19
19
  };
20
20
  exports.audiencePoliciesControllerCreate = audiencePoliciesControllerCreate;
@@ -28,7 +28,7 @@ exports.getAudiencePoliciesControllerListUrl = getAudiencePoliciesControllerList
28
28
  const audiencePoliciesControllerList = async (appId, options) => {
29
29
  return (0, custom_fetch_1.customFetch)((0, exports.getAudiencePoliciesControllerListUrl)(appId), {
30
30
  ...options,
31
- method: 'GET'
31
+ method: 'GET',
32
32
  });
33
33
  };
34
34
  exports.audiencePoliciesControllerList = audiencePoliciesControllerList;
@@ -44,7 +44,7 @@ const audiencePoliciesControllerUpdate = async (id, updateAudiencePolicyDto, opt
44
44
  ...options,
45
45
  method: 'PATCH',
46
46
  headers: { 'Content-Type': 'application/json', ...options?.headers },
47
- body: JSON.stringify(updateAudiencePolicyDto)
47
+ body: JSON.stringify(updateAudiencePolicyDto),
48
48
  });
49
49
  };
50
50
  exports.audiencePoliciesControllerUpdate = audiencePoliciesControllerUpdate;
@@ -58,7 +58,7 @@ exports.getAudiencePoliciesControllerDeleteUrl = getAudiencePoliciesControllerDe
58
58
  const audiencePoliciesControllerDelete = async (id, options) => {
59
59
  return (0, custom_fetch_1.customFetch)((0, exports.getAudiencePoliciesControllerDeleteUrl)(id), {
60
60
  ...options,
61
- method: 'DELETE'
61
+ method: 'DELETE',
62
62
  });
63
63
  };
64
64
  exports.audiencePoliciesControllerDelete = audiencePoliciesControllerDelete;
@@ -3,7 +3,7 @@
3
3
  * Do not edit manually.
4
4
  * App Runtime API
5
5
  * App Runtime API extract (generated for client codegen).
6
- * OpenAPI spec version: 0.1.0
6
+ * OpenAPI spec version: 0.1.2
7
7
  */
8
8
  import type { MintForInviteRequestDto, MintForInviteResponseDtoDataEnvelope } from '../../models';
9
9
  export declare const getInternalDelegatedSessionsControllerMintForInviteUrl: () => string;
@@ -14,7 +14,7 @@ const internalDelegatedSessionsControllerMintForInvite = async (mintForInviteReq
14
14
  ...options,
15
15
  method: 'POST',
16
16
  headers: { 'Content-Type': 'application/json', ...options?.headers },
17
- body: JSON.stringify(mintForInviteRequestDto)
17
+ body: JSON.stringify(mintForInviteRequestDto),
18
18
  });
19
19
  };
20
20
  exports.internalDelegatedSessionsControllerMintForInvite = internalDelegatedSessionsControllerMintForInvite;
@@ -3,7 +3,7 @@
3
3
  * Do not edit manually.
4
4
  * App Runtime API
5
5
  * App Runtime API extract (generated for client codegen).
6
- * OpenAPI spec version: 0.1.0
6
+ * OpenAPI spec version: 0.1.2
7
7
  */
8
8
  import type { DescribeObjectsResponseDtoDataEnvelope } from '../../models';
9
9
  export declare const getDescribeObjectsControllerDescribeUrl: () => string;
@@ -13,7 +13,7 @@ exports.getDescribeObjectsControllerDescribeUrl = getDescribeObjectsControllerDe
13
13
  const describeObjectsControllerDescribe = async (options) => {
14
14
  return (0, custom_fetch_1.customFetch)((0, exports.getDescribeObjectsControllerDescribeUrl)(), {
15
15
  ...options,
16
- method: 'GET'
16
+ method: 'GET',
17
17
  });
18
18
  };
19
19
  exports.describeObjectsControllerDescribe = describeObjectsControllerDescribe;
@@ -6,7 +6,7 @@ exports.orgErasureControllerErase = exports.getOrgErasureControllerEraseUrl = vo
6
6
  * Do not edit manually.
7
7
  * App Runtime API
8
8
  * App Runtime API extract (generated for client codegen).
9
- * OpenAPI spec version: 0.1.0
9
+ * OpenAPI spec version: 0.1.2
10
10
  */
11
11
  const custom_fetch_1 = require("../../custom-fetch");
12
12
  const getOrgErasureControllerEraseUrl = (orgId) => {
@@ -19,7 +19,7 @@ exports.getOrgErasureControllerEraseUrl = getOrgErasureControllerEraseUrl;
19
19
  const orgErasureControllerErase = async (orgId, options) => {
20
20
  return (0, custom_fetch_1.customFetch)((0, exports.getOrgErasureControllerEraseUrl)(orgId), {
21
21
  ...options,
22
- method: 'POST'
22
+ method: 'POST',
23
23
  });
24
24
  };
25
25
  exports.orgErasureControllerErase = orgErasureControllerErase;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
- export { configureClient, getClientConfig, ClientError, customFetch, type ClientConfig } from './custom-fetch';
1
+ export { configureClient, getClientConfig, ClientError, customFetch, type ClientConfig, } from './custom-fetch';
2
2
  export * from './models';
3
3
  export * from './endpoints/app-clients/app-clients';
4
+ export * from './endpoints/app-releases/app-releases';
4
5
  export * from './endpoints/apps/apps';
5
6
  export * from './endpoints/audience-policies/audience-policies';
6
7
  export * from './endpoints/delegated-sessions/delegated-sessions';
package/dist/index.js CHANGED
@@ -23,6 +23,7 @@ Object.defineProperty(exports, "ClientError", { enumerable: true, get: function
23
23
  Object.defineProperty(exports, "customFetch", { enumerable: true, get: function () { return custom_fetch_1.customFetch; } });
24
24
  __exportStar(require("./models"), exports);
25
25
  __exportStar(require("./endpoints/app-clients/app-clients"), exports);
26
+ __exportStar(require("./endpoints/app-releases/app-releases"), exports);
26
27
  __exportStar(require("./endpoints/apps/apps"), exports);
27
28
  __exportStar(require("./endpoints/audience-policies/audience-policies"), exports);
28
29
  __exportStar(require("./endpoints/delegated-sessions/delegated-sessions"), exports);
@@ -3,7 +3,7 @@
3
3
  * Do not edit manually.
4
4
  * App Runtime API
5
5
  * App Runtime API extract (generated for client codegen).
6
- * OpenAPI spec version: 0.1.0
6
+ * OpenAPI spec version: 0.1.2
7
7
  */
8
8
  import type { AppClientDtoRevokedAt } from './appClientDtoRevokedAt.js';
9
9
  export interface AppClientDto {
@@ -3,7 +3,7 @@
3
3
  * Do not edit manually.
4
4
  * App Runtime API
5
5
  * App Runtime API extract (generated for client codegen).
6
- * OpenAPI spec version: 0.1.0
6
+ * OpenAPI spec version: 0.1.2
7
7
  */
8
8
  import type { AppClientDto } from './appClientDto.js';
9
9
  export interface AppClientDtoDataArrayEnvelope {
@@ -3,7 +3,7 @@
3
3
  * Do not edit manually.
4
4
  * App Runtime API
5
5
  * App Runtime API extract (generated for client codegen).
6
- * OpenAPI spec version: 0.1.0
6
+ * OpenAPI spec version: 0.1.2
7
7
  */
8
8
  import type { AppClientDto } from './appClientDto.js';
9
9
  export interface AppClientDtoDataEnvelope {
@@ -3,7 +3,7 @@
3
3
  * Do not edit manually.
4
4
  * App Runtime API
5
5
  * App Runtime API extract (generated for client codegen).
6
- * OpenAPI spec version: 0.1.0
6
+ * OpenAPI spec version: 0.1.2
7
7
  */
8
8
  /**
9
9
  * @nullable
@@ -4,6 +4,6 @@
4
4
  * Do not edit manually.
5
5
  * App Runtime API
6
6
  * App Runtime API extract (generated for client codegen).
7
- * OpenAPI spec version: 0.1.0
7
+ * OpenAPI spec version: 0.1.2
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -3,7 +3,7 @@
3
3
  * Do not edit manually.
4
4
  * App Runtime API
5
5
  * App Runtime API extract (generated for client codegen).
6
- * OpenAPI spec version: 0.1.0
6
+ * OpenAPI spec version: 0.1.2
7
7
  */
8
8
  import type { AppLockfileDto } from './appLockfileDto.js';
9
9
  import type { BiomeInstallDto } from './biomeInstallDto.js';
@@ -3,7 +3,7 @@
3
3
  * Do not edit manually.
4
4
  * App Runtime API
5
5
  * App Runtime API extract (generated for client codegen).
6
- * OpenAPI spec version: 0.1.0
6
+ * OpenAPI spec version: 0.1.2
7
7
  */
8
8
  import type { AppDto } from './appDto.js';
9
9
  export interface AppDtoDataArrayEnvelope {
@@ -3,7 +3,7 @@
3
3
  * Do not edit manually.
4
4
  * App Runtime API
5
5
  * App Runtime API extract (generated for client codegen).
6
- * OpenAPI spec version: 0.1.0
6
+ * OpenAPI spec version: 0.1.2
7
7
  */
8
8
  import type { AppDto } from './appDto.js';
9
9
  export interface AppDtoDataEnvelope {
@@ -3,12 +3,13 @@
3
3
  * Do not edit manually.
4
4
  * App Runtime API
5
5
  * App Runtime API extract (generated for client codegen).
6
- * OpenAPI spec version: 0.1.0
6
+ * OpenAPI spec version: 0.1.2
7
7
  */
8
8
  import type { AppLockfileDtoAgents } from './appLockfileDtoAgents.js';
9
9
  import type { AppLockfileDtoBiomes } from './appLockfileDtoBiomes.js';
10
10
  import type { AppLockfileDtoCapabilities } from './appLockfileDtoCapabilities.js';
11
11
  import type { AppLockfileDtoDeliverableSpecs } from './appLockfileDtoDeliverableSpecs.js';
12
+ import type { AppLockfileDtoFunctions } from './appLockfileDtoFunctions.js';
12
13
  import type { AppLockfileDtoSkills } from './appLockfileDtoSkills.js';
13
14
  import type { AppLockfileDtoWorkflows } from './appLockfileDtoWorkflows.js';
14
15
  export interface AppLockfileDto {
@@ -19,6 +20,7 @@ export interface AppLockfileDto {
19
20
  /** Map of biome slug → chosen semver. */
20
21
  biomes: AppLockfileDtoBiomes;
21
22
  agents?: AppLockfileDtoAgents;
23
+ functions?: AppLockfileDtoFunctions;
22
24
  workflows?: AppLockfileDtoWorkflows;
23
25
  deliverableSpecs?: AppLockfileDtoDeliverableSpecs;
24
26
  skills?: AppLockfileDtoSkills;
@@ -3,7 +3,7 @@
3
3
  * Do not edit manually.
4
4
  * App Runtime API
5
5
  * App Runtime API extract (generated for client codegen).
6
- * OpenAPI spec version: 0.1.0
6
+ * OpenAPI spec version: 0.1.2
7
7
  */
8
8
  export type AppLockfileDtoAgents = {
9
9
  [key: string]: string;
@@ -4,6 +4,6 @@
4
4
  * Do not edit manually.
5
5
  * App Runtime API
6
6
  * App Runtime API extract (generated for client codegen).
7
- * OpenAPI spec version: 0.1.0
7
+ * OpenAPI spec version: 0.1.2
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -3,7 +3,7 @@
3
3
  * Do not edit manually.
4
4
  * App Runtime API
5
5
  * App Runtime API extract (generated for client codegen).
6
- * OpenAPI spec version: 0.1.0
6
+ * OpenAPI spec version: 0.1.2
7
7
  */
8
8
  /**
9
9
  * Map of biome slug → chosen semver.
@@ -4,6 +4,6 @@
4
4
  * Do not edit manually.
5
5
  * App Runtime API
6
6
  * App Runtime API extract (generated for client codegen).
7
- * OpenAPI spec version: 0.1.0
7
+ * OpenAPI spec version: 0.1.2
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -3,7 +3,7 @@
3
3
  * Do not edit manually.
4
4
  * App Runtime API
5
5
  * App Runtime API extract (generated for client codegen).
6
- * OpenAPI spec version: 0.1.0
6
+ * OpenAPI spec version: 0.1.2
7
7
  */
8
8
  /**
9
9
  * Map of `CapabilityRef` (sans `@major`) → chosen major.
@@ -4,6 +4,6 @@
4
4
  * Do not edit manually.
5
5
  * App Runtime API
6
6
  * App Runtime API extract (generated for client codegen).
7
- * OpenAPI spec version: 0.1.0
7
+ * OpenAPI spec version: 0.1.2
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -3,7 +3,7 @@
3
3
  * Do not edit manually.
4
4
  * App Runtime API
5
5
  * App Runtime API extract (generated for client codegen).
6
- * OpenAPI spec version: 0.1.0
6
+ * OpenAPI spec version: 0.1.2
7
7
  */
8
8
  export type AppLockfileDtoDeliverableSpecs = {
9
9
  [key: string]: string;
@@ -4,6 +4,6 @@
4
4
  * Do not edit manually.
5
5
  * App Runtime API
6
6
  * App Runtime API extract (generated for client codegen).
7
- * OpenAPI spec version: 0.1.0
7
+ * OpenAPI spec version: 0.1.2
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Generated by orval v8.16.0 🍺
3
+ * Do not edit manually.
4
+ * App Runtime API
5
+ * App Runtime API extract (generated for client codegen).
6
+ * OpenAPI spec version: 0.1.2
7
+ */
8
+ export type AppLockfileDtoFunctions = {
9
+ [key: string]: string;
10
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.16.0 🍺
4
+ * Do not edit manually.
5
+ * App Runtime API
6
+ * App Runtime API extract (generated for client codegen).
7
+ * OpenAPI spec version: 0.1.2
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -3,7 +3,7 @@
3
3
  * Do not edit manually.
4
4
  * App Runtime API
5
5
  * App Runtime API extract (generated for client codegen).
6
- * OpenAPI spec version: 0.1.0
6
+ * OpenAPI spec version: 0.1.2
7
7
  */
8
8
  export type AppLockfileDtoSkills = {
9
9
  [key: string]: string;
@@ -4,6 +4,6 @@
4
4
  * Do not edit manually.
5
5
  * App Runtime API
6
6
  * App Runtime API extract (generated for client codegen).
7
- * OpenAPI spec version: 0.1.0
7
+ * OpenAPI spec version: 0.1.2
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });