@terrantula/sdk 0.13.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { S as SnapshotOp, T as TokenSource, a as SchemaFn, P as ProjectNukeResponse, A as AuditExportConfigResponse, b as TestConnectionResponse, c as AuditExportRunResponse, E as ExportCatalogResult, d as AdminAuditListResponse, e as AdminOrgListResponse, f as AdminOrgDetail, g as AdminSuspendResponse, h as AdminProjectNukeResponse, i as AdminMetricsOverview, j as AdminGitHubInstallationListResponse } from './projects-D-LiD32g.mjs';
2
- export { k as AdminAuditEvent, l as AdminGitHubInstallation, m as AdminOrgMember, n as AdminOrgProject, o as AdminOrgSummary, p as TerrantulaError, w as withSchema } from './projects-D-LiD32g.mjs';
1
+ import { S as SnapshotOp, T as TokenSource, a as SchemaFn, P as ProjectNukeResponse, O as ObservationImportResult, A as AuditExportConfigResponse, b as TestConnectionResponse, c as AuditExportRunResponse, E as ExportCatalogResult, d as AdminAuditListResponse, e as AdminOrgListResponse, f as AdminOrgDetail, g as AdminSuspendResponse, h as AdminProjectNukeResponse, i as AdminMetricsOverview, j as AdminGitHubInstallationListResponse } from './projects-DmWHHY1a.mjs';
2
+ export { k as AdminAuditEvent, l as AdminGitHubInstallation, m as AdminOrgMember, n as AdminOrgProject, o as AdminOrgSummary, p as TerrantulaError, w as withSchema } from './projects-DmWHHY1a.mjs';
3
3
  import * as _terrantula_types from '@terrantula/types';
4
4
  export { RegistryInput, RegistryOutput } from '@terrantula/types';
5
5
  import * as zod from 'zod';
@@ -2424,6 +2424,22 @@ declare const projectApp: hono_hono_base.HonoBase<{
2424
2424
  };
2425
2425
  };
2426
2426
  }, "/deployment-targets"> | hono_types.MergeSchemaPath<{
2427
+ "/:name/members": {
2428
+ $get: {
2429
+ input: {
2430
+ param: {
2431
+ name: string;
2432
+ };
2433
+ };
2434
+ output: {
2435
+ set: string;
2436
+ members: string[];
2437
+ };
2438
+ outputFormat: "json";
2439
+ status: hono_utils_http_status.ContentfulStatusCode;
2440
+ };
2441
+ };
2442
+ } & {
2427
2443
  "/": {
2428
2444
  $get: {
2429
2445
  input: {};
@@ -9443,6 +9459,22 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
9443
9459
  deleted: true;
9444
9460
  name: string;
9445
9461
  }>;
9462
+ listMembers: SchemaFn<zod.ZodObject<{
9463
+ orgId: zod.ZodString;
9464
+ projectId: zod.ZodString;
9465
+ name: zod.ZodString;
9466
+ }, "strip", zod.ZodTypeAny, {
9467
+ name: string;
9468
+ orgId: string;
9469
+ projectId: string;
9470
+ }, {
9471
+ name: string;
9472
+ orgId: string;
9473
+ projectId: string;
9474
+ }>, {
9475
+ set: string;
9476
+ members: string[];
9477
+ }>;
9446
9478
  };
9447
9479
  entities: {
9448
9480
  list: SchemaFn<zod.ZodObject<{
@@ -26109,6 +26141,125 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
26109
26141
  }[];
26110
26142
  } | undefined;
26111
26143
  }>;
26144
+ observations: {
26145
+ importPayload: SchemaFn<zod.ZodObject<{
26146
+ observedAt: zod.ZodString;
26147
+ sources: zod.ZodArray<zod.ZodObject<{
26148
+ source: zod.ZodString;
26149
+ resources: zod.ZodDefault<zod.ZodArray<zod.ZodObject<{
26150
+ tfAddress: zod.ZodString;
26151
+ tfType: zod.ZodString;
26152
+ tfName: zod.ZodString;
26153
+ tfModule: zod.ZodOptional<zod.ZodString>;
26154
+ mode: zod.ZodEnum<["managed", "data"]>;
26155
+ attributes: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
26156
+ }, "strip", zod.ZodTypeAny, {
26157
+ mode: "data" | "managed";
26158
+ tfType: string;
26159
+ tfName: string;
26160
+ tfAddress: string;
26161
+ attributes: Record<string, unknown>;
26162
+ tfModule?: string | undefined;
26163
+ }, {
26164
+ mode: "data" | "managed";
26165
+ tfType: string;
26166
+ tfName: string;
26167
+ tfAddress: string;
26168
+ tfModule?: string | undefined;
26169
+ attributes?: Record<string, unknown> | undefined;
26170
+ }>, "many">>;
26171
+ dependencies: zod.ZodDefault<zod.ZodArray<zod.ZodObject<{
26172
+ fromAddress: zod.ZodString;
26173
+ toAddress: zod.ZodString;
26174
+ crossStackSource: zod.ZodOptional<zod.ZodString>;
26175
+ }, "strip", zod.ZodTypeAny, {
26176
+ fromAddress: string;
26177
+ toAddress: string;
26178
+ crossStackSource?: string | undefined;
26179
+ }, {
26180
+ fromAddress: string;
26181
+ toAddress: string;
26182
+ crossStackSource?: string | undefined;
26183
+ }>, "many">>;
26184
+ }, "strip", zod.ZodTypeAny, {
26185
+ source: string;
26186
+ resources: {
26187
+ mode: "data" | "managed";
26188
+ tfType: string;
26189
+ tfName: string;
26190
+ tfAddress: string;
26191
+ attributes: Record<string, unknown>;
26192
+ tfModule?: string | undefined;
26193
+ }[];
26194
+ dependencies: {
26195
+ fromAddress: string;
26196
+ toAddress: string;
26197
+ crossStackSource?: string | undefined;
26198
+ }[];
26199
+ }, {
26200
+ source: string;
26201
+ resources?: {
26202
+ mode: "data" | "managed";
26203
+ tfType: string;
26204
+ tfName: string;
26205
+ tfAddress: string;
26206
+ tfModule?: string | undefined;
26207
+ attributes?: Record<string, unknown> | undefined;
26208
+ }[] | undefined;
26209
+ dependencies?: {
26210
+ fromAddress: string;
26211
+ toAddress: string;
26212
+ crossStackSource?: string | undefined;
26213
+ }[] | undefined;
26214
+ }>, "many">;
26215
+ } & {
26216
+ orgId: zod.ZodString;
26217
+ projectId: zod.ZodString;
26218
+ envName: zod.ZodString;
26219
+ }, "strip", zod.ZodTypeAny, {
26220
+ orgId: string;
26221
+ projectId: string;
26222
+ envName: string;
26223
+ sources: {
26224
+ source: string;
26225
+ resources: {
26226
+ mode: "data" | "managed";
26227
+ tfType: string;
26228
+ tfName: string;
26229
+ tfAddress: string;
26230
+ attributes: Record<string, unknown>;
26231
+ tfModule?: string | undefined;
26232
+ }[];
26233
+ dependencies: {
26234
+ fromAddress: string;
26235
+ toAddress: string;
26236
+ crossStackSource?: string | undefined;
26237
+ }[];
26238
+ }[];
26239
+ observedAt: string;
26240
+ }, {
26241
+ orgId: string;
26242
+ projectId: string;
26243
+ envName: string;
26244
+ sources: {
26245
+ source: string;
26246
+ resources?: {
26247
+ mode: "data" | "managed";
26248
+ tfType: string;
26249
+ tfName: string;
26250
+ tfAddress: string;
26251
+ tfModule?: string | undefined;
26252
+ attributes?: Record<string, unknown> | undefined;
26253
+ }[] | undefined;
26254
+ dependencies?: {
26255
+ fromAddress: string;
26256
+ toAddress: string;
26257
+ crossStackSource?: string | undefined;
26258
+ }[] | undefined;
26259
+ }[];
26260
+ observedAt: string;
26261
+ }>, ObservationImportResult>;
26262
+ };
26112
26263
  catalogRevisions: {
26113
26264
  list: SchemaFn<zod.ZodObject<{
26114
26265
  orgId: zod.ZodString;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { S as SnapshotOp, T as TokenSource, a as SchemaFn, P as ProjectNukeResponse, A as AuditExportConfigResponse, b as TestConnectionResponse, c as AuditExportRunResponse, E as ExportCatalogResult, d as AdminAuditListResponse, e as AdminOrgListResponse, f as AdminOrgDetail, g as AdminSuspendResponse, h as AdminProjectNukeResponse, i as AdminMetricsOverview, j as AdminGitHubInstallationListResponse } from './projects-D-LiD32g.js';
2
- export { k as AdminAuditEvent, l as AdminGitHubInstallation, m as AdminOrgMember, n as AdminOrgProject, o as AdminOrgSummary, p as TerrantulaError, w as withSchema } from './projects-D-LiD32g.js';
1
+ import { S as SnapshotOp, T as TokenSource, a as SchemaFn, P as ProjectNukeResponse, O as ObservationImportResult, A as AuditExportConfigResponse, b as TestConnectionResponse, c as AuditExportRunResponse, E as ExportCatalogResult, d as AdminAuditListResponse, e as AdminOrgListResponse, f as AdminOrgDetail, g as AdminSuspendResponse, h as AdminProjectNukeResponse, i as AdminMetricsOverview, j as AdminGitHubInstallationListResponse } from './projects-DmWHHY1a.js';
2
+ export { k as AdminAuditEvent, l as AdminGitHubInstallation, m as AdminOrgMember, n as AdminOrgProject, o as AdminOrgSummary, p as TerrantulaError, w as withSchema } from './projects-DmWHHY1a.js';
3
3
  import * as _terrantula_types from '@terrantula/types';
4
4
  export { RegistryInput, RegistryOutput } from '@terrantula/types';
5
5
  import * as zod from 'zod';
@@ -2424,6 +2424,22 @@ declare const projectApp: hono_hono_base.HonoBase<{
2424
2424
  };
2425
2425
  };
2426
2426
  }, "/deployment-targets"> | hono_types.MergeSchemaPath<{
2427
+ "/:name/members": {
2428
+ $get: {
2429
+ input: {
2430
+ param: {
2431
+ name: string;
2432
+ };
2433
+ };
2434
+ output: {
2435
+ set: string;
2436
+ members: string[];
2437
+ };
2438
+ outputFormat: "json";
2439
+ status: hono_utils_http_status.ContentfulStatusCode;
2440
+ };
2441
+ };
2442
+ } & {
2427
2443
  "/": {
2428
2444
  $get: {
2429
2445
  input: {};
@@ -9443,6 +9459,22 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
9443
9459
  deleted: true;
9444
9460
  name: string;
9445
9461
  }>;
9462
+ listMembers: SchemaFn<zod.ZodObject<{
9463
+ orgId: zod.ZodString;
9464
+ projectId: zod.ZodString;
9465
+ name: zod.ZodString;
9466
+ }, "strip", zod.ZodTypeAny, {
9467
+ name: string;
9468
+ orgId: string;
9469
+ projectId: string;
9470
+ }, {
9471
+ name: string;
9472
+ orgId: string;
9473
+ projectId: string;
9474
+ }>, {
9475
+ set: string;
9476
+ members: string[];
9477
+ }>;
9446
9478
  };
9447
9479
  entities: {
9448
9480
  list: SchemaFn<zod.ZodObject<{
@@ -26109,6 +26141,125 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
26109
26141
  }[];
26110
26142
  } | undefined;
26111
26143
  }>;
26144
+ observations: {
26145
+ importPayload: SchemaFn<zod.ZodObject<{
26146
+ observedAt: zod.ZodString;
26147
+ sources: zod.ZodArray<zod.ZodObject<{
26148
+ source: zod.ZodString;
26149
+ resources: zod.ZodDefault<zod.ZodArray<zod.ZodObject<{
26150
+ tfAddress: zod.ZodString;
26151
+ tfType: zod.ZodString;
26152
+ tfName: zod.ZodString;
26153
+ tfModule: zod.ZodOptional<zod.ZodString>;
26154
+ mode: zod.ZodEnum<["managed", "data"]>;
26155
+ attributes: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
26156
+ }, "strip", zod.ZodTypeAny, {
26157
+ mode: "data" | "managed";
26158
+ tfType: string;
26159
+ tfName: string;
26160
+ tfAddress: string;
26161
+ attributes: Record<string, unknown>;
26162
+ tfModule?: string | undefined;
26163
+ }, {
26164
+ mode: "data" | "managed";
26165
+ tfType: string;
26166
+ tfName: string;
26167
+ tfAddress: string;
26168
+ tfModule?: string | undefined;
26169
+ attributes?: Record<string, unknown> | undefined;
26170
+ }>, "many">>;
26171
+ dependencies: zod.ZodDefault<zod.ZodArray<zod.ZodObject<{
26172
+ fromAddress: zod.ZodString;
26173
+ toAddress: zod.ZodString;
26174
+ crossStackSource: zod.ZodOptional<zod.ZodString>;
26175
+ }, "strip", zod.ZodTypeAny, {
26176
+ fromAddress: string;
26177
+ toAddress: string;
26178
+ crossStackSource?: string | undefined;
26179
+ }, {
26180
+ fromAddress: string;
26181
+ toAddress: string;
26182
+ crossStackSource?: string | undefined;
26183
+ }>, "many">>;
26184
+ }, "strip", zod.ZodTypeAny, {
26185
+ source: string;
26186
+ resources: {
26187
+ mode: "data" | "managed";
26188
+ tfType: string;
26189
+ tfName: string;
26190
+ tfAddress: string;
26191
+ attributes: Record<string, unknown>;
26192
+ tfModule?: string | undefined;
26193
+ }[];
26194
+ dependencies: {
26195
+ fromAddress: string;
26196
+ toAddress: string;
26197
+ crossStackSource?: string | undefined;
26198
+ }[];
26199
+ }, {
26200
+ source: string;
26201
+ resources?: {
26202
+ mode: "data" | "managed";
26203
+ tfType: string;
26204
+ tfName: string;
26205
+ tfAddress: string;
26206
+ tfModule?: string | undefined;
26207
+ attributes?: Record<string, unknown> | undefined;
26208
+ }[] | undefined;
26209
+ dependencies?: {
26210
+ fromAddress: string;
26211
+ toAddress: string;
26212
+ crossStackSource?: string | undefined;
26213
+ }[] | undefined;
26214
+ }>, "many">;
26215
+ } & {
26216
+ orgId: zod.ZodString;
26217
+ projectId: zod.ZodString;
26218
+ envName: zod.ZodString;
26219
+ }, "strip", zod.ZodTypeAny, {
26220
+ orgId: string;
26221
+ projectId: string;
26222
+ envName: string;
26223
+ sources: {
26224
+ source: string;
26225
+ resources: {
26226
+ mode: "data" | "managed";
26227
+ tfType: string;
26228
+ tfName: string;
26229
+ tfAddress: string;
26230
+ attributes: Record<string, unknown>;
26231
+ tfModule?: string | undefined;
26232
+ }[];
26233
+ dependencies: {
26234
+ fromAddress: string;
26235
+ toAddress: string;
26236
+ crossStackSource?: string | undefined;
26237
+ }[];
26238
+ }[];
26239
+ observedAt: string;
26240
+ }, {
26241
+ orgId: string;
26242
+ projectId: string;
26243
+ envName: string;
26244
+ sources: {
26245
+ source: string;
26246
+ resources?: {
26247
+ mode: "data" | "managed";
26248
+ tfType: string;
26249
+ tfName: string;
26250
+ tfAddress: string;
26251
+ tfModule?: string | undefined;
26252
+ attributes?: Record<string, unknown> | undefined;
26253
+ }[] | undefined;
26254
+ dependencies?: {
26255
+ fromAddress: string;
26256
+ toAddress: string;
26257
+ crossStackSource?: string | undefined;
26258
+ }[] | undefined;
26259
+ }[];
26260
+ observedAt: string;
26261
+ }>, ObservationImportResult>;
26262
+ };
26112
26263
  catalogRevisions: {
26113
26264
  list: SchemaFn<zod.ZodObject<{
26114
26265
  orgId: zod.ZodString;