frameio 4.2.1 → 4.2.3

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 (112) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/Client.d.ts +30 -30
  3. package/dist/cjs/Client.js +38 -38
  4. package/dist/cjs/api/resources/collections/client/Client.d.ts +17 -17
  5. package/dist/cjs/api/resources/collections/client/Client.js +30 -30
  6. package/dist/cjs/api/resources/files/client/Client.d.ts +96 -96
  7. package/dist/cjs/api/resources/files/client/Client.js +175 -175
  8. package/dist/cjs/api/resources/folders/client/Client.d.ts +11 -11
  9. package/dist/cjs/api/resources/folders/client/Client.js +29 -29
  10. package/dist/cjs/api/resources/metadata/client/Client.d.ts +27 -27
  11. package/dist/cjs/api/resources/metadata/client/Client.js +50 -50
  12. package/dist/cjs/api/resources/metadata/client/requests/BulkUpdateMetadataParams.d.ts +4 -4
  13. package/dist/cjs/api/resources/projectPermissions/client/Client.d.ts +24 -24
  14. package/dist/cjs/api/resources/projectPermissions/client/Client.js +87 -87
  15. package/dist/cjs/api/resources/projects/client/Client.d.ts +56 -0
  16. package/dist/cjs/api/resources/projects/client/Client.js +166 -0
  17. package/dist/cjs/api/resources/projects/client/requests/AccountProjectsIndexRequest.d.ts +24 -0
  18. package/dist/cjs/api/resources/projects/client/requests/AccountProjectsIndexRequest.js +3 -0
  19. package/dist/cjs/api/resources/projects/client/requests/InvitedProjectsIndexRequest.d.ts +24 -0
  20. package/dist/cjs/api/resources/projects/client/requests/InvitedProjectsIndexRequest.js +3 -0
  21. package/dist/cjs/api/resources/projects/client/requests/index.d.ts +2 -0
  22. package/dist/cjs/api/resources/projects/types/AccountProjectsIndexRequestSort.d.ts +8 -0
  23. package/dist/cjs/api/resources/projects/types/AccountProjectsIndexRequestSort.js +11 -0
  24. package/dist/cjs/api/resources/projects/types/InvitedProjectsIndexRequestSort.d.ts +8 -0
  25. package/dist/cjs/api/resources/projects/types/InvitedProjectsIndexRequestSort.js +11 -0
  26. package/dist/cjs/api/resources/projects/types/index.d.ts +2 -0
  27. package/dist/cjs/api/resources/projects/types/index.js +2 -0
  28. package/dist/cjs/api/resources/shares/client/Client.d.ts +49 -49
  29. package/dist/cjs/api/resources/shares/client/Client.js +146 -146
  30. package/dist/cjs/api/resources/shares/client/requests/AddAssetParams.d.ts +1 -1
  31. package/dist/cjs/api/resources/shares/client/requests/CreateShareParams.d.ts +2 -2
  32. package/dist/cjs/api/resources/shares/client/requests/UpdateShareParams.d.ts +1 -1
  33. package/dist/cjs/api/resources/versionStacks/client/Client.d.ts +64 -64
  34. package/dist/cjs/api/resources/versionStacks/client/Client.js +121 -121
  35. package/dist/cjs/api/resources/versionStacks/client/requests/VersionStackCreateParams.d.ts +1 -1
  36. package/dist/cjs/api/resources/workspacePermissions/client/Client.d.ts +24 -24
  37. package/dist/cjs/api/resources/workspacePermissions/client/Client.js +87 -87
  38. package/dist/cjs/api/resources/workspaces/client/Client.d.ts +34 -34
  39. package/dist/cjs/api/resources/workspaces/client/Client.js +141 -141
  40. package/dist/cjs/api/types/AuditLogwithIncludes.d.ts +6 -0
  41. package/dist/cjs/api/types/AuditLogwithIncludes.js +6 -0
  42. package/dist/cjs/api/types/Filters.d.ts +6 -0
  43. package/dist/cjs/api/types/Filters.js +6 -0
  44. package/dist/cjs/api/types/LongTextDefinition.d.ts +0 -16
  45. package/dist/cjs/api/types/LongTextDefinition.js +0 -17
  46. package/dist/cjs/api/types/NumberDefinition.d.ts +16 -0
  47. package/dist/cjs/api/types/NumberDefinition.js +13 -0
  48. package/dist/cjs/api/types/TextDefinition.d.ts +0 -16
  49. package/dist/cjs/api/types/TextDefinition.js +0 -17
  50. package/dist/cjs/api/types/ToggleDefinition.d.ts +16 -0
  51. package/dist/cjs/api/types/ToggleDefinition.js +17 -0
  52. package/dist/cjs/api/types/UserSingleDefinition.d.ts +0 -16
  53. package/dist/cjs/api/types/UserSingleDefinition.js +0 -13
  54. package/dist/cjs/version.d.ts +1 -1
  55. package/dist/cjs/version.js +1 -1
  56. package/dist/esm/BaseClient.mjs +2 -2
  57. package/dist/esm/Client.d.mts +30 -30
  58. package/dist/esm/Client.mjs +38 -38
  59. package/dist/esm/api/resources/collections/client/Client.d.mts +17 -17
  60. package/dist/esm/api/resources/collections/client/Client.mjs +30 -30
  61. package/dist/esm/api/resources/files/client/Client.d.mts +96 -96
  62. package/dist/esm/api/resources/files/client/Client.mjs +175 -175
  63. package/dist/esm/api/resources/folders/client/Client.d.mts +11 -11
  64. package/dist/esm/api/resources/folders/client/Client.mjs +29 -29
  65. package/dist/esm/api/resources/metadata/client/Client.d.mts +27 -27
  66. package/dist/esm/api/resources/metadata/client/Client.mjs +50 -50
  67. package/dist/esm/api/resources/metadata/client/requests/BulkUpdateMetadataParams.d.mts +4 -4
  68. package/dist/esm/api/resources/projectPermissions/client/Client.d.mts +24 -24
  69. package/dist/esm/api/resources/projectPermissions/client/Client.mjs +87 -87
  70. package/dist/esm/api/resources/projects/client/Client.d.mts +56 -0
  71. package/dist/esm/api/resources/projects/client/Client.mjs +166 -0
  72. package/dist/esm/api/resources/projects/client/requests/AccountProjectsIndexRequest.d.mts +24 -0
  73. package/dist/esm/api/resources/projects/client/requests/AccountProjectsIndexRequest.mjs +2 -0
  74. package/dist/esm/api/resources/projects/client/requests/InvitedProjectsIndexRequest.d.mts +24 -0
  75. package/dist/esm/api/resources/projects/client/requests/InvitedProjectsIndexRequest.mjs +2 -0
  76. package/dist/esm/api/resources/projects/client/requests/index.d.mts +2 -0
  77. package/dist/esm/api/resources/projects/types/AccountProjectsIndexRequestSort.d.mts +8 -0
  78. package/dist/esm/api/resources/projects/types/AccountProjectsIndexRequestSort.mjs +8 -0
  79. package/dist/esm/api/resources/projects/types/InvitedProjectsIndexRequestSort.d.mts +8 -0
  80. package/dist/esm/api/resources/projects/types/InvitedProjectsIndexRequestSort.mjs +8 -0
  81. package/dist/esm/api/resources/projects/types/index.d.mts +2 -0
  82. package/dist/esm/api/resources/projects/types/index.mjs +2 -0
  83. package/dist/esm/api/resources/shares/client/Client.d.mts +49 -49
  84. package/dist/esm/api/resources/shares/client/Client.mjs +146 -146
  85. package/dist/esm/api/resources/shares/client/requests/AddAssetParams.d.mts +1 -1
  86. package/dist/esm/api/resources/shares/client/requests/CreateShareParams.d.mts +2 -2
  87. package/dist/esm/api/resources/shares/client/requests/UpdateShareParams.d.mts +1 -1
  88. package/dist/esm/api/resources/versionStacks/client/Client.d.mts +64 -64
  89. package/dist/esm/api/resources/versionStacks/client/Client.mjs +121 -121
  90. package/dist/esm/api/resources/versionStacks/client/requests/VersionStackCreateParams.d.mts +1 -1
  91. package/dist/esm/api/resources/workspacePermissions/client/Client.d.mts +24 -24
  92. package/dist/esm/api/resources/workspacePermissions/client/Client.mjs +87 -87
  93. package/dist/esm/api/resources/workspaces/client/Client.d.mts +34 -34
  94. package/dist/esm/api/resources/workspaces/client/Client.mjs +141 -141
  95. package/dist/esm/api/types/AuditLogwithIncludes.d.mts +6 -0
  96. package/dist/esm/api/types/AuditLogwithIncludes.mjs +6 -0
  97. package/dist/esm/api/types/Filters.d.mts +6 -0
  98. package/dist/esm/api/types/Filters.mjs +6 -0
  99. package/dist/esm/api/types/LongTextDefinition.d.mts +0 -16
  100. package/dist/esm/api/types/LongTextDefinition.mjs +1 -16
  101. package/dist/esm/api/types/NumberDefinition.d.mts +16 -0
  102. package/dist/esm/api/types/NumberDefinition.mjs +13 -0
  103. package/dist/esm/api/types/TextDefinition.d.mts +0 -16
  104. package/dist/esm/api/types/TextDefinition.mjs +1 -16
  105. package/dist/esm/api/types/ToggleDefinition.d.mts +16 -0
  106. package/dist/esm/api/types/ToggleDefinition.mjs +16 -1
  107. package/dist/esm/api/types/UserSingleDefinition.d.mts +0 -16
  108. package/dist/esm/api/types/UserSingleDefinition.mjs +0 -13
  109. package/dist/esm/version.d.mts +1 -1
  110. package/dist/esm/version.mjs +1 -1
  111. package/package.json +112 -112
  112. package/reference.md +1392 -1234
@@ -44,8 +44,8 @@ function normalizeClientOptions(options) {
44
44
  const headers = (0, headers_js_1.mergeHeaders)({
45
45
  "X-Fern-Language": "JavaScript",
46
46
  "X-Fern-SDK-Name": "frameio",
47
- "X-Fern-SDK-Version": "4.2.1",
48
- "User-Agent": "frameio/4.2.1",
47
+ "X-Fern-SDK-Version": "4.2.3",
48
+ "User-Agent": "frameio/4.2.3",
49
49
  "X-Fern-Runtime": core.RUNTIME.type,
50
50
  "X-Fern-Runtime-Version": core.RUNTIME.version,
51
51
  "user-agent": (_a = options === null || options === void 0 ? void 0 : options.userAgent) !== null && _a !== void 0 ? _a : "frameio-ts",
@@ -28,47 +28,47 @@ export declare namespace FrameioClient {
28
28
  }
29
29
  export declare class FrameioClient {
30
30
  protected readonly _options: NormalizedClientOptionsWithAuth<FrameioClient.Options>;
31
- protected _customActions: CustomActionsClient | undefined;
32
- protected _metadataFields: MetadataFieldsClient | undefined;
33
- protected _projectPermissions: ProjectPermissionsClient | undefined;
34
- protected _folders: FoldersClient | undefined;
35
- protected _versionStacks: VersionStacksClient | undefined;
36
- protected _accountPermissions: AccountPermissionsClient | undefined;
31
+ protected _search: SearchClient | undefined;
37
32
  protected _comments: CommentsClient | undefined;
38
- protected _accounts: AccountsClient | undefined;
39
- protected _webhooks: WebhooksClient | undefined;
40
- protected _workspacePermissions: WorkspacePermissionsClient | undefined;
41
- protected _groups: GroupsClient | undefined;
42
33
  protected _shares: SharesClient | undefined;
43
- protected _metadata: MetadataClient | undefined;
44
- protected _files: FilesClient | undefined;
45
34
  protected _users: UsersClient | undefined;
46
- protected _projects: ProjectsClient | undefined;
35
+ protected _collections: CollectionsClient | undefined;
36
+ protected _files: FilesClient | undefined;
37
+ protected _metadataFields: MetadataFieldsClient | undefined;
38
+ protected _customActions: CustomActionsClient | undefined;
39
+ protected _workspacePermissions: WorkspacePermissionsClient | undefined;
40
+ protected _versionStacks: VersionStacksClient | undefined;
47
41
  protected _folderPermissions: FolderPermissionsClient | undefined;
42
+ protected _metadata: MetadataClient | undefined;
43
+ protected _groups: GroupsClient | undefined;
44
+ protected _projects: ProjectsClient | undefined;
48
45
  protected _workspaces: WorkspacesClient | undefined;
49
- protected _collections: CollectionsClient | undefined;
50
- protected _search: SearchClient | undefined;
46
+ protected _accounts: AccountsClient | undefined;
47
+ protected _webhooks: WebhooksClient | undefined;
48
+ protected _folders: FoldersClient | undefined;
49
+ protected _accountPermissions: AccountPermissionsClient | undefined;
50
+ protected _projectPermissions: ProjectPermissionsClient | undefined;
51
51
  constructor(options: FrameioClient.Options);
52
- get customActions(): CustomActionsClient;
53
- get metadataFields(): MetadataFieldsClient;
54
- get projectPermissions(): ProjectPermissionsClient;
55
- get folders(): FoldersClient;
56
- get versionStacks(): VersionStacksClient;
57
- get accountPermissions(): AccountPermissionsClient;
52
+ get search(): SearchClient;
58
53
  get comments(): CommentsClient;
59
- get accounts(): AccountsClient;
60
- get webhooks(): WebhooksClient;
61
- get workspacePermissions(): WorkspacePermissionsClient;
62
- get groups(): GroupsClient;
63
54
  get shares(): SharesClient;
64
- get metadata(): MetadataClient;
65
- get files(): FilesClient;
66
55
  get users(): UsersClient;
67
- get projects(): ProjectsClient;
56
+ get collections(): CollectionsClient;
57
+ get files(): FilesClient;
58
+ get metadataFields(): MetadataFieldsClient;
59
+ get customActions(): CustomActionsClient;
60
+ get workspacePermissions(): WorkspacePermissionsClient;
61
+ get versionStacks(): VersionStacksClient;
68
62
  get folderPermissions(): FolderPermissionsClient;
63
+ get metadata(): MetadataClient;
64
+ get groups(): GroupsClient;
65
+ get projects(): ProjectsClient;
69
66
  get workspaces(): WorkspacesClient;
70
- get collections(): CollectionsClient;
71
- get search(): SearchClient;
67
+ get accounts(): AccountsClient;
68
+ get webhooks(): WebhooksClient;
69
+ get folders(): FoldersClient;
70
+ get accountPermissions(): AccountPermissionsClient;
71
+ get projectPermissions(): ProjectPermissionsClient;
72
72
  /**
73
73
  * Make a passthrough request using the SDK's configured auth, retry, logging, etc.
74
74
  * This is useful for making requests to endpoints not yet supported in the SDK.
@@ -70,85 +70,85 @@ class FrameioClient {
70
70
  constructor(options) {
71
71
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
72
72
  }
73
- get customActions() {
74
- var _a;
75
- return ((_a = this._customActions) !== null && _a !== void 0 ? _a : (this._customActions = new Client_js_5.CustomActionsClient(this._options)));
76
- }
77
- get metadataFields() {
73
+ get search() {
78
74
  var _a;
79
- return ((_a = this._metadataFields) !== null && _a !== void 0 ? _a : (this._metadataFields = new Client_js_11.MetadataFieldsClient(this._options)));
75
+ return ((_a = this._search) !== null && _a !== void 0 ? _a : (this._search = new Client_js_14.SearchClient(this._options)));
80
76
  }
81
- get projectPermissions() {
77
+ get comments() {
82
78
  var _a;
83
- return ((_a = this._projectPermissions) !== null && _a !== void 0 ? _a : (this._projectPermissions = new Client_js_12.ProjectPermissionsClient(this._options)));
79
+ return ((_a = this._comments) !== null && _a !== void 0 ? _a : (this._comments = new Client_js_4.CommentsClient(this._options)));
84
80
  }
85
- get folders() {
81
+ get shares() {
86
82
  var _a;
87
- return ((_a = this._folders) !== null && _a !== void 0 ? _a : (this._folders = new Client_js_8.FoldersClient(this._options)));
83
+ return ((_a = this._shares) !== null && _a !== void 0 ? _a : (this._shares = new Client_js_15.SharesClient(this._options)));
88
84
  }
89
- get versionStacks() {
85
+ get users() {
90
86
  var _a;
91
- return ((_a = this._versionStacks) !== null && _a !== void 0 ? _a : (this._versionStacks = new Client_js_17.VersionStacksClient(this._options)));
87
+ return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_js_16.UsersClient(this._options)));
92
88
  }
93
- get accountPermissions() {
89
+ get collections() {
94
90
  var _a;
95
- return ((_a = this._accountPermissions) !== null && _a !== void 0 ? _a : (this._accountPermissions = new Client_js_1.AccountPermissionsClient(this._options)));
91
+ return ((_a = this._collections) !== null && _a !== void 0 ? _a : (this._collections = new Client_js_3.CollectionsClient(this._options)));
96
92
  }
97
- get comments() {
93
+ get files() {
98
94
  var _a;
99
- return ((_a = this._comments) !== null && _a !== void 0 ? _a : (this._comments = new Client_js_4.CommentsClient(this._options)));
95
+ return ((_a = this._files) !== null && _a !== void 0 ? _a : (this._files = new Client_js_6.FilesClient(this._options)));
100
96
  }
101
- get accounts() {
97
+ get metadataFields() {
102
98
  var _a;
103
- return ((_a = this._accounts) !== null && _a !== void 0 ? _a : (this._accounts = new Client_js_2.AccountsClient(this._options)));
99
+ return ((_a = this._metadataFields) !== null && _a !== void 0 ? _a : (this._metadataFields = new Client_js_11.MetadataFieldsClient(this._options)));
104
100
  }
105
- get webhooks() {
101
+ get customActions() {
106
102
  var _a;
107
- return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_js_18.WebhooksClient(this._options)));
103
+ return ((_a = this._customActions) !== null && _a !== void 0 ? _a : (this._customActions = new Client_js_5.CustomActionsClient(this._options)));
108
104
  }
109
105
  get workspacePermissions() {
110
106
  var _a;
111
107
  return ((_a = this._workspacePermissions) !== null && _a !== void 0 ? _a : (this._workspacePermissions = new Client_js_19.WorkspacePermissionsClient(this._options)));
112
108
  }
113
- get groups() {
109
+ get versionStacks() {
114
110
  var _a;
115
- return ((_a = this._groups) !== null && _a !== void 0 ? _a : (this._groups = new Client_js_9.GroupsClient(this._options)));
111
+ return ((_a = this._versionStacks) !== null && _a !== void 0 ? _a : (this._versionStacks = new Client_js_17.VersionStacksClient(this._options)));
116
112
  }
117
- get shares() {
113
+ get folderPermissions() {
118
114
  var _a;
119
- return ((_a = this._shares) !== null && _a !== void 0 ? _a : (this._shares = new Client_js_15.SharesClient(this._options)));
115
+ return ((_a = this._folderPermissions) !== null && _a !== void 0 ? _a : (this._folderPermissions = new Client_js_7.FolderPermissionsClient(this._options)));
120
116
  }
121
117
  get metadata() {
122
118
  var _a;
123
119
  return ((_a = this._metadata) !== null && _a !== void 0 ? _a : (this._metadata = new Client_js_10.MetadataClient(this._options)));
124
120
  }
125
- get files() {
126
- var _a;
127
- return ((_a = this._files) !== null && _a !== void 0 ? _a : (this._files = new Client_js_6.FilesClient(this._options)));
128
- }
129
- get users() {
121
+ get groups() {
130
122
  var _a;
131
- return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_js_16.UsersClient(this._options)));
123
+ return ((_a = this._groups) !== null && _a !== void 0 ? _a : (this._groups = new Client_js_9.GroupsClient(this._options)));
132
124
  }
133
125
  get projects() {
134
126
  var _a;
135
127
  return ((_a = this._projects) !== null && _a !== void 0 ? _a : (this._projects = new Client_js_13.ProjectsClient(this._options)));
136
128
  }
137
- get folderPermissions() {
138
- var _a;
139
- return ((_a = this._folderPermissions) !== null && _a !== void 0 ? _a : (this._folderPermissions = new Client_js_7.FolderPermissionsClient(this._options)));
140
- }
141
129
  get workspaces() {
142
130
  var _a;
143
131
  return ((_a = this._workspaces) !== null && _a !== void 0 ? _a : (this._workspaces = new Client_js_20.WorkspacesClient(this._options)));
144
132
  }
145
- get collections() {
133
+ get accounts() {
146
134
  var _a;
147
- return ((_a = this._collections) !== null && _a !== void 0 ? _a : (this._collections = new Client_js_3.CollectionsClient(this._options)));
135
+ return ((_a = this._accounts) !== null && _a !== void 0 ? _a : (this._accounts = new Client_js_2.AccountsClient(this._options)));
148
136
  }
149
- get search() {
137
+ get webhooks() {
150
138
  var _a;
151
- return ((_a = this._search) !== null && _a !== void 0 ? _a : (this._search = new Client_js_14.SearchClient(this._options)));
139
+ return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_js_18.WebhooksClient(this._options)));
140
+ }
141
+ get folders() {
142
+ var _a;
143
+ return ((_a = this._folders) !== null && _a !== void 0 ? _a : (this._folders = new Client_js_8.FoldersClient(this._options)));
144
+ }
145
+ get accountPermissions() {
146
+ var _a;
147
+ return ((_a = this._accountPermissions) !== null && _a !== void 0 ? _a : (this._accountPermissions = new Client_js_1.AccountPermissionsClient(this._options)));
148
+ }
149
+ get projectPermissions() {
150
+ var _a;
151
+ return ((_a = this._projectPermissions) !== null && _a !== void 0 ? _a : (this._projectPermissions = new Client_js_12.ProjectPermissionsClient(this._options)));
152
152
  }
153
153
  /**
154
154
  * Make a passthrough request using the SDK's configured auth, retry, logging, etc.
@@ -14,11 +14,11 @@ export declare class CollectionsClient {
14
14
  protected readonly _options: NormalizedClientOptionsWithAuth<CollectionsClient.Options>;
15
15
  constructor(options: CollectionsClient.Options);
16
16
  /**
17
- * Show collection details. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
17
+ * List collections for a project. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
18
18
  *
19
19
  * @param {Frameio.Uuid} account_id
20
- * @param {Frameio.Uuid} collection_id
21
- * @param {Frameio.CollectionsShowRequest} request
20
+ * @param {Frameio.Uuid} project_id
21
+ * @param {Frameio.CollectionsIndexRequest} request
22
22
  * @param {CollectionsClient.RequestOptions} requestOptions - Request-specific configuration.
23
23
  *
24
24
  * @throws {@link Frameio.BadRequestError}
@@ -30,18 +30,21 @@ export declare class CollectionsClient {
30
30
  * @throws {@link Frameio.TooManyRequestsError}
31
31
  *
32
32
  * @example
33
- * await client.collections.show("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
34
- * include: "creator,project"
33
+ * await client.collections.index("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
34
+ * include: "creator,project",
35
+ * after: "<opaque_cursor>",
36
+ * page_size: 10,
37
+ * include_total_count: false
35
38
  * })
36
39
  */
37
- show(account_id: Frameio.Uuid, collection_id: Frameio.Uuid, request?: Frameio.CollectionsShowRequest, requestOptions?: CollectionsClient.RequestOptions): core.HttpResponsePromise<Frameio.CollectionResponse>;
38
- private __show;
40
+ index(account_id: Frameio.Uuid, project_id: Frameio.Uuid, request?: Frameio.CollectionsIndexRequest, requestOptions?: CollectionsClient.RequestOptions): core.HttpResponsePromise<Frameio.CollectionsResponse>;
41
+ private __index;
39
42
  /**
40
- * List collections for a project. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
43
+ * Show collection details. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
41
44
  *
42
45
  * @param {Frameio.Uuid} account_id
43
- * @param {Frameio.Uuid} project_id
44
- * @param {Frameio.CollectionsIndexRequest} request
46
+ * @param {Frameio.Uuid} collection_id
47
+ * @param {Frameio.CollectionsShowRequest} request
45
48
  * @param {CollectionsClient.RequestOptions} requestOptions - Request-specific configuration.
46
49
  *
47
50
  * @throws {@link Frameio.BadRequestError}
@@ -53,13 +56,10 @@ export declare class CollectionsClient {
53
56
  * @throws {@link Frameio.TooManyRequestsError}
54
57
  *
55
58
  * @example
56
- * await client.collections.index("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
57
- * include: "creator,project",
58
- * after: "<opaque_cursor>",
59
- * page_size: 10,
60
- * include_total_count: false
59
+ * await client.collections.show("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
60
+ * include: "creator,project"
61
61
  * })
62
62
  */
63
- index(account_id: Frameio.Uuid, project_id: Frameio.Uuid, request?: Frameio.CollectionsIndexRequest, requestOptions?: CollectionsClient.RequestOptions): core.HttpResponsePromise<Frameio.CollectionsResponse>;
64
- private __index;
63
+ show(account_id: Frameio.Uuid, collection_id: Frameio.Uuid, request?: Frameio.CollectionsShowRequest, requestOptions?: CollectionsClient.RequestOptions): core.HttpResponsePromise<Frameio.CollectionResponse>;
64
+ private __show;
65
65
  }
@@ -59,11 +59,11 @@ class CollectionsClient {
59
59
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
60
60
  }
61
61
  /**
62
- * Show collection details. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
62
+ * List collections for a project. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
63
63
  *
64
64
  * @param {Frameio.Uuid} account_id
65
- * @param {Frameio.Uuid} collection_id
66
- * @param {Frameio.CollectionsShowRequest} request
65
+ * @param {Frameio.Uuid} project_id
66
+ * @param {Frameio.CollectionsIndexRequest} request
67
67
  * @param {CollectionsClient.RequestOptions} requestOptions - Request-specific configuration.
68
68
  *
69
69
  * @throws {@link Frameio.BadRequestError}
@@ -75,24 +75,30 @@ class CollectionsClient {
75
75
  * @throws {@link Frameio.TooManyRequestsError}
76
76
  *
77
77
  * @example
78
- * await client.collections.show("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
79
- * include: "creator,project"
78
+ * await client.collections.index("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
79
+ * include: "creator,project",
80
+ * after: "<opaque_cursor>",
81
+ * page_size: 10,
82
+ * include_total_count: false
80
83
  * })
81
84
  */
82
- show(account_id, collection_id, request = {}, requestOptions) {
83
- return core.HttpResponsePromise.fromPromise(this.__show(account_id, collection_id, request, requestOptions));
85
+ index(account_id, project_id, request = {}, requestOptions) {
86
+ return core.HttpResponsePromise.fromPromise(this.__index(account_id, project_id, request, requestOptions));
84
87
  }
85
- __show(account_id_1, collection_id_1) {
86
- return __awaiter(this, arguments, void 0, function* (account_id, collection_id, request = {}, requestOptions) {
88
+ __index(account_id_1, project_id_1) {
89
+ return __awaiter(this, arguments, void 0, function* (account_id, project_id, request = {}, requestOptions) {
87
90
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
88
- const { include } = request;
91
+ const { include, after, page_size: pageSize, include_total_count: includeTotalCount } = request;
89
92
  const _queryParams = {
90
93
  include,
94
+ after,
95
+ page_size: pageSize,
96
+ include_total_count: includeTotalCount,
91
97
  };
92
98
  const _authRequest = yield this._options.authProvider.getAuthRequest();
93
99
  const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "user-agent": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.userAgent) !== null && _b !== void 0 ? _b : "frameio-ts" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
94
100
  const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
95
- url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.FrameioEnvironment.Default, `v4/accounts/${core.url.encodePathParam(account_id)}/collections/${core.url.encodePathParam(collection_id)}`),
101
+ url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.FrameioEnvironment.Default, `v4/accounts/${core.url.encodePathParam(account_id)}/projects/${core.url.encodePathParam(project_id)}/collections`),
96
102
  method: "GET",
97
103
  headers: _headers,
98
104
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -129,15 +135,15 @@ class CollectionsClient {
129
135
  });
130
136
  }
131
137
  }
132
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v4/accounts/{account_id}/collections/{collection_id}");
138
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v4/accounts/{account_id}/projects/{project_id}/collections");
133
139
  });
134
140
  }
135
141
  /**
136
- * List collections for a project. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
142
+ * Show collection details. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
137
143
  *
138
144
  * @param {Frameio.Uuid} account_id
139
- * @param {Frameio.Uuid} project_id
140
- * @param {Frameio.CollectionsIndexRequest} request
145
+ * @param {Frameio.Uuid} collection_id
146
+ * @param {Frameio.CollectionsShowRequest} request
141
147
  * @param {CollectionsClient.RequestOptions} requestOptions - Request-specific configuration.
142
148
  *
143
149
  * @throws {@link Frameio.BadRequestError}
@@ -149,30 +155,24 @@ class CollectionsClient {
149
155
  * @throws {@link Frameio.TooManyRequestsError}
150
156
  *
151
157
  * @example
152
- * await client.collections.index("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
153
- * include: "creator,project",
154
- * after: "<opaque_cursor>",
155
- * page_size: 10,
156
- * include_total_count: false
158
+ * await client.collections.show("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
159
+ * include: "creator,project"
157
160
  * })
158
161
  */
159
- index(account_id, project_id, request = {}, requestOptions) {
160
- return core.HttpResponsePromise.fromPromise(this.__index(account_id, project_id, request, requestOptions));
162
+ show(account_id, collection_id, request = {}, requestOptions) {
163
+ return core.HttpResponsePromise.fromPromise(this.__show(account_id, collection_id, request, requestOptions));
161
164
  }
162
- __index(account_id_1, project_id_1) {
163
- return __awaiter(this, arguments, void 0, function* (account_id, project_id, request = {}, requestOptions) {
165
+ __show(account_id_1, collection_id_1) {
166
+ return __awaiter(this, arguments, void 0, function* (account_id, collection_id, request = {}, requestOptions) {
164
167
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
165
- const { include, after, page_size: pageSize, include_total_count: includeTotalCount } = request;
168
+ const { include } = request;
166
169
  const _queryParams = {
167
170
  include,
168
- after,
169
- page_size: pageSize,
170
- include_total_count: includeTotalCount,
171
171
  };
172
172
  const _authRequest = yield this._options.authProvider.getAuthRequest();
173
173
  const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "user-agent": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.userAgent) !== null && _b !== void 0 ? _b : "frameio-ts" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
174
174
  const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
175
- url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.FrameioEnvironment.Default, `v4/accounts/${core.url.encodePathParam(account_id)}/projects/${core.url.encodePathParam(project_id)}/collections`),
175
+ url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.FrameioEnvironment.Default, `v4/accounts/${core.url.encodePathParam(account_id)}/collections/${core.url.encodePathParam(collection_id)}`),
176
176
  method: "GET",
177
177
  headers: _headers,
178
178
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -209,7 +209,7 @@ class CollectionsClient {
209
209
  });
210
210
  }
211
211
  }
212
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v4/accounts/{account_id}/projects/{project_id}/collections");
212
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v4/accounts/{account_id}/collections/{collection_id}");
213
213
  });
214
214
  }
215
215
  }